Source for file xt_page.class.php
Documentation is available at xt_page.class.php
*@=@=@=@ START LICENSE @=@=@=@*
Copyright or © or Copr. Stéphane TRICHET and Nicolas SOTRON
stephane.t@simpliciweb.net and nicolas.s@simpliciweb.net
This software is a computer program whose purpose is to make a
This software is governed by the CeCILL license under French law and
abiding by the rules of distribution of free software. You can use,
modify and/ or redistribute the software under the terms of the CeCILL
license as circulated by CEA, CNRS and INRIA at the following URL
"http://www.cecill.info".
As a counterpart to the access to the source code and rights to copy,
modify and redistribute granted by the license, users are provided only
with a limited warranty and the software's author, the holder of the
economic rights, and the successive licensors have only limited
In this respect, the user's attention is drawn to the risks associated
with loading, using, modifying and/or developing or reproducing the
software by the user in light of its specific status of free software,
that may mean that it is complicated to manipulate, and that also
therefore means that it is reserved for developers and experienced
professionals having in-depth computer knowledge. Users are therefore
encouraged to load and test the software's suitability as regards their
requirements in conditions enabling the security of their systems and/or
data to be ensured and, more generally, to use and operate it in the
same conditions as regards security.
The fact that you are presently reading this means that you have had
knowledge of the CeCILL license and that you accept its terms.
*@=@=@=@ END LICENSE @=@=@=@*
* @version $Id: xt_page.class.php 738 2007-12-05 15:16:46Z nicolas_s $
* Include the ocject cache class
require_once('internal_components/common/cache_class/object_cached.class.php');
* Command part for managing the web page of the front office web site
* @version $Id: xt_page.class.php 738 2007-12-05 15:16:46Z nicolas_s $
* Set array for translate all plici_page_id in page_id
* List separator for stock array in database
* Is not private. This symbol is used in request
* SQL Request : Get all plici page id not null with page id.
* Usefull to build translate array
"SELECT page_id, plici_page_id
WHERE plici_page_id IS NOT NULL;";
* Constructor, init the requests and objects
$this->m_type["SYSTEM"] =
"SY";
$this->m_type["INTERNAL"] =
"IN"; //C2=IN
$this->m_type["UNIT"] =
"UN"; //C3=UN
$this->m_type["CONTAINER"] =
"CO";
$this->m_type["SPECIAL"] =
"SP"; //C4=SP
$this->m_type["NO_DELETE"] =
"ND";
$this->m_type["MODULE"] =
"MO";
$this->m_type["INDEX"] =
"IX"; //INDEX
$this->m_robot["INDEX, FOLLOW"]=
"IF";
$this->m_robot["INDEX, FOLLOW, ALL"]=
"IFA";
$this->m_robot["INDEX, NOFOLLOW"]=
"IN";
$this->m_robot["INDEX, NOFOLLOW, ALL"]=
"INA";
$this->m_robot["NOINDEX, FOLLOW"]=
"NF";
$this->m_robot["NOINDEX, FOLLOW, ALL"]=
"NFA";
$this->m_robot["NOINDEX, NOFOLLOW"]=
"NN";
$this->m_robot["NOINDEX, NOFOLLOW, ALL"]=
"NNA";
* Parameter Integrity checker
* @return bool TRUE if not valid
* Parameter Integrity checker
* @return bool TRUE if not valid
* Parameter Integrity checker
* @return bool TRUE if not valid
* Parameter Integrity checker
* @return bool TRUE if not valid
* Parameter Integrity checker
* @return bool TRUE if not valid
* Parameter Integrity checker
* @return bool TRUE if not valid
* Return the template name for a link
if ((isset
($p_name)) &&
(null !=
$p_name))
//Suppression de répertoire detail du chemin des scripts
$tmp =
strstr($p_name, "detail/");
$tmp =
FALSE ===
$tmp?
$p_name:
substr($tmp, strlen("detail/"));
* Translate PLICI_PAGE_ID in page_id
* Return page id for one page identified by plici page id
* @param string $p_plici_page_id
* @return bool TRUE on error
$g_object_message =
& $g_object_loader->getMessage();
if ($g_object_message->thereIsAnError()) {
// Translate table is empty or page is not found
// Reload translate table
trigger_error("This PLICI page id :".
$p_plici_page_id.
" is unknow");
* Translate page_id in PLICI_PAGE_ID
* Return plici page id for one page identified by page id
* @param integer $p_page_id
* @return bool TRUE on error
$g_object_message =
& $g_object_loader->getMessage();
if ($g_object_message->thereIsAnError()) {
if ((0==
count($translate_array))
||
(!isset
($translate_array[$p_page_id])))
// Translate table is empty or page is not found
// Reload translate table
if (isset
($translate_array[$p_page_id]))
$r_result =
$translate_array[$p_page_id];
* Fill plici page id translate array
* @return bool TRUE on error
// Declare database request result
* Transform array in string
* @param array $p_page_dbc_dbname_list
* @return bool TRUE on error
* @return bool TRUE on error
global $g_object_siteinformation;
Documentation generated on Tue, 25 Mar 2008 15:37:35 +0100 by phpDocumentor 1.3.2