public function getPageFather($idPage, $type = 'published')
	{
	    if (empty($idPage))
	        return null;
	    
        // Retrieve cache version if front mode to avoid multiple calls
        $cacheKey = 'getPageFather_' . $idPage;
        $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->getFatherPageById($idPage, $type);

		// Save cache key
		$melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $datasPage);
		
		return $datasPage;
	}
public function getPageFather($idPage, $type = 'published')
	{
	    if (empty($idPage))
	        return null;
	    
        // Retrieve cache version if front mode to avoid multiple calls
        $cacheKey = 'getPageFather_' . $idPage;
        $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->getFatherPageById($idPage, $type);

		// Save cache key
		$melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $datasPage);
		
		return $datasPage;
	}
public function getPageFather ( $ idPage , $ type = 'published' ) { if ( empty ( $ idPage ) ) return null ; // Retrieve cache version if front mode to avoid multiple calls $ cacheKey = 'getPageFather_' . $ idPage ; $ 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 -> getFatherPageById ( $ idPage , $ type ) ; // Save cache key $ melisEngineCacheSystem -> setCacheByKey ( $ cacheKey , $ cacheConfig , $ datasPage ) ; return $ datasPage ; }
Gets the father page of a specific page

@param int $idPage
Gets the father page of a specific page