/** * Lists an index of existing billboard collections * * @apiMethod GET * @apiUri /billboards/list * @apiParameter { * "name": "limit", * "description": "Number of result to return.", * "type": "integer", * "required": false, * "default": 25 * } * @apiParameter { * "name": "start", * "description": "Number of where to start returning results.", * "type": "integer", * "required": false, * "default": 0 * } * @return void */ public function listTask() { // Get the request vars $limit = Request::getVar('limit', 25); $limitstart = Request::getVar('limitstart', 0); // Load up the entries $collections = Collection::start($limitstart)->limit($limit)->rows(); $this->send(array('collections' => $collections->toArray())); }