public function getOwnedNamespaces($address, $parent = null, $id = null, $pageSize = null)
    {
        $params = ["address" => $address];

        if ($hash !== null)
            $params["hash"] = $hash;

        if ($id !== null)
            $params["id"] = $id;

        if ($pageSize !== null)
            $params["pageSize"] = $pageSize;

        $apiUrl = $this->getPath('namespace/page', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createNamespaceCollection($object['data']); //XXX brr => error/content validation first
    }
public function getOwnedNamespaces($address, $parent = null, $id = null, $pageSize = null)
    {
        $params = ["address" => $address];

        if ($hash !== null)
            $params["hash"] = $hash;

        if ($id !== null)
            $params["id"] = $id;

        if ($pageSize !== null)
            $params["pageSize"] = $pageSize;

        $apiUrl = $this->getPath('namespace/page', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createNamespaceCollection($object['data']); //XXX brr => error/content validation first
    }
public function getOwnedNamespaces ( $ address , $ parent = null , $ id = null , $ pageSize = null ) { $ params = [ "address" => $ address ] ; if ( $ hash !== null ) $ params [ "hash" ] = $ hash ; if ( $ id !== null ) $ params [ "id" ] = $ id ; if ( $ pageSize !== null ) $ params [ "pageSize" ] = $ pageSize ; $ apiUrl = $ this -> getPath ( 'namespace/page' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createNamespaceCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets an array of namespace objects for a given account address.
The parent parameter is optional. If supplied, only sub-namespaces of the parent namespace are returned.

@param   string          $address    The address of the account.
@param   null|string     $parent     The (optional) parent namespace id.
@param   null|integer    $id         The (optional) namespace database id up to which namespaces are returned.
@param   null|integer    $pageSize   The (optional) number of namespaces to be returned.
@return  array                       Array of object with keys from [NamespaceMetaDataPair](https://bob.nem.ninja/docs/#namespaceMetaDataPair) objects.
Gets an array of namespace objects for a given account address . The parent parameter is optional . If supplied only sub - namespaces of the parent namespace are returned .