Exemplo n.º 1
0
 public function date($date = null, $format = null)
 {
     if ($date === null) {
         return $this;
     }
     return Bbx_Date::date($date, $format);
 }
Exemplo n.º 2
0
 public function year()
 {
     return Bbx_Date::date($this->start(), 'Y');
 }
Exemplo n.º 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};
 }