示例#1
0
 public function appendTo(QueryPath $dest)
 {
     foreach ($this->matches as $m) {
         $dest->append($m);
     }
     return $this;
 }
示例#2
0
 /**
  * Attach any items from the list if they match the selector.
  *
  * If no selector is specified, this will remove all current matches from
  * the document.
  *
  * @param QueryPath $dest
  *  A QueryPath Selector.
  * @return QueryPath
  *  The Query path wrapping a list of removed items.
  * @see replaceAll()
  * @see replaceWith()
  * @see removeChildren()
  * @since 2.1
  * @author eabrand
  */
 public function attach(QueryPath $dest)
 {
     foreach ($this->last as $m) {
         $dest->append($m);
     }
     return $this;
 }