You are here

public function Feed::createEntry in Zircon Profile 8

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

Creates a new Zend\Feed\Writer\Entry data container for use. This is NOT added to the current feed automatically, but is necessary to create a container with some initial values preset based on the current feed data.

Return value

\Zend\Feed\Writer\Entry

File

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

Class

Feed

Namespace

Zend\Feed\Writer

Code

public function createEntry() {
  $entry = new Entry();
  if ($this
    ->getEncoding()) {
    $entry
      ->setEncoding($this
      ->getEncoding());
  }
  $entry
    ->setType($this
    ->getType());
  return $entry;
}