示例#1
0
文件: Time.php 项目: ameos/ameos_form
 /**
  * return rendering information
  *
  * @return	array rendering information
  */
 public function getRenderingInformation()
 {
     $data = parent::getRenderingInformation();
     $data['hour'] = $this->renderHour();
     $data['minute'] = $this->renderMinute();
     return $data;
 }
示例#2
0
文件: Date.php 项目: ameos/ameos_form
 /**
  * return rendering information
  *
  * @return	array rendering information
  */
 public function getRenderingInformation()
 {
     $data = parent::getRenderingInformation();
     $data['year'] = $this->renderYear();
     $data['month'] = $this->renderMonth();
     $data['day'] = $this->renderDay();
     return $data;
 }
示例#3
0
 /**
  * return rendering information
  *
  * @return	array rendering information
  */
 public function getRenderingInformation()
 {
     $data = parent::getRenderingInformation();
     $data['items'] = [];
     foreach ($this->configuration['items'] as $value => $label) {
         $checked = $this->getValue() == $value ? ' checked="checked"' : '';
         $data['items'][$value] = array('input' => '<input id="' . $this->getHtmlId() . '-' . $value . '" name="' . $this->absolutename . '" type="radio" value="' . $value . '"' . $checked . $class . ' />', 'label' => '<label for="' . $this->getHtmlId() . '-' . $value . '">' . $label . '</label>');
     }
     return $data;
 }
示例#4
0
 /**
  * return rendering information
  *
  * @return	array rendering information
  */
 public function getRenderingInformation()
 {
     $data = parent::getRenderingInformation();
     if (isset($this->configuration['min'])) {
         $data['min'] = $this->configuration['min'];
     }
     if (isset($this->configuration['max'])) {
         $data['max'] = $this->configuration['max'];
     }
     if (isset($this->configuration['step'])) {
         $data['step'] = $this->configuration['step'];
     }
     return $data;
 }