Пример #1
0
 public function date($date = null, $format = null)
 {
     if ($date === null) {
         return $this;
     }
     return Bbx_Date::date($date, $format);
 }
Пример #2
0
 public function year()
 {
     return Bbx_Date::date($this->start(), 'Y');
 }
Пример #3
0
 protected function _stringifierCallback($matches)
 {
     $key = substr($matches[0], 1);
     $schema = $this->schema();
     if (@$schema[$key]['type'] === 'date') {
         return Bbx_Date::date($this->{$key});
     }
     return $this->{$key};
 }