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;

	}