| Total Complexity | 8 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Hook extends TypesHook |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param $row |
||
| 18 | * @param $column DatetimeModel |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | public function indexRender($row, $column) |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | public function assignment($value, $column) |
||
| 31 | { |
||
| 32 | if($column->getFormat()) { |
||
| 33 | return date_create_from_format($column->getFormat(), $value)->format('Y-m-d H:i:s'); |
||
| 34 | } else { |
||
| 35 | return $value; |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 39 | public function detailRender($row, $column) |
||
| 42 | } |
||
| 43 | |||
| 44 | public function filterQuery($query, $column, $value) |
||
| 56 |