예제 #1
0
파일: datetime.php 프로젝트: skerbis/redaxo
 public function setValue($value)
 {
     if (!is_array($value)) {
         throw new InvalidArgumentException('Expecting $value to be an array!');
     }
     $this->dateInput->setValue($value);
     $this->timeInput->setValue($value);
     parent::setValue($value);
 }
 function setValue($value)
 {
     if (!is_array($value)) {
         trigger_error('Expecting $value to be an array!', E_USER_ERROR);
     }
     $this->dateInput->setValue($value);
     $this->timeInput->setValue($value);
     parent::setValue($value);
 }
 function setValue($value)
 {
     if (!is_array($value)) {
         trigger_error('Expecting $value to be an array!', E_USER_ERROR);
     }
     foreach (array('hour', 'minute') as $reqIndex) {
         if (!isset($value[$reqIndex])) {
             trigger_error('Missing index "' . $reqIndex . '" in $value!', E_USER_ERROR);
         }
     }
     $this->hourSelect->setSelected($value['hour']);
     $this->minuteSelect->setSelected($value['minute']);
     parent::setValue($value);
 }
예제 #4
0
파일: time.php 프로젝트: skerbis/redaxo
 public function setValue($value)
 {
     if (!is_array($value)) {
         throw new InvalidArgumentException('Expecting $value to be an array!');
     }
     foreach (['hour', 'minute'] as $reqIndex) {
         if (!isset($value[$reqIndex])) {
             throw new rex_exception('Missing index "' . $reqIndex . '" in $value!');
         }
     }
     $this->hourSelect->setSelected($value['hour']);
     $this->minuteSelect->setSelected($value['minute']);
     parent::setValue($value);
 }
 function setValue($value)
 {
     if (!is_array($value)) {
         trigger_error('Expecting $value to be an array!', E_USER_ERROR);
     }
     foreach (array('year', 'month', 'day') as $reqIndex) {
         if (!isset($value[$reqIndex])) {
             trigger_error('Missing index "' . $reqIndex . '" in $value!', E_USER_ERROR);
         }
     }
     $this->yearSelect->setSelected($value['year']);
     $this->monthSelect->setSelected($value['month']);
     $this->daySelect->setSelected($value['day']);
     parent::setValue($value);
 }
예제 #6
0
파일: select.php 프로젝트: staabm/redaxo
 public function setValue($value)
 {
     $this->select->setSelected($value);
     parent::setValue($value);
 }