| 1 | <?php |
||
| 17 | abstract class ControllerRequestAbstract |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Filters for GET request. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $enabledFilters |
||
| 26 | = [ |
||
| 27 | 'field_list' => true, |
||
| 28 | 'limit' => false, |
||
| 29 | 'offset' => false, |
||
| 30 | 'sort' => false, |
||
| 31 | 'filter' => false, |
||
| 32 | ]; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set parameters which can be added to URL. |
||
| 36 | * |
||
| 37 | * @param bool|false $limit The number of results to display per page. |
||
| 38 | * @param bool|false $offset Return results starting with the object at the offset specified. |
||
| 39 | * @param bool|false $sort The result set can be sorted by the marked fields in the Fields section below. |
||
| 40 | * @param bool|false $filter The result can be filtered by the marked fields in the Fields section below. |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | protected function setFilters($limit = false, $offset = false, $sort = false, $filter = false) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Add url for this type of request. |
||
| 59 | * |
||
| 60 | * @param string $url Part of URL. |
||
| 61 | * |
||
| 62 | * @return \ComicVine\Api\Controllers\ControllerQuery |
||
| 63 | * @throws \ComicVine\Exceptions\EmptyControllerRequestUrl |
||
| 64 | */ |
||
| 65 | protected function setUrl($url) |
||
| 69 | |||
| 70 | } |