You are here

public function Publisher::removeParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

Publisher

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

Publisher

Namespace

Zend\Feed\PubSubHubbub

Code

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;
}