public function __construct(Page $oMe, $oParent = null) { $this->oMe = $oMe; $this->bIsCurrent = null; if ($oParent === null && !$oMe->isRoot()) { $oParent = self::navigationItemForPage($oMe->getParent()); } parent::__construct($oParent); }
/** * @param string $sType Virtual identifier * @param string $sName Page path name * @param string $sTitle Page title * @param string $sLinkText Page link text. Defaults to title. * @param mixed $mData Additional data to be stored for later retrieval */ public function __construct($sType, $sName, $sTitle, $sLinkText = null, $mData = null, $oCanonical = null) { $this->sType = $sType; $this->sName = (string) $sName; $this->sTitle = $sTitle; $this->sLinkText = $sLinkText === null ? $sTitle : $sLinkText; $this->mData = $mData; $this->oCanonical = $oCanonical; parent::__construct(null); }
public function __construct($name, $target) { parent::__construct($name, $target); $this->html = "<li class='mainlink'>- <a href='index.php?id={$target}'>{$name}</a></li>"; }
/** * @param string $name The name of the item * @param string $dataUrl url to load data for data-navigation * @param NavigationItem $parent The parent of the item */ public function __construct($name, $dataUrl, $parent = null) { parent::__construct($name, $parent); $this->dataUrl = $dataUrl; }