| 1 | <?php |
||
| 8 | class DateTime extends Column |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Datetime format. |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $format; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Datetime timezone. |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $timezone; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getFormat() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getTimezone() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $format |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | public function setFormat($format) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $timezone |
||
| 61 | * |
||
| 62 | * @return $this |
||
| 63 | */ |
||
| 64 | public function setTimezone($timezone) |
||
| 70 | |||
| 71 | public function getModelValue() |
||
| 76 | |||
| 77 | public function getFormatValue($date) |
||
| 95 | } |
||
| 96 |