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

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

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

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

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

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

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

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

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createMosaicCollection($object['data']); //XXX brr => error/content validation first
    }
public function getCreatedMosaics ( $ address , $ parent = null , $ id = null ) { $ params = [ "address" => $ address ] ; if ( $ parent !== null ) $ params [ "parent" ] = $ parent ; if ( $ id !== null ) $ params [ "id" ] = $ id ; $ apiUrl = $ this -> getPath ( 'mosaic/definition/page' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createMosaicCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets an array of mosaic definition objects for a given account address. The parent parameter is optional.
If supplied, only mosaic definitions for the given parent namespace are returned.
The id parameter is optional and allows retrieving mosaic definitions in batches of 25 mosaic definitions.

@param   string          $address    The address of the account.
@param   null|string     $parent     The (optional) parent namespace id.
@param   null|integer    $id         The (optional) mosaic definition database id up to which mosaic definitions are returned.
@return  array                       Array of object with keys from [MosaicDefinitionMetaDataPair](https://bob.nem.ninja/docs/#mosaicDefinitionMetaDataPair) objects.
Gets an array of mosaic definition objects for a given account address . The parent parameter is optional . If supplied only mosaic definitions for the given parent namespace are returned . The id parameter is optional and allows retrieving mosaic definitions in batches of 25 mosaic definitions .