/** * 「時」入力セレクトボックス作成機能を拡張する */ public function hour($fieldName, $format24Hours = false, $attributes = array()) { if (isset($this->_extraFormat[$fieldName]) && in_array($this->_extraFormat[$fieldName], array('hour36', 'hour48'))) { return $this->select($fieldName . ".hour", $this->_generateOptions($this->_extraFormat[$fieldName]), $attributes); } return parent::hour($fieldName, $format24Hours, $attributes); }
/** * FormExtHelper::hour() * Overwrite parent * * @param mixed $fieldName * @param bool $format24Hours * @param mixed $attributes * @return void */ public function hour($fieldName, $format24Hours = true, $attributes = array()) { return parent::hour($fieldName, $format24Hours, $attributes); }