src/Service/Cdn.php
public function getObjectsForUser($userId, $page = null, $perPage = null, $data = [])
    {
        $oDb = Factory::service('Database');
        $oDb->where('o.created_by', $userId);
        return $this->getObjects($page, $perPage, $data);
    }
public function getObjectsForUser($userId, $page = null, $perPage = null, $data = [])
    {
        $oDb = Factory::service('Database');
        $oDb->where('o.created_by', $userId);
        return $this->getObjects($page, $perPage, $data);
    }
public function getObjectsForUser ( $ userId , $ page = null , $ perPage = null , $ data = [ ] ) { $ oDb = Factory :: service ( 'Database' ) ; $ oDb -> where ( 'o.created_by' , $ userId ) ; return $ this -> getObjects ( $ page , $ perPage , $ data ) ; }
Returns objects created by a user

@param int   $userId  The user's ID
@param int   $page    The page of results to return
@param int   $perPage The number of results per page
@param array $data    Data to pass to getCountCommon()

@return array
Returns objects created by a user