Ejemplo n.º 1
0
 /**
  * getCommonAttributes
  *
  * @return array
  */
 protected function getCommonAttributes()
 {
     return parent::getCommonAttributes() + array('data-min' => $this->getParam(static::PARAM_MIN), 'data-max' => $this->getParam(static::PARAM_MAX));
 }
Ejemplo n.º 2
0
Archivo: Date.php Proyecto: kingsj/core
 /**
  * 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;
 }
Ejemplo n.º 3
0
 /**
  * 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;
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }