/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { return parent::getCommonAttributes() + array('data-min' => $this->getParam(static::PARAM_MIN), 'data-max' => $this->getParam(static::PARAM_MAX)); }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { $list = parent::getCommonAttributes(); if (is_numeric($list['value']) || is_int($list['value'])) { $list['value'] = $list['value'] ? date('m/d/Y', $list['value']) : ''; } return $list; }
/** * Add attribute 'data-end-date' to input field * * @return array */ protected function getCommonAttributes() { $result = parent::getCommonAttributes(); $result['data-end-date'] = date('Y-m-d', \XLite\Core\Converter::convertTimeToUser()); return $result; }
/** * getCommonAttributes * * @return array */ protected function getCommonAttributes() { $list = parent::getCommonAttributes(); if (is_numeric($list['value']) || is_int($list['value'])) { $list['value'] = $list['value'] ? \XLite\Core\Converter::formatDate($list['value']) : ''; } return $list; }