public function getPhotos($context, $contextID = 0, $offset = null, $limit = null) { $result = ApuPhotoPeer::retrieveByContextAndContextID($context, $contextID, $offset, $limit); if (is_null($offset) and is_null($limit)) { return $result['objects']; } return $result; }