Lines Matching refs:selector
1721 protected function runQuery($XQuery, $selector = null, $compare = null) { argument
1768 if (call_user_func_array(array($this, $compare), array($selector, $node)))
1818 foreach($queries as $selector) {
1821 foreach($selector as $s) {
2016 $selector = self::unQuote($args);
2017 $this->elements = $this->not($selector)->stack();
2033 $selector = trim($args, "\"'");
2036 if ($this->find($selector, $el, true)->length)
2242 public function is($selector, $nodes = null) { argument
2243 phpQuery::debug(array("Is:", $selector));
2244 if (! $selector)
2252 $this->filter($selector, true);
2303 foreach($selectors as $selector) {
2305 if (! $selector)
2308 if (in_array($selector[0], $notSimpleSelector))
2309 $selector = array_slice($selector, 1);
2313 foreach($selector as $s) {
2390 $this->debug(array('Skipping non simple selector', $selector));
2403 foreach($selector as $s)
2451 $selector = $matches[2];
2453 $this->_loadSelector = $selector;
2843 * @param String $selector
2847 public function replaceAll($selector) { argument
2848 foreach(phpQuery::pq($selector, $this->getDocumentID()) as $node)
2859 public function remove($selector = null) { argument
2860 $loop = $selector
2861 ? $this->filter($selector)->elements
3021 public function children($selector = null) { argument
3028 if ($selector && ! $this->is($selector, $newNode))
3044 public function ancestors($selector = null) { argument
3045 return $this->children( $selector );
3444 public function _next($selector = null) { argument
3446 $this->getElementSiblings('nextSibling', $selector, true)
3456 public function _prev($selector = null) { argument
3457 return $this->prev($selector);
3464 public function prev($selector = null) { argument
3466 $this->getElementSiblings('previousSibling', $selector, true)
3473 public function prevAll($selector = null) { argument
3475 $this->getElementSiblings('previousSibling', $selector)
3482 public function nextAll($selector = null) { argument
3484 $this->getElementSiblings('nextSibling', $selector)
3490 protected function getElementSiblings($direction, $selector = null, $limitToOne = false) { argument
3504 if ($selector) {
3507 $stack = $this->filter($selector, true)->stack();
3517 public function siblings($selector = null) { argument
3520 $this->getElementSiblings('previousSibling', $selector),
3521 $this->getElementSiblings('nextSibling', $selector)
3534 public function not($selector = null) { argument
3535 if (is_string($selector))
3536 phpQuery::debug(array('not', $selector));
3540 if ($selector instanceof self || $selector instanceof DOMNODE) {
3542 if ($selector instanceof self) {
3544 foreach($selector->stack() as $notNode) {
3550 } else if ($selector instanceof DOMNODE) {
3551 if (! $selector->isSameNode($node))
3554 if (! $this->is($selector))
3560 $matched = $this->filter($selector, true)->stack();
3580 public function add($selector = null) { argument
3581 if (! $selector)
3585 $found = phpQuery::pq($selector, $this->getDocumentID());
3617 public function parent($selector = null) { argument
3624 if ( $selector )
3625 $this->filter($selector, true);
3633 public function parents($selector = null) { argument
3651 if ( $selector )
3652 $this->filter($selector, true);