You are here

public function AbstractEntry::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::__construct()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::__construct()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::__construct()

Constructor

Parameters

DOMElement $entry:

int $entryKey:

null|string $type:

File

vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php, line 67

Class

AbstractEntry

Namespace

Zend\Feed\Reader

Code

public function __construct(DOMElement $entry, $entryKey, $type = null) {
  $this->entry = $entry;
  $this->entryKey = $entryKey;
  $this->domDocument = $entry->ownerDocument;
  if ($type !== null) {
    $this->data['type'] = $type;
  }
  else {
    $this->data['type'] = Reader::detectType($entry);
  }
  $this
    ->_loadExtensions();
}