public function __construct($classIdentifier, $parentNodeID = false, $creatorID = 14, $section = 1, $languageCode = false) { $this->class = eZContentClass::fetchByIdentifier($classIdentifier); if (!$this->class instanceof eZContentClass) { throw new ezcBaseValueException('class', isset($this->class) ? get_class($this->class) : null, 'eZContentClass ($classIdentifier was: ' . $classIdentifier . ' ) ', 'member'); } $this->object = $this->class->instantiate($creatorID, $section, false, $languageCode); // Create main node if (is_numeric($parentNodeID)) { $this->mainNode = new ezpNode($this->object, $parentNodeID, true); } $this->nodes = array($this->mainNode); }
function instantiateIn($lang, $userID = false, $sectionID = 0, $versionNumber = false, $versionStatus = eZContentObjectVersion::STATUS_INTERNAL_DRAFT) { return eZContentClass::instantiate($userID, $sectionID, $versionNumber, $lang, $versionStatus); }