public function __construct($spec, $options = null) { $date = new ZendT_Form_Element_Text($spec . '_date'); $decorators = array(new ZendT_Form_Decorator()); $date->setDecorators($decorators); $time = new ZendT_Form_Element_Text($spec . '_time'); $decorators = array(new ZendT_Form_Decorator()); $time->setDecorators($decorators); $this->setAttrib('propDate', $date); $this->setAttrib('propTime', $time); parent::__construct($spec, $options); }