~

10 views
Skip to first unread message

konstan...@gmail.com

unread,
May 28, 2011, 8:02:51 AM5/28/11
to phpQuery
// Added by Kink 28.05.2011
public function nextSiblings($selector = null) {
$stack = array();
$siblings = $this->getElementSiblings('nextSibling', $selector);
foreach($siblings as $node) {
if (! $this->elementsContainsNode($node, $stack))
$stack[] = $node;
}
return $this->newInstance($stack);
}
// End add


...


} else if ($s[0] == '~') {
$this->runQuery($XQuery);
$XQuery = '';
$this->elements = $this
// Edited by Kink 28.05.2011
// ->siblings(
->nextSiblings(
// End edit
substr($s, 1)
)->elements;
if (! $this->length() )
break;
Reply all
Reply to author
Forward
0 new messages