/** * Check if the current iterator element has children * * @return object FluentDOMCore */ public function hasChildren() { $item = $this->_owner->item($this->_position); return $item->hasChildNodes(); }
public function _isCallback($callback, $allowGlobalFunctions, $silent) { return parent::_isCallback($callback, $allowGlobalFunctions, $silent); }
public function _executeEasySetter($easySetter, $node, $index, $value) { return parent::_executeEasySetter($easySetter, $node, $index, $value); }
/** * 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); }