Inheritance: extends Nodes
コード例 #1
0
ファイル: Attributes.php プロジェクト: fluentdom/fluentdom
 /**
  * Remove the attribute(s) on all selected element nodes
  *
  * @see ArrayAccess::offsetUnset()
  * @see FluentDOM::removeAttr()
  * @example properties/attr-unset.php Usage: Remove attribute properties
  * @param string|array $name
  */
 public function offsetUnset($name)
 {
     $this->_fd->removeAttr($name);
 }
コード例 #2
0
ファイル: Css.php プロジェクト: fluentdom/fluentdom
 /**
  * Allow to use array syntax to change a css property value on all matched nodes.
  *
  * @see ArrayAccess::offsetSet()
  * @param string $name
  * @param string $value
  */
 public function offsetSet($name, $value)
 {
     $this->_fd->css($name, $value);
 }
コード例 #3
0
ファイル: Document.php プロジェクト: codexproject/core
 /** @param \FluentDOM\Query $dom */
 public function setDom($dom)
 {
     $this->content = $dom->find('//body')->first()->html();
 }