public function getPageChildren($idPage, $publishedOnly = 0)
	{
	    if (empty($idPage))
	        return null;
	    
        // Retrieve cache version if front mode to avoid multiple calls
        /* $cacheKey = 'getPageChildren_' . $idPage . '_' . $publishedOnly;
        $cacheConfig = 'engine_page_services';
        $melisEngineCacheSystem = $this->serviceLocator->get('MelisEngineCacheSystem');
        $results = $melisEngineCacheSystem->getCacheByKey($cacheKey, $cacheConfig);
        if (!empty($results)) return $results; */
	         
		$tablePageTree = $this->getServiceLocator()->get('MelisEngineTablePageTree');
		$datasPage = $tablePageTree->getPageChildrenByidPage($idPage, $publishedOnly);

		// Save cache key
		/* $melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $datasPage); */
		
		return $datasPage;
	}
public function getPageChildren($idPage, $publishedOnly = 0)
	{
	    if (empty($idPage))
	        return null;
	    
        // Retrieve cache version if front mode to avoid multiple calls
        /* $cacheKey = 'getPageChildren_' . $idPage . '_' . $publishedOnly;
        $cacheConfig = 'engine_page_services';
        $melisEngineCacheSystem = $this->serviceLocator->get('MelisEngineCacheSystem');
        $results = $melisEngineCacheSystem->getCacheByKey($cacheKey, $cacheConfig);
        if (!empty($results)) return $results; */
	         
		$tablePageTree = $this->getServiceLocator()->get('MelisEngineTablePageTree');
		$datasPage = $tablePageTree->getPageChildrenByidPage($idPage, $publishedOnly);

		// Save cache key
		/* $melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $datasPage); */
		
		return $datasPage;
	}
public function getPageChildren ( $ idPage , $ publishedOnly = 0 ) { if ( empty ( $ idPage ) ) return null ; // Retrieve cache version if front mode to avoid multiple calls /* $cacheKey = 'getPageChildren_' . $idPage . '_' . $publishedOnly;
        $cacheConfig = 'engine_page_services';
        $melisEngineCacheSystem = $this->serviceLocator->get('MelisEngineCacheSystem');
        $results = $melisEngineCacheSystem->getCacheByKey($cacheKey, $cacheConfig);
        if (!empty($results)) return $results; */ $ tablePageTree = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePageTree' ) ; $ datasPage = $ tablePageTree -> getPageChildrenByidPage ( $ idPage , $ publishedOnly ) ; // Save cache key /* $melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $datasPage); */ return $ datasPage ; }
This service gets the children pages of a specific page

@param int $idPage The page id
@param int $publishedOnly To retrieve only published pages or also saved version / unpublished
This service gets the children pages of a specific page