| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function render($key = null) |
||
| 28 | { |
||
| 29 | $this->grid = new Grid(new $this->model); |
||
| 30 | |||
| 31 | $this->make($key); |
||
|
|
|||
| 32 | |||
| 33 | return $this->grid |
||
| 34 | ->disableActions() |
||
| 35 | ->disableBatchActions() |
||
| 36 | ->disableExport() |
||
| 37 | ->disableColumnSelector() |
||
| 38 | ->disableCreateButton() |
||
| 39 | ->disablePerPageSelector() |
||
| 40 | ->paginate(10) |
||
| 41 | ->expandFilter() |
||
| 42 | ->render() |
||
| 43 | ; |
||
| 44 | } |
||
| 45 | |||
| 55 | } |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: