| 1 | <?php |
||
| 6 | class ObjectTableRenderer extends TableRenderer { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param mixed $value |
||
| 10 | * @return bool |
||
| 11 | */ |
||
| 12 | public function handles($value) { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ObjectTable $table |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | protected function getRows($table) { |
||
| 21 | $rows = []; |
||
| 22 | foreach ($table->getItems() as $object) { |
||
| 23 | $rows[] = $table->getCells($object); |
||
| 24 | } |
||
| 25 | return $rows; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param ObjectTable $table |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | protected function getHeaders($table) { |
||
| 35 | } |