private function createSitePage($siteName, $fatherId, $siteLangId, $pageType, $pageId, $templateId, $platformId)
	{
	    // Event parameters prepare
	    $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args());
	    
	    // Sending service start event
	    $arrayParameters = $this->sendEvent('meliscmssite_service_save_site_page_start', $arrayParameters);
	    
	    // Service implementation start
	   
	    $pageTreeTable = $this->getServiceLocator()->get('MelisEngineTablePageTree');
	    $pageLangTable = $this->getServiceLocator()->get('MelisEngineTablePageLang');
	    $pageSavedTable = $this->getServiceLocator()->get('MelisEngineTablePageSaved');
	    $cmsPlatformTable = $this->getServiceLocator()->get('MelisEngineTablePlatformIds');
	    
	    /**
	     * Retrieving the Current Page tree
	     * with Father Id of -1 "root node of the page tree"
	     * to get the Order of the new entry
	     */
	    $treePageOrder = $pageTreeTable->getTotalData('tree_father_page_id', $fatherId);
	    // Saving Site page on Page tree
	    $pageTreeTable->save(array(
	        'tree_page_id' => $arrayParameters['pageId'],
	        'tree_father_page_id' => $fatherId,
	        'tree_page_order' => $treePageOrder + 1,
	    ));
	     
	    // Saving Site page Language
	    $pageLangTable->save(array(
	        'plang_page_id' => $arrayParameters['pageId'],
	        'plang_lang_id' => $arrayParameters['siteLangId'],
	        'plang_page_id_initial' => $arrayParameters['pageId']
	    ));
	    
	    // Saving Site page in Save Version as new page entry
	    $pageSavedTable->save(array(
	        'page_id' => $arrayParameters['pageId'],
	        'page_type' => $arrayParameters['pageType'],
	        'page_status' => 1,
	        'page_menu' => 'LINK',
	        'page_name' => $arrayParameters['siteName'],
	        'page_tpl_id' => $arrayParameters['templateId'],
	        'page_content' => '<?xml version="1.0" encoding="UTF-8"?><document type="MelisCMS" author="MelisTechnology" version="2.0"></document>',
	        'page_taxonomy' => '',
	        'page_creation_date' => date('Y-m-d H:i:s')
	    ));
	    
	    // Updating platform ids after site pages creation
	    $platform = array(
           'pids_page_id_current' => ++$arrayParameters['pageId']
        );
	    $cmsPlatformTable->save($platform, $arrayParameters['platformId']);
	    
	    // Service implementation end
	    
	    // Adding results to parameters for events treatment if needed
	    $arrayParameters['results'] = $arrayParameters['pageId'];
	    // Sending service end event
	    $arrayParameters = $this->sendEvent('meliscmssite_service_save_site_page_end', $arrayParameters);
	    
	    return $arrayParameters['results'];
	}
private function createSitePage($siteName, $fatherId, $siteLangId, $pageType, $pageId, $templateId, $platformId)
	{
	    // Event parameters prepare
	    $arrayParameters = $this->makeArrayFromParameters(__METHOD__, func_get_args());
	    
	    // Sending service start event
	    $arrayParameters = $this->sendEvent('meliscmssite_service_save_site_page_start', $arrayParameters);
	    
	    // Service implementation start
	   
	    $pageTreeTable = $this->getServiceLocator()->get('MelisEngineTablePageTree');
	    $pageLangTable = $this->getServiceLocator()->get('MelisEngineTablePageLang');
	    $pageSavedTable = $this->getServiceLocator()->get('MelisEngineTablePageSaved');
	    $cmsPlatformTable = $this->getServiceLocator()->get('MelisEngineTablePlatformIds');
	    
	    /**
	     * Retrieving the Current Page tree
	     * with Father Id of -1 "root node of the page tree"
	     * to get the Order of the new entry
	     */
	    $treePageOrder = $pageTreeTable->getTotalData('tree_father_page_id', $fatherId);
	    // Saving Site page on Page tree
	    $pageTreeTable->save(array(
	        'tree_page_id' => $arrayParameters['pageId'],
	        'tree_father_page_id' => $fatherId,
	        'tree_page_order' => $treePageOrder + 1,
	    ));
	     
	    // Saving Site page Language
	    $pageLangTable->save(array(
	        'plang_page_id' => $arrayParameters['pageId'],
	        'plang_lang_id' => $arrayParameters['siteLangId'],
	        'plang_page_id_initial' => $arrayParameters['pageId']
	    ));
	    
	    // Saving Site page in Save Version as new page entry
	    $pageSavedTable->save(array(
	        'page_id' => $arrayParameters['pageId'],
	        'page_type' => $arrayParameters['pageType'],
	        'page_status' => 1,
	        'page_menu' => 'LINK',
	        'page_name' => $arrayParameters['siteName'],
	        'page_tpl_id' => $arrayParameters['templateId'],
	        'page_content' => '<?xml version="1.0" encoding="UTF-8"?><document type="MelisCMS" author="MelisTechnology" version="2.0"></document>',
	        'page_taxonomy' => '',
	        'page_creation_date' => date('Y-m-d H:i:s')
	    ));
	    
	    // Updating platform ids after site pages creation
	    $platform = array(
           'pids_page_id_current' => ++$arrayParameters['pageId']
        );
	    $cmsPlatformTable->save($platform, $arrayParameters['platformId']);
	    
	    // Service implementation end
	    
	    // Adding results to parameters for events treatment if needed
	    $arrayParameters['results'] = $arrayParameters['pageId'];
	    // Sending service end event
	    $arrayParameters = $this->sendEvent('meliscmssite_service_save_site_page_end', $arrayParameters);
	    
	    return $arrayParameters['results'];
	}
