Exemple #1
0
 public function appendChild(Pagemill_Node $node)
 {
     //throw new Exception('appendChild is not implemented for frag nodes');
     $tmp = new Pagemill_Stream(true);
     $node->rawOutput($tmp);
     $this->_text .= $tmp->peek();
 }
Exemple #2
0
 public function __clone()
 {
     parent::__clone();
     if ($this->_processing) {
         $this->name = $this->_cachedName;
         $this->attributes = $this->_cachedAttributes;
         $this->_before = $this->_cachedBefore;
         $this->_processing = false;
     }
     $clonedChildren = array();
     foreach ($this->_children as $child) {
         $clonedChildren[] = clone $child;
     }
     $this->_children = array();
     foreach ($clonedChildren as $child) {
         $this->appendChild($child);
     }
 }