Source for file t_globalscope_variable.class.php
Documentation is available at t_globalscope_variable.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 @=@=@=@*
* TGlobalScopeVariable Class
* @version $Id: t_globalscope_variable.class.php 606 2007-07-19 10:14:30Z stephanet $
* Include the abstract class to manage scopes
require_once('internal_components/common/scope/xt_globalscope.class.php');
* Manage a global variable scope for all the website (a scope website)
* @version $Id: t_globalscope_variable.class.php 606 2007-07-19 10:14:30Z stephanet $
* Constructor, init the requests and objects
* @return TGlobalScopeVariable
* Is not valid type (declared in the {@link xTGlobalScope})
* @param unknown_type $p_gsc_type
return !isset
($this->m_types[$p_gsc_type]);
* Append array erors from import
* @param array $p_array_errors
// on ajoute la nouvelle ligne en erreur
$result_array[sizeof($result_array)] =
$p_array_errors;
return $this->xNewGlobal('array_import_errors', $result_array);
* Destroy array errors from import
* @return bool TRUE on error
return $this->xDelete('array_import_errors');
* Get array errors from import
* @param array $r_array_errors
* @return bool TRUE on error
if ($this->xGet('array_import_errors', $r_array_errors)) {
$r_array_errors =
array();
* @param array $p_array_default
* @return bool TRUE on error
return $this->xNewGlobal('array_html_editor_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
$p_array_default =
array();
return $this->xGet('array_html_editor_format', $p_array_default);
* Set number of product by page fo
* @param integer $p_number_of_product
* @return bool TRUE on error
return $this->xNewGlobal('number_product_pagefo', $p_number_of_product);
* Get number of product by page
* @param integer $p_number_of_product
* @return bool TRUE on error
return $this->xGet('number_product_pagefo', $p_number_of_product);
* @param array $p_array_default
* @return bool TRUE on error
return $this->xNewGlobal('array_weight_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
$p_array_default =
array();
return $this->xGet('array_weight_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
return $this->xNewGlobal('array_price_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
$p_array_default =
array();
return $this->xGet('array_price_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
return $this->xNewGlobal('array_date_format', $p_array_default);
* @param array $p_array_default
* @return bool TRUE on error
$p_array_default =
array();
return $this->xGet('array_date_format', $p_array_default);
* Set array default selected format
* @param array $p_array_default
* @return bool TRUE on error
return $this->xNewGlobal('array_import_default', $p_array_default);
* Get array default selected for import
* @param array $p_array_default
* @return bool TRUE on error
$p_array_default =
array();
return $this->xGet('array_import_default', $p_array_default);
* set default language id
* @param integer $p_default_lang_id
* @return bool TRUE on error
return $this->xNewGlobal('default_lang_id', $p_default_lang_id);
* Get default language id
* @param integer $p_default_lang_id
* @return bool TRUE on error
return $this->xGet('default_lang_id', $p_default_lang_id);
* set rss udpated page suffix
* @param string $p_rss_updated_page_suffix
* @return bool TRUE on error
return $this->xNewGlobal('rss_updated_page_suffix', $p_rss_updated_page_suffix);
* Get rss updated page suffi
* @param string $p_rss_updated_page_suffix
* @return bool TRUE on error
$p_rss_updated_page_suffix =
"";
if($this->xGet('rss_updated_page_suffix', $p_rss_updated_page_suffix)) {
$p_rss_updated_page_suffix =
"(Mise à jour)";
* SDet value message if no delivery cost finded
* @return bool TRUE on error
return $this->xNewGlobal('msg_no_deliverycosts_find', $p_value);
* get Values message if no delivery cost finded
* @return bool TRUE on error
$there_is_an_error =
$this->xGet('msg_no_deliverycosts_find', $r_value);
return $there_is_an_error;
* @return bool TRUE on error
return $this->xNewGlobal('array_mail_settings', $p_value);
* @param string $p_database_selected
* @return bool TRUE on error
function getMailSettings(&$r_value, $encode =
true, $p_database_selected=
"") {
$there_is_an_error =
$this->xGet('array_mail_settings', $r_value, $p_database_selected);
for ($i=
0; $i<
sizeof($keys); $i++
) {
return $there_is_an_error;
* Set web site width informations
* @return bool TRUE on error
return $this->xNewGlobal('array_web_site_width_informationprice_format', $p_array);
* Get web sit width informations
* @return bool TRUE on error
if ($this->xGet('array_web_site_width_informationprice_format', $r_array)) {
'logo_top_background_color' =>
'',
'logo_top_align' =>
'left',
Documentation generated on Tue, 25 Mar 2008 15:36:24 +0100 by phpDocumentor 1.3.2