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); } } } }
public static function _untaint(&$value, $filter = FILTER_SANITIZE_SPECIAL_CHARS, $flags = null) { ar::untaint($value, $filter, $flags); }
public static function cdata($value) { ar::untaint($value, FILTER_UNSAFE_RAW); return new ar_xmlNode($value, null, true); }
public function __toString() { $q = clone $this->query; $qa = (array) $q; ar::untaint($qa, FILTER_UNSAFE_RAW); $q->import($qa); return (string) $q; }