append() public method

The value can be: - a node (automatically imported and cloned) - an object implementing FluentDOM\Appendable (method appendTo()) - a scalar or object castable to string (adds a text node) - an array (sets attributes)
public append ( mixed $value )
$value mixed
Beispiel #1
0
 /**
  * @param Element $parent
  * @return Element
  */
 public function appendTo(Element $parent)
 {
     foreach ($this as $item) {
         $parent->append($item);
     }
     return $parent;
 }