Esempio n. 1
0
 /**
  * Check if the current iterator element has children
  *
  * @return object FluentDOMCore
  */
 public function hasChildren()
 {
     $item = $this->_owner->item($this->_position);
     return $item->hasChildNodes();
 }
Esempio n. 2
0
 public function _isCallback($callback, $allowGlobalFunctions, $silent)
 {
     return parent::_isCallback($callback, $allowGlobalFunctions, $silent);
 }
Esempio n. 3
0
 public function _executeEasySetter($easySetter, $node, $index, $value)
 {
     return parent::_executeEasySetter($easySetter, $node, $index, $value);
 }
Esempio n. 4
0
 /**
  * Allow write access to "attr" as a dynamic property.
  * Call inherited method for other properties.
  *
  * This allows to set tag attributes using an array.
  *
  * @see FluentDOM/FluentDOMCore::__get()
  * @param string $name
  * @param mixed $value
  */
 public function __set($name, $value)
 {
     switch ($name) {
         case 'attr':
             if ($value instanceof FluentDOMAttributes) {
                 $this->attr($value->toArray());
             } else {
                 $this->attr($value);
             }
             return;
     }
     parent::__set($name, $value);
 }