_format; } public function setRequired($flag = true) { $this->_required = (bool) $flag; $this->setAttrib('required', $this->_required); return $this; } public function setValue($value) { if (is_array($value)) { $_value = $this->format; foreach ($value as $partName => $partValue) { if (array_key_exists($partName, $value)) { $_value = str_replace($partName, $partValue, $_value); } } if (($time = strtotime($_value))) { $value = date('H:i:s', $time); } else { $value = null; } } else { $value = date('H:i:s', strtotime($value)); } $this->_value = $value; return $this; } public function getValue() { $valueFiltered = $this->_value; if ($this->isArray() && is_array($valueFiltered)) { array_walk_recursive($valueFiltered, array($this, '_filterValue')); } else { $this->_filterValue($valueFiltered, $valueFiltered); } return $valueFiltered; } public function loadDefaultDecorators() { parent::loadDefaultDecorators(); if (false !== $decorator = $this->getDecorator('Label')) { $decorator->setOption('disableFor', true); } } }