当前位置: 首页>>代码示例>>PHP>>正文


PHP SplObjectStorage::removeAll方法代码示例

本文整理汇总了PHP中SplObjectStorage::removeAll方法的典型用法代码示例。如果您正苦于以下问题:PHP SplObjectStorage::removeAll方法的具体用法?PHP SplObjectStorage::removeAll怎么用?PHP SplObjectStorage::removeAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SplObjectStorage的用法示例。


在下文中一共展示了SplObjectStorage::removeAll方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: closeAll

 /**
  * Closes all clients
  */
 public function closeAll()
 {
     /** @var Client $client */
     foreach ($this->clients as $client) {
         $client->close();
     }
     $this->clients->removeAll($this->clients);
 }
开发者ID:magnusjt,项目名称:socketty,代码行数:11,代码来源:Socketty.php

示例2: removeAll

 /**
  * Remove all objects from this storage, which contained in another storage
  * @param  \SplObjectStorage $obj
  * @return void
  */
 public function removeAll($obj = null)
 {
     if ($obj === null) {
         $this->removeAllExcept(new \SplObjectStorage());
     }
     parent::removeAll($obj);
 }
开发者ID:cobolbaby,项目名称:phpdaemon,代码行数:12,代码来源:ObjectStorage.php

示例3: removeAll

 /**
  * @param \SplObjectStorage $object
  * @throws Exception\WrongArgument
  */
 public function removeAll($object)
 {
     if (!$object instanceof SMSCollection) {
         throw new Exception\WrongArgument();
     }
     parent::removeAll($object);
 }
开发者ID:pontifex,项目名称:sms,代码行数:11,代码来源:SMSCollection.php

示例4: removeAll

 public function removeAll($storage)
 {
     $this->initialize();
     parent::removeAll($storage);
 }
开发者ID:patrickreck,项目名称:flow-development-collection,代码行数:5,代码来源:LazySplObjectStorage.php

示例5: removeAll

 /**
  * @deprecated Using the SplObjectStorage API on the Crawler is deprecated as of 2.8 and will be removed in 3.0.
  */
 public function removeAll($storage)
 {
     @trigger_error('The ' . __METHOD__ . ' method is deprecated as of 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
     parent::removeAll($storage);
 }
开发者ID:0mars,项目名称:symfony,代码行数:8,代码来源:Crawler.php

示例6: clear

 /**
  * Detach all documents from pool
  * @return \Sokil\Mongo\Persistence
  */
 public function clear()
 {
     $this->pool->removeAll($this->pool);
     return $this;
 }
开发者ID:agolomazov,项目名称:php-mongo,代码行数:9,代码来源:Persistence.php

示例7: removeAll

 /**
  * @deprecated Using the SplObjectStorage API on the Crawler is deprecated as of 2.8 and will be removed in 3.0.
  */
 public function removeAll($storage)
 {
     $this->triggerDeprecation(__METHOD__);
     parent::removeAll($storage);
 }
开发者ID:hudsonventura,项目名称:ModularCore,代码行数:8,代码来源:Crawler.php

示例8: removeAll

 /**
  * @param \SplObjectStorage $storage
  */
 public function removeAll($storage)
 {
     parent::removeAll($storage);
     $this->unreferenced->removeAll($storage);
 }
开发者ID:mrxotey,项目名称:icicle,代码行数:8,代码来源:ObjectStorage.php

示例9: removeAll

 /**
  * {@inheritdoc}
  */
 public function removeAll()
 {
     $this->pool->removeAll($this->pool);
     return true;
 }
开发者ID:zientalak,项目名称:devicedetector,代码行数:8,代码来源:TokenPool.php

示例10: array

<?php

$data_provider = array(array(), true, "string", 12345, 1.2345, NULL);
foreach ($data_provider as $input) {
    $s = new SplObjectStorage();
    var_dump($s->removeAll($input));
}
开发者ID:badlamer,项目名称:hhvm,代码行数:7,代码来源:SplObjectStorage_removeAll_invalid_parameter.php

示例11: clearListeners

 /**
  * @param  string $event
  * @return void
  */
 public function clearListeners($event)
 {
     $this->listeners = new \SplPriorityQueue();
     $this->commands->removeAll();
 }
开发者ID:mahadazad,项目名称:event-manager,代码行数:9,代码来源:EventManager.php


注:本文中的SplObjectStorage::removeAll方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。