remove() public static method

..
public static remove ( DOMNode | phpQueryObject | string $document, $node, unknown_type $type = null, unknown_type $callback = null )
$document DOMNode | phpQueryObject | string
$type unknown_type
$callback unknown_type
示例#1
0
 /**
  * Enter description here...
  *
  * @param unknown_type $type
  * @param unknown_type $callback
  * @return unknown
  * @TODO namespace events
  * @TODO support more than event in $type (space-separated)
  */
 public function unbind($type = null, $callback = null)
 {
     foreach ($this->elements as $node) {
         phpQueryEvents::remove($this->getDocumentID(), $node, $type, $callback);
     }
     return $this;
 }
示例#2
0
文件: phpQuery.php 项目: xepan/xepan
 /**
  * Enter description here...
  *
  * @param unknown_type $type
  * @param unknown_type $callback
  * @return unknown
  * @TODO namespace events
  * @TODO support more than event in $type (space-separated)
  */
 public function unbind($type = null, $callback = null)
 {
     foreach ($this->elements as $node) {
         $newEvent = new phpQueryEvents($this->phpquery);
         $newEvent->remove($this->getDocumentID(), $node, $type, $callback);
     }
     return $this;
 }