private function createSitePage ( $ siteName , $ fatherId , $ siteLangId , $ pageType , $ pageId , $ templateId , $ platformId ) { // Event parameters prepare $ arrayParameters = $ this -> makeArrayFromParameters ( __METHOD__ , func_get_args ( ) ) ; // Sending service start event $ arrayParameters = $ this -> sendEvent ( 'meliscmssite_service_save_site_page_start' , $ arrayParameters ) ; // Service implementation start $ pageTreeTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePageTree' ) ; $ pageLangTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePageLang' ) ; $ pageSavedTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePageSaved' ) ; $ cmsPlatformTable = $ this -> getServiceLocator ( ) -> get ( 'MelisEngineTablePlatformIds' ) ; /**
	     * Retrieving the Current Page tree
	     * with Father Id of -1 "root node of the page tree"
	     * to get the Order of the new entry
	     */ $ treePageOrder = $ pageTreeTable -> getTotalData ( 'tree_father_page_id' , $ fatherId ) ; // Saving Site page on Page tree $ pageTreeTable -> save ( array ( 'tree_page_id' => $ arrayParameters [ 'pageId' ] , 'tree_father_page_id' => $ fatherId , 'tree_page_order' => $ treePageOrder + 1 , ) ) ; // Saving Site page Language $ pageLangTable -> save ( array ( 'plang_page_id' => $ arrayParameters [ 'pageId' ] , 'plang_lang_id' => $ arrayParameters [ 'siteLangId' ] , 'plang_page_id_initial' => $ arrayParameters [ 'pageId' ] ) ) ; // Saving Site page in Save Version as new page entry $ pageSavedTable -> save ( array ( 'page_id' => $ arrayParameters [ 'pageId' ] , 'page_type' => $ arrayParameters [ 'pageType' ] , 'page_status' => 1 , 'page_menu' => 'LINK' , 'page_name' => $ arrayParameters [ 'siteName' ] , 'page_tpl_id' => $ arrayParameters [ 'templateId' ] , 'page_content' => '<?xml version="1.0" encoding="UTF-8"?><document type="MelisCMS" author="MelisTechnology" version="2.0"></document>' , 'page_taxonomy' => '' , 'page_creation_date' => date ( 'Y-m-d H:i:s' ) ) ) ; // Updating platform ids after site pages creation $ platform = array ( 'pids_page_id_current' => ++ $ arrayParameters [ 'pageId' ] ) ; $ cmsPlatformTable -> save ( $ platform , $ arrayParameters [ 'platformId' ] ) ; // Service implementation end // Adding results to parameters for events treatment if needed $ arrayParameters [ 'results' ] = $ arrayParameters [ 'pageId' ] ; // Sending service end event $ arrayParameters = $ this -> sendEvent ( 'meliscmssite_service_save_site_page_end' , $ arrayParameters ) ; return $ arrayParameters [ 'results' ] ; }
This method creating Site page

@param String $siteName
@param Int $fatherId
@param Int $siteLangId
@param String $pageType
@param Int $pageId
@param Int $templateId
@param Int $platformId
@return Int
This method creating Site page