siteInformationThe main class of PLICI. siteInformation give alls informations needed on a website.
This class is launched for every PLICI webPage, you can use it for know if you are on an admin page or a front page for exemaple.
Located in /core/internal_components/common/globals/site_information.class.php (line 63)
array
getArrayQueryString
(string $p_from_string, [array $p_add_array = array()], [array $p_array_del_keys = array()], [bool $p_is_first_params_for_url = true])
bool
getExistTemplateNotCompiledFilePath
(string $p_filename, &$r_template_not_compiled_path, [bool $p_force_front = false], [string $p_dir = ""], string $r_template_not_compiled_path)
string
getQueryString
(string $p_from_string, [array $p_add_array = array()], [array $p_array_del_keys = array()], [bool $p_is_first_params_for_url = true])
void
redirectToPageAndDie
(integer $p_page_id, [string $p_page_title = ""], [array $p_param = array()], [bool $transfet_query_string = false])
void
redirectToProductAndDie
(integer $pro_id, integer $p_id_father_page, [string $pro_title = ""], [bool $p_param = array()])
void
xFindIfIsAdmin
( &$p_siteinformation_object, &$p_template_site_name, string $p_fo_name, string $p_bo_name, string $p_admin_corresp_site_template, siteInformation $p_siteinformation_object, string $p_template_site_name)
bool
$is_localhost
= false (line 366)
Is from locahost
string
$m_admin_plici_site_dir_name
= "admin_plici/" (line 275)
"admin_plici/"
string
$m_admin_site_prefix
= "admin_" (line 256)
"admin_"
string
$m_back_site_dir_name
= "admin_sites/" (line 269)
"admin_sites/"
string
$m_bd_from_root
= "bd/" (line 348)
"bd/"
string
$m_bo_entry
= "" (line 75)
The Entree Back path : racineweb.$this->m_entrees_from_root.$this->m_back_site_dir_name
string
$m_bo_stats_entry
= "" (line 81)
The Statistics entree path: $this->m_view_external.$this->m_ext_cmp_stat_dir = view/external_components/stats/
string
$m_core_themeelements
= "theme_elements/" (line 250)
"theme_elements/"
string
$m_css_file
= "css_screen.css" (line 318)
"css_screen.css"
string
$m_database_site_name
= "" (line 105)
Database name for the current web site
string
$m_entrees_from_root
= "/core/entrees/" (line 195)
"/core/entrees/"
string
$m_error_doc_busy_page_from_view
= "../error_doc/busy.php" (line 226)
"../error_doc/busy.php"
string
$m_ext_cmp_stat_dir
= "stats/" (line 219)
"stats/"
string
$m_fo_entry
= "" (line 69)
The Entree Front path : racineweb.$this->m_entrees_from_root.$this->m_front_site_dir_name
string
$m_fo_internal
= "" (line 87)
The Front Internal Path : $local_site_racineweb_path.$this->m_internal_from_root.$this->m_front_site_dir_name;
string
$m_front_site_dir_name
= "front_sites/" (line 263)
"front_sites/"
string
$m_import_directory_name
= "import/" (line 282)
"import/"
string
$m_internal_from_root
= "/core/internal_components/" (line 244)
"/core/internal_components/"
bool
$m_is_admin
= false (line 99)
Current site is BackOffice
bool
$m_is_js_or_css
= false (line 161)
Is a JSS or CSS page
bool
$m_i_have_personal_no_photo
= false (line 174)
I have no personal photo
string
$m_js_dialog_path
= "pCODING/js/dialog/" (line 330)
pCODING/js/dialog/"
string
$m_js_file
= "js_general.js" (line 324)
"js_general.js"
string
$m_local_site_racineweb_path
= "" (line 399)
Racine web path (PLICI directory)
string
$m_message_file
= "messages.txt" (line 187)
string
$m_module_dir_file
= "module/" (line 207)
"module/"
string
$m_module_dir_http
= "plici_mod" (line 213)
"plici_mod"
bool
$m_page_center_can_be_cached
= true (line 385)
Page center can be cached
string
$m_picture_directory_name
= "picture/" (line 288)
"picture/"
string
$m_picture_http
= "" (line 149)
The picture http url : $this->m_root_http_fo.$this->getPictureDirectoryName();
string
$m_picture_http_bo
= "" (line 155)
The picture http url for BackOffice : $this->m_root_http.$this->getPictureDirectoryName();
string
$m_refenrencing_http_path
= "" (line 143)
The only part of the url to be referenced ex : my%20product For an url http://www.plici.net/p254_my%20product.html
string
$m_root_http
= "" (line 123)
The Root Http url with language id : $this->m_root_http_without_lang."l".$lang_id."/";
unknown_type
$m_root_http_fo
= "" (line 129)
The root http url with language forced to Front URL: $this->m_root_http_fo_without_lang."l".$lang_id."/";
string
$m_root_http_fo_without_lang
= "" (line 372)
The root http url without language forced to Front URL
string
$m_root_http_without_lang
= "" (line 378)
The root http url without language
string
$m_site_name
= "" (line 111)
Sitename (database name for front, admin directory for backoffice or superadmin)
string
$m_stats_file_path
= "pVISITEURS/stats/" (line 336)
"pVISITEURS/stats/"
string
$m_template_filename
= "" (line 181)
Template filename to display
string
$m_template_site_name
= "" (line 117)
Template site name (database name for front, admin directory for backoffice or superadmin)
string
$m_theme_from_my_or_plici
= "" (line 406)
Theme from my or plici (the name)
string
$m_theme_screen_shoot_big
= "/screen_shoot_big.jpg" (line 360)
"/screen_shoot_big.jpg"
string
$m_theme_screen_shoot_little
= "/screen_shoot_little.jpg" (line 354)
"screen_shoot_little.jpg"
string
$m_tmp_from_root
= "/tmp/" (line 238)
"/tmp/"
string
$m_tmp_root
= "" (line 414)
Temporary file path : $local_site_racineweb_path.$this->m_tmp_from_root;
string
$m_tpl_cache_file
= "cache/" (line 312)
"cache/"
string
$m_tpl_compiled_file
= "template_compiled/" (line 300)
"template_compiled/"
string
$m_tpl_config_file
= "config/" (line 306)
"config/"
string
$m_tpl_not_compiled_file
= "/" (line 294)
"template_not_compiled/"
string
$m_uri_for_ini
= "" (line 136)
The short uri (for ini file) : /index.html
string
$m_view_external
= "" (line 167)
Path to the view external : $local_site_racineweb_path."/".$this->m_view_external_from_root;
string
$m_view_external_from_root
= "view/external_components/" (line 201)
"view/external_components/"
string
$m_view_from_root
= "/view/sites/" (line 232)
"/view/sites/"
string
$m_view_root
= "" (line 93)
The View Path : $local_site_racineweb_path.$this->m_view_from_root
array
$params_to_not_pass_in_querystring
= array("id_menu", "c_l_a", "ht_ray_id",When making a redirect, list of parameters to doesn't pass again
Constructor, init the requests and objects
Set m_refenrencing_http_path
Display a busy page when the web site is unactivated by SuperAdmin
Modify the http parameters to add or delete someone
Return full http path : http://www.xx.xxx/l1/ or http://www.xx.xxx/admin_xxx/l1/
Return full http path force front: http://www.xx.xxx/l1/
Return full http path force front: http://www.xx.xxx/
Return full http path: http://www.xx.xxx/admin_xxx/l1/pVISITEURS/stats/
return the referencing part for url
Return current language id for front
Get current language id
Search and test if template exsit
Get path : racineweb/core/entrees/front_sites/
Get path : racineweb/core/internal_components/front_sites/
Return the current HTTP host, for example : www.plici.net for a web page from plici.net If the http host is not finded, we will return the server_name.
Get http path for css front in front : /css_screen.css
Return the http or https url prefix
return htt path for js dialog : pCODING/js/dialog/
Get htt servername : http(s)://www.host.xxx/
Return the http stats stick : /pVISITEURS/stats/
Import file path : view/sites/my/sitename/admin_xxx/import/
Get the module file path /view/external_components/module/
Find if it is My or For_plici direectory to use from theme.
because a theme can be in for_plici or my (personal theme)
Get picture directory name : picture/
Get picture file path : racineweb/view/sites/my/sitenamen/picture/
Get picture file path specified : /view/sites/my/sitename/picture/
Get picture http path for BO: /admin_xxx/picture/
Get the query string : ?var=value&var2=value2
BackOffice Test session id name : bsidTest
Get site directory for tmp : database_site_name ou template_site_name
Get site directory for view
Get template cache file path for smarty
Get template cache file path for smarty for a specified website
Get template compiled file path for smarty
Get template config file path for smarty
Get template not compiled file path for smarty
Get temporary file path for smarty
Get View external from root : view/external_components/
Get view external path : racineweb/view/external_components/
Get view file path front office : racineweb/view/sites/sitename/
Make url for language : /l1/
CHeck for a site_name wich database it must used (manage the PLICI host)
Redirect to Backoffice url
Redirect to external uri
Redirect to a page and die
Redirect to php self
Used when adding a product to avoid the link will be memorized by a navigator back
Redirect to a product and die
Set current language id
Set current language id
Set page can be cached
Set template's filename var
Find if it is admin
Redirect
set language id to urls
Documentation generated on Tue, 25 Mar 2008 15:35:48 +0100 by phpDocumentor 1.3.2