public function Feed::removeEntry in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Throws
Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Feed.php, line 100
Class
Namespace
Zend\Feed\WriterCode
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;
}