Beispiel #1
0
 function _getValue()
 {
     parent::_getValue();
     foreach ($this->options as $value => $description) {
         if ($this->value == $value) {
             $this->description = $description;
         }
     }
 }
Beispiel #2
0
 function _getValue()
 {
     parent::_getValue();
     if ($_POST && !isset($this->request[$this->name])) {
         $this->value = $this->false_value;
     }
     if ($this->value == $this->true_value) {
         $this->checked = true;
     } else {
         $this->checked = false;
     }
 }
Beispiel #3
0
 function _getValue()
 {
     parent::_getValue();
     if (count($this->parsed_fields) > 0) {
         if (isset($this->data) && $this->data->loaded) {
             $data = $this->data->get_all();
             foreach ($this->parsed_fields as $field_name) {
                 if (isset($data[$field_name])) {
                     $this->iframe_url = str_replace("<#{$field_name}#>", $data[$field_name], $this->iframe_url);
                 }
             }
         }
     }
     $this->value = str_replace("<##>", $this->iframe_url, $this->iframe);
 }
Beispiel #4
0
 function _getValue()
 {
     parent::_getValue();
     if (count($this->parsed_fields) > 0) {
         if (isset($this->data) && $this->data->loaded) {
             $data = $this->data->get_all();
             foreach ($this->parsed_fields as $field_name) {
                 $field_rel_regex = '#^(.+)\\[(.+)\\]$#';
                 if (preg_match($field_rel_regex, $field_name, $match)) {
                     if (isset($data[$match[1]][$match[2]])) {
                         $replace = $data[$match[1]][$match[2]];
                     } else {
                         $replace = RAPYD_FIELD_SYMBOL_NULL;
                     }
                     $this->content_pattern = str_replace("<#{$field_name}#>", $replace, $this->content_pattern);
                 }
                 if (isset($data[$field_name])) {
                     $this->content_pattern = str_replace("<#{$field_name}#>", $data[$field_name], $this->content_pattern);
                 }
             }
         }
     }
     $this->value = replaceFunctions($this->content_pattern);
 }
Beispiel #5
0
 function _getValue()
 {
     parent::_getValue();
 }