src/Api/Controller/CdnObject.php
protected function formatObject($oObject, $aUrls = [])
    {
        return (object) [
            'id'       => $oObject->id,
            'object'   => (object) [
                'name' => $oObject->file->name->human,
                'mime' => $oObject->file->mime,
                'size' => $oObject->file->size,
            ],
            'bucket'   => $oObject->bucket,
            'is_img'   => $oObject->is_img,
            'img'      => (object) [
                'width'       => $oObject->img_width,
                'height'      => $oObject->img_height,
                'orientation' => $oObject->img_orientation,
                'is_animated' => $oObject->is_animated,
            ],
            'created'  => $oObject->created,
            'modified' => $oObject->modified,
            'url'      => (object) $this->generateUrls($oObject, $aUrls),
        ];
    }
protected function formatObject($oObject, $aUrls = [])
    {
        return (object) [
            'id'       => $oObject->id,
            'object'   => (object) [
                'name' => $oObject->file->name->human,
                'mime' => $oObject->file->mime,
                'size' => $oObject->file->size,
            ],
            'bucket'   => $oObject->bucket,
            'is_img'   => $oObject->is_img,
            'img'      => (object) [
                'width'       => $oObject->img_width,
                'height'      => $oObject->img_height,
                'orientation' => $oObject->img_orientation,
                'is_animated' => $oObject->is_animated,
            ],
            'created'  => $oObject->created,
            'modified' => $oObject->modified,
            'url'      => (object) $this->generateUrls($oObject, $aUrls),
        ];
    }
protected function formatObject ( $ oObject , $ aUrls = [ ] ) { return ( object ) [ 'id' => $ oObject -> id , 'object' => ( object ) [ 'name' => $ oObject -> file -> name -> human , 'mime' => $ oObject -> file -> mime , 'size' => $ oObject -> file -> size , ] , 'bucket' => $ oObject -> bucket , 'is_img' => $ oObject -> is_img , 'img' => ( object ) [ 'width' => $ oObject -> img_width , 'height' => $ oObject -> img_height , 'orientation' => $ oObject -> img_orientation , 'is_animated' => $ oObject -> is_animated , ] , 'created' => $ oObject -> created , 'modified' => $ oObject -> modified , 'url' => ( object ) $ this -> generateUrls ( $ oObject , $ aUrls ) , ] ; }
Format an object object

@param \stdClass $oObject the object to format
@param array     $aUrls   The requested URLs

@return object
Format an object object