public function Subscriber::removeParameter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::removeParameter()
Remove an optional parameter for the (un)subscribe requests
Parameters
string $name:
Return value
Throws
Exception\InvalidArgumentException
1 call to Subscriber::removeParameter()
- Subscriber::setParameter in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php - Add an optional parameter to the (un)subscribe requests
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php, line 485
Class
Namespace
Zend\Feed\PubSubHubbubCode
public function removeParameter($name) {
if (empty($name) || !is_string($name)) {
throw new Exception\InvalidArgumentException('Invalid parameter "name"' . ' of "' . $name . '" must be a non-empty string');
}
if (array_key_exists($name, $this->parameters)) {
unset($this->parameters[$name]);
}
return $this;
}