/** * */ protected function detachNode() { parent::detachNode(); $this->ownerForm = null; $this->nodePath = null; }
/** * Fetches input data (filering is done later) * * @param int|Source $source * @param Node $node * @return mixed */ protected function fetchData($source, Node $node) { $flags = 0; if ($node instanceof Element) { if ($node->isMultiple()) { $flags |= FILTER_REQUIRE_ARRAY; } } else { $flags |= FILTER_REQUIRE_ARRAY; } $name = $node->getName(); return $this->filterInput($source, $name, FILTER_DEFAULT, $flags); }
/** * @param self $child * @return static */ public function appendChild(self $child) { $child->attachNode($this); $name = $child->getName(); $this->children[$name] = $child; return $this; }