You are here

public function Feed::removeEntry in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/Feed.php \Zend\Feed\Writer\Feed::removeEntry()

Removes a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.

Parameters

int $index:

Return value

Feed

Throws

Exception\InvalidArgumentException

File

vendor/zendframework/zend-feed/src/Writer/Feed.php, line 100

Class

Feed

Namespace

Zend\Feed\Writer

Code

public function removeEntry($index) {
  if (!isset($this->entries[$index])) {
    throw new Exception\InvalidArgumentException('Undefined index: ' . $index . '. Entry does not exist.');
  }
  unset($this->entries[$index]);
  return $this;
}