public function getTreePagesByPageIdAction()
	{
		// Get the node id requested, or use default root -1
		$idPage = $this->params()->fromQuery('nodeId', -1);

		$this->getEventManager()->trigger('melis_cms_tree_get_pages_start', $this, array('idPage' => $idPage));

		if ($idPage == -1)
			$rootPages = $this->getRootForUser();
		else
			$rootPages = array($idPage);

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

		$triggerResponse = $this->getEventManager()->trigger('melis_cms_tree_get_pages_end', $this, array('parentId' => $idPage, 'request' => $final));

		$response = null;
		if(isset($triggerResponse[0]) && !empty($triggerResponse[0]))
			$response = $this->formatTreeResponse($triggerResponse[0]);
		else
			$response = $this->formatTreeResponse($final);
			

		return $response;

	}
public function getTreePagesByPageIdAction()
	{
		// Get the node id requested, or use default root -1
		$idPage = $this->params()->fromQuery('nodeId', -1);

		$this->getEventManager()->trigger('melis_cms_tree_get_pages_start', $this, array('idPage' => $idPage));

		if ($idPage == -1)
			$rootPages = $this->getRootForUser();
		else
			$rootPages = array($idPage);

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

		$triggerResponse = $this->getEventManager()->trigger('melis_cms_tree_get_pages_end', $this, array('parentId' => $idPage, 'request' => $final));

		$response = null;
		if(isset($triggerResponse[0]) && !empty($triggerResponse[0]))
			$response = $this->formatTreeResponse($triggerResponse[0]);
		else
			$response = $this->formatTreeResponse($final);
			

		return $response;

	}
public function getTreePagesByPageIdAction ( ) { // Get the node id requested, or use default root -1 $ idPage = $ this -> params ( ) -> fromQuery ( 'nodeId' , - 1 ) ; $ this -> getEventManager ( ) -> trigger ( 'melis_cms_tree_get_pages_start' , $ this , array ( 'idPage' => $ idPage ) ) ; if ( $ idPage == - 1 ) $ rootPages = $ this -> getRootForUser ( ) ; else $ rootPages = array ( $ idPage ) ; $ final = $ this -> getPagesDatas ( $ rootPages ) ; $ triggerResponse = $ this -> getEventManager ( ) -> trigger ( 'melis_cms_tree_get_pages_end' , $ this , array ( 'parentId' => $ idPage , 'request' => $ final ) ) ; $ response = null ; if ( isset ( $ triggerResponse [ 0 ] ) && ! empty ( $ triggerResponse [ 0 ] ) ) $ response = $ this -> formatTreeResponse ( $ triggerResponse [ 0 ] ) ; else $ response = $ this -> formatTreeResponse ( $ final ) ; return $ response ; }
Get the children of an idPage
If called in http, will return an html view
If called in xhr, will return a json view with the html and others informations
like javascript datas.

@return \Zend\View\Model\ViewModel|\Zend\View\Model\JsonModel
Get the children of an idPage If called in http will return an html view If called in xhr will return a json view with the html and others informations like javascript datas .