Example #1
0
 protected function handleUpdates($default)
 {
     $check = $this->getvar($this->name);
     //$check = ar('http')->getvar( $this->name );
     if (isset($check['Delete'])) {
         $delete = $check['Delete'];
         ar::untaint($delete);
         if ($this->children[$delete]) {
             unset($this->children[$delete]);
         }
     } else {
         if (isset($check['Add'])) {
             $addedField = $this->getvar($this->newField->name);
             //ar('http')->getvar( $this->newField->name );
             if ($addedField) {
                 // add a copy of default to the children of this field
                 $newField = $default;
                 $newField['value'] = $addedField;
                 // FIXME: generiek maken
                 $this->children[] = $this->form->parseField(0, $newField);
             }
         }
     }
 }
Example #2
0
File: ar.php Project: poef/ariadne
 public static function _untaint(&$value, $filter = FILTER_SANITIZE_SPECIAL_CHARS, $flags = null)
 {
     ar::untaint($value, $filter, $flags);
 }
Example #3
0
File: xml.php Project: poef/ariadne
 public static function cdata($value)
 {
     ar::untaint($value, FILTER_UNSAFE_RAW);
     return new ar_xmlNode($value, null, true);
 }
Example #4
0
File: url.php Project: poef/ariadne
 public function __toString()
 {
     $q = clone $this->query;
     $qa = (array) $q;
     ar::untaint($qa, FILTER_UNSAFE_RAW);
     $q->import($qa);
     return (string) $q;
 }