Example #1
0
 protected function get_children()
 {
     return parent::get_children() + array(Content::DATE => new \Brickrouge\Date(array(Form::LABEL => 'Date', Element::REQUIRED => true, Element::DEFAULT_VALUE => date('Y-m-d'))));
 }
Example #2
0
 protected function get_children()
 {
     return array_merge(parent::get_children(), array(Article::DATE => new \Brickrouge\DateTime(array(Form::LABEL => 'Date', Element::REQUIRED => true, Element::DEFAULT_VALUE => date('Y-m-d H:i:s')))));
 }