コード例 #1
0
ファイル: QueryPath.php プロジェクト: jakob-stoeck/os_poker
 public function appendTo(QueryPath $dest)
 {
     foreach ($this->matches as $m) {
         $dest->append($m);
     }
     return $this;
 }
コード例 #2
0
ファイル: QueryPath.php プロジェクト: AxelFG/ckbran-inf
 /**
  * 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;
 }