本文整理汇总了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);
}
示例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);
}
示例3: removeAll
/**
* @param \SplObjectStorage $object
* @throws Exception\WrongArgument
*/
public function removeAll($object)
{
if (!$object instanceof SMSCollection) {
throw new Exception\WrongArgument();
}
parent::removeAll($object);
}
示例4: removeAll
public function removeAll($storage)
{
$this->initialize();
parent::removeAll($storage);
}
示例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);
}
示例6: clear
/**
* Detach all documents from pool
* @return \Sokil\Mongo\Persistence
*/
public function clear()
{
$this->pool->removeAll($this->pool);
return $this;
}
示例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);
}
示例8: removeAll
/**
* @param \SplObjectStorage $storage
*/
public function removeAll($storage)
{
parent::removeAll($storage);
$this->unreferenced->removeAll($storage);
}
示例9: removeAll
/**
* {@inheritdoc}
*/
public function removeAll()
{
$this->pool->removeAll($this->pool);
return true;
}
示例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));
}
示例11: clearListeners
/**
* @param string $event
* @return void
*/
public function clearListeners($event)
{
$this->listeners = new \SplPriorityQueue();
$this->commands->removeAll();
}