Beispiel #1
0
 /**
  *
  */
 protected function detachNode()
 {
     parent::detachNode();
     $this->ownerForm = null;
     $this->nodePath = null;
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 /**
  * @param self $child
  * @return static
  */
 public function appendChild(self $child)
 {
     $child->attachNode($this);
     $name = $child->getName();
     $this->children[$name] = $child;
     return $this;
 }