public function getTreePagesForRightsManagementAction()
	{
		$idPage = $this->params()->fromQuery('nodeId', -1);

		if ($idPage == MelisCmsRightsService::MELISCMS_PREFIX_PAGES . '_root')
			$idPage = -1;
		else
			$idPage = str_replace(MelisCmsRightsService::MELISCMS_PREFIX_PAGES . '_', '', $idPage);

		$rootPages = array($idPage);
		$final = $this->getPagesDatas($rootPages);

		return $this->formatTreeResponse($final, true);
	}
public function getTreePagesForRightsManagementAction()
	{
		$idPage = $this->params()->fromQuery('nodeId', -1);

		if ($idPage == MelisCmsRightsService::MELISCMS_PREFIX_PAGES . '_root')
			$idPage = -1;
		else
			$idPage = str_replace(MelisCmsRightsService::MELISCMS_PREFIX_PAGES . '_', '', $idPage);

		$rootPages = array($idPage);
		$final = $this->getPagesDatas($rootPages);

		return $this->formatTreeResponse($final, true);
	}
public function getTreePagesForRightsManagementAction ( ) { $ idPage = $ this -> params ( ) -> fromQuery ( 'nodeId' , - 1 ) ; if ( $ idPage == MelisCmsRightsService :: MELISCMS_PREFIX_PAGES . '_root' ) $ idPage = - 1 ; else $ idPage = str_replace ( MelisCmsRightsService :: MELISCMS_PREFIX_PAGES . '_' , '' , $ idPage ) ; $ rootPages = array ( $ idPage ) ; $ final = $ this -> getPagesDatas ( $ rootPages ) ; return $ this -> formatTreeResponse ( $ final , true ) ; }
Gets the root page when showing the tree of pages in rights tool
so that all pages are displayed and not only the one you have access to

@return Ambigous <\Zend\View\Model\ViewModel, \Zend\View\Model\JsonModel>
Gets the root page when showing the tree of pages in rights tool so that all pages are displayed and not only the one you have access to