public function AbstractEntry::__construct in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::__construct()
- 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::__construct()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::__construct()
Constructor
Parameters
DOMElement $entry:
int $entryKey:
string $type:
2 calls to AbstractEntry::__construct()
- Atom::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ Atom.php - Constructor
- Rss::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ Rss.php - Constructor
2 methods override AbstractEntry::__construct()
- Atom::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ Atom.php - Constructor
- Rss::__construct in vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ Rss.php - Constructor
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ AbstractEntry.php, line 69
Class
Namespace
Zend\Feed\Reader\EntryCode
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;
}
elseif ($this->domDocument !== null) {
$this->data['type'] = Reader\Reader::detectType($this->domDocument);
}
else {
$this->data['type'] = Reader\Reader::TYPE_ANY;
}
$this
->loadExtensions();
}