/**
  * @param array       $navigation
  * @param null|string $currentPageId
  * @param IPageUrlHelper     $pageUrlHelper
  */
 public function __construct(array $navigation, $currentPageId = null, $pageUrlHelper)
 {
     parent::__construct($currentPageId, $pageUrlHelper);
     foreach ($navigation as &$pageInfo) {
         $this->rootChildrenIds[] = $pageInfo['id'];
     }
     $this->initNodes($navigation);
 }
 /**
  * @param Website          $websiteBusiness
  * @param PageBusiness     $pageBusiness
  * @param PageTypeBusiness $pageTypeBusiness
  * @param string           $websiteId
  * @param IPageUrlHelper   $pageUrlHelper
  * @param string|null      $currentItemId
  * @param bool             $currentItemIsTemplate
  * @param array|null       $currentItemInfo
  */
 public function __construct(Website $websiteBusiness, PageBusiness $pageBusiness, PageTypeBusiness $pageTypeBusiness, $websiteId, IPageUrlHelper $pageUrlHelper, $currentItemId = null, $currentItemIsTemplate = false, array $currentItemInfo = null)
 {
     parent::__construct($currentItemId, $pageUrlHelper);
     $this->websiteBusiness = $websiteBusiness;
     $this->pageBusiness = $pageBusiness;
     $this->pageTypeBusiness = $pageTypeBusiness;
     $this->websiteId = $websiteId;
     $this->currentItemInfo = $currentItemInfo;
     $this->currentItemIsTemplate = $currentItemIsTemplate;
 }