Exemplo n.º 1
0
 function _getNewValue()
 {
     parent::_getNewValue();
     if (!isset($this->request[$this->name])) {
         $this->newValue = $this->false_value;
     }
 }
Exemplo n.º 2
0
 function _getNewValue()
 {
     parent::_getNewValue();
     if (isset($this->request[$this->name])) {
         $this->newValue = human_to_dbdate($this->newValue, $this->format);
     }
 }
Exemplo n.º 3
0
 /**
  * if detect a $_POST["fieldname"] it acquire the new value
  * this class override this method for "formatting" purposes
  *
  * @access   private
  * @return   void
  */
 function _getNewValue()
 {
     parent::_getNewValue();
     if (isset($this->request[$this->name])) {
         $this->newValue = entities_to_ascii($this->newValue);
     }
 }
Exemplo n.º 4
0
 function _getNewValue()
 {
     parent::_getNewValue();
     if (isset($this->request[$this->name]) && $this->request[$this->name] != '') {
         if ($this->encrypt) {
             $ci =& get_instance();
             $this->newValue = $ci->encrypt->hash($this->newValue, 'md5');
         } else {
             show_error("you must load the CI 'encrtypt' library");
         }
     } else {
         $this->db_name = null;
     }
 }
Exemplo n.º 5
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);
 }
Exemplo n.º 6
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);
 }
Exemplo n.º 7
0
 function _getNewValue()
 {
     parent::_getNewValue();
 }