function __construct($xmlDocPath, $link, SiteDocIndexItem $parent = null, $menuId = null) { Assert::isScalar($xmlDocPath); if (!file_exists($xmlDocPath)) { throw new ArgumentException('xmlDocPath', 'xml doc not found'); } $this->xmlDocPath = $xmlDocPath; parent::__construct($link, $parent, $menuId); }
function __construct() { parent::__construct(''); }
function __construct($name, $link, SiteDocIndexItem $parent = null, $menuId = null) { Assert::isScalar($name); $this->name = $name; parent::__construct($link, $parent, $menuId); }