public function Publisher::removeParameter in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Publisher.php \Zend\Feed\PubSubHubbub\Publisher::removeParameter()
Remove an optional parameter for the notification requests
Parameters
string $name:
Return value
Throws
Exception\InvalidArgumentException
1 call to Publisher::removeParameter()
- Publisher::setParameter in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Publisher.php - Add an optional parameter to the update notification requests
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Publisher.php, line 321
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;
}