| @@ 37-44 (lines=8) @@ | ||
| 34 | * |
|
| 35 | * @return bool |
|
| 36 | */ |
|
| 37 | protected function hasOrderFields() |
|
| 38 | { |
|
| 39 | if (!isset($this->order_fields) || !is_array($this->order_fields)) { |
|
| 40 | throw new InvalidArgumentException(get_class($this) . ' order fields not set correctly.'); |
|
| 41 | } else { |
|
| 42 | return true; |
|
| 43 | } |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * Check order defaults set correctly |
|
| @@ 68-75 (lines=8) @@ | ||
| 65 | * |
|
| 66 | * @return bool |
|
| 67 | */ |
|
| 68 | protected function hasSearchFields() |
|
| 69 | { |
|
| 70 | if (!isset($this->search_fields) || !is_array($this->search_fields) || empty($this->search_fields)) { |
|
| 71 | throw new InvalidArgumentException(get_class($this) . ' search properties not set correctly.'); |
|
| 72 | } else { |
|
| 73 | return true; |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * Override column if provided column not valid |
|