Lines Matching refs:selector

40      * @param string $selector
45 public function find(string $selector, string $prefix = 'descendant::'): NodeList { argument
50 return $this->findXPath(self::$cssSelectorConverter->toXPath($selector, $prefix));
187 public function preceding($selector = null): ?\DOMNode { argument
188 return $this->precedingUntil(null, $selector)->first();
196 public function precedingAll($selector = null): NodeList { argument
197 return $this->precedingUntil(null, $selector);
206 public function precedingUntil($input = null, $selector = null): NodeList { argument
207 return $this->_walkPathUntil('previousSibling', $input, $selector);
215 public function following($selector = null): ?\DOMNode { argument
216 return $this->followingUntil(null, $selector)->first();
224 public function followingAll($selector = null): NodeList { argument
225 return $this->followingUntil(null, $selector);
234 public function followingUntil($input = null, $selector = null): NodeList { argument
235 return $this->_walkPathUntil('nextSibling', $input, $selector);
243 public function siblings($selector = null): NodeList { argument
244 $results = $this->collection()->reduce(function($carry, $node) use ($selector) {
246 $node->precedingAll($selector)->merge(
247 $node->followingAll($selector)
275 public function parent($selector = null) { argument
276 $results = $this->_walkPathUntil('parentNode', null, $selector, self::$MATCH_TYPE_FIRST);
295 * @param string $selector
299 public function parents(string $selector = null): NodeList { argument
300 return $this->parentsUntil(null, $selector);
309 public function parentsUntil($input = null, $selector = null): NodeList { argument
310 return $this->_walkPathUntil('parentNode', $input, $selector);
396 …uildNodeListUntil(\DOMNode $baseNode, string $property, $input = null, $selector = null, int $matc… argument
406 … if ($matchType != self::$MATCH_TYPE_LAST && (is_null($selector) || $node->is($selector))) {
458 …protected function _walkPathUntil(string $property, $input = null, $selector = null, int $matchTyp… argument
461 …$this->collection()->each(function($node) use($property, $input, $selector, $matchType, &$nodeList…
462 … $nodeLists[] = $this->_buildNodeListUntil($node, $property, $input, $selector, $matchType);