tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Class: Web_Site_Config

Source Location: /web_site/web_site_config.class.php

Class Web_Site_Config

Class Overview
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Tangra_Class

Tangra_Class::get_class_name()
Alias of get_class(). Exist because of historical reasons.
Tangra_Class::__set()
Overides PHP built-in method and just throws exception if called. Purpose - to "forbid" autosetting of nonexisting class properties.

[ Top ]
Property Summary
string   $base_url   Base URL
string   $current_host   Current hostname
integer   $current_port   Current port
string   $current_protocol   Current protocol
string   $default_encoding   Default encoding for the site
string   $document_root_dir   Document root absolute path
string   $document_root_relative   Document root relative to $document_root_dir
integer   $error_reporting   Error reporting level Default is 4095
integer   $error_reporting_php4_libs   Error reporting for PHP4 libs Default is 2047
string   $ext_inc_dir   ext_inc dir absolute path
string   $hidden_dir   "Hidden" dir absolute path
mixed   $instance_name   Used to distigush installations on different servers.
string   $root_dir   Site's root absolute path. It is not docroot, see bellow!
string   $scratch_dir   "Scratch" dir absolute path
string   $server_error_page   Address of server error page
integer   $site_mode   Site mode
string   $site_name   Site system name

[ Top ]
Method Summary
string   get_base_url()   Returns base URL
string   get_boot_dir()   Returns boot dir
string   get_conf_dir()   Returns conf dir
string   get_cron_jobs_dir()   Returns cron_jobs dir
string   get_current_host()   Returns current hostname
integer   get_current_port()   Returns current port
unknown   get_current_protocol()   Returns current protocol
string   get_db_dir()   Returns DB directory
string   get_debug_dir()   Return debug dir
string   get_default_encoding()   Returns default encoding of the site
string   get_document_root_dir()   Returns document root absolute path
string   get_document_root_relative()   Gets document root relative directory
integer   get_error_reporting()   Returns error_reporting level
integer   get_error_reporting_php4_libs()   Returns error reporting for PHP4 libraries
string   get_ext_inc_dir()   Returns ext_inc dir absolute path
string   get_hidden_dir()   Returns hidden dir absolute path
string   get_htdocs_dir()   Alias of get_document_root_dir();
string   get_inc_dir()   Alias of get_site_inc_dir()
string   get_instance_name()   Returns instance name
string   get_logs_dir()   Returns logs directory
string   get_rc_d_dir()   Returns rc.d directory
unknown   get_root_dir()   Returns site's root directory absolute path
string   get_scratch_dir()   Returns scratch dir absolute path
string   get_scratch_tpl_dir()   Returns templates scratch directory
string   get_server_error_page()   Returns server error page address
string   get_sid()   Alias of get_site_inc_dir
string   get_site_inc_dir()   Returns site include dir
integer   get_site_mode()   Returns site mode
unknown   get_site_name()   Gets site name
string   get_tpl_dir()   Returns templates directory
string   get_uploads_dir()   Return uplaods dir
void   set_base_url()   Sets base URL
void   set_current_host()   Sets current hostname
void   set_current_port()   Sets current port
void   set_current_protocol()   Sets current protocol
void   set_default_encoding()   Sets default encoding for the site Example: set_default_encoding('utf-8');
void   set_document_root_dir()   Sets document root absolute path
void   set_document_root_relative()   Sets document root relative directory (relative to document root (set with set_root_dir()))
void   set_error_reporting()   Sets error reporting level
void   set_error_reporting_php4_libs()   Sets error reporting for PHP4 libraries
void   set_ext_inc_dir()   Sets ext_inc dir absolute path
void   set_hidden_dir()   Sets hidden dir absolute path
void   set_htdocs_dir()   Alias of set_document_root_dir()
void   set_instance_name()   Sets instance name
void   set_root_dir()   Sets site's root directory absolute path. It is not docroot, see bellow!
void   set_scratch_dir()   Sets scratch dir absolute path
void   set_server_error_page()   Sets server error page address
void   set_site_mode()   Sets site mode
void   set_site_name()   Sets site name
void   _set_document_root_dir()   Sets document root absolute path
void   _set_ext_inc_dir()   Sets ext_inc dir absolute path
void   _set_hidden_dir()   Sets hidden dir absolute path
void   _set_scratch_dir()   Sets scratch dir absolute path

[ Top ]
Properties
string   $base_url [line 158]

Base URL

API Tags:
Internal:  
Access:  private


[ Top ]
string   $current_host [line 137]

Current hostname

API Tags:
Internal:  
Access:  private


[ Top ]
integer   $current_port [line 144]

Current port

API Tags:
Internal:  
Access:  private


[ Top ]
string   $current_protocol [line 151]

Current protocol

API Tags:
Internal:  
Access:  private


[ Top ]
string   $default_encoding [line 100]

Default encoding for the site

API Tags:
Internal:  
Access:  private


[ Top ]
string   $document_root_dir [line 65]

Document root absolute path

API Tags:
Internal:  
Access:  private


[ Top ]
string   $document_root_relative [line 72]

Document root relative to $document_root_dir

API Tags:
Internal:  
Access:  private


[ Top ]
integer   $error_reporting = 4095 [line 115]

Error reporting level Default is 4095

API Tags:
Internal:  
Access:  private


[ Top ]
integer   $error_reporting_php4_libs = 2047 [line 123]

Error reporting for PHP4 libs Default is 2047

API Tags:
Internal:  
Access:  private


[ Top ]
string   $ext_inc_dir [line 93]

ext_inc dir absolute path

API Tags:
Internal:  
Access:  private


[ Top ]
string   $hidden_dir [line 79]

"Hidden" dir absolute path

API Tags:
Internal:  
Access:  private


[ Top ]
mixed   $instance_name [line 164]

Used to distigush installations on different servers.

This is free form string

API Tags:
Access:  private


[ Top ]
string   $root_dir [line 58]

Site's root absolute path. It is not docroot, see bellow!

API Tags:
Internal:  
Access:  private


[ Top ]
string   $scratch_dir [line 86]

"Scratch" dir absolute path

API Tags:
Internal:  
Access:  private


[ Top ]
string   $server_error_page = 'server_error.php' [line 107]

Address of server error page

API Tags:
Internal:  
Access:  private


[ Top ]
integer   $site_mode = Web_Site_Config::SITE_MODE_DEVELOPMENT [line 130]

Site mode

API Tags:
Internal:  
Access:  private


[ Top ]
string   $site_name [line 51]

Site system name

API Tags:
Internal:  
Access:  private


[ Top ]
Methods
get_base_url  [line 743]

  string get_base_url( )

Returns base URL


API Tags:
Access:  public


[ Top ]
get_boot_dir  [line 421]

  string get_boot_dir( )

Returns boot dir


API Tags:
Access:  public


[ Top ]
get_conf_dir  [line 431]

  string get_conf_dir( )

Returns conf dir


API Tags:
Access:  public


[ Top ]
get_cron_jobs_dir  [line 441]

  string get_cron_jobs_dir( )

Returns cron_jobs dir


API Tags:
Access:  public


[ Top ]
get_current_host  [line 683]

  string get_current_host( )

Returns current hostname


API Tags:
Access:  public


[ Top ]
get_current_port  [line 703]

  integer get_current_port( )

Returns current port


API Tags:
Access:  public


[ Top ]
get_current_protocol  [line 723]

  unknown get_current_protocol( )

Returns current protocol


API Tags:
Access:  public


[ Top ]
get_db_dir  [line 502]

  string get_db_dir( )

Returns DB directory

(For sqlite, if used)


API Tags:
Access:  public


[ Top ]
get_debug_dir  [line 542]

  string get_debug_dir( )

Return debug dir


API Tags:
Access:  public


[ Top ]
get_default_encoding  [line 411]

  string get_default_encoding( )

Returns default encoding of the site


API Tags:
Access:  public


[ Top ]
get_document_root_dir  [line 251]

  string get_document_root_dir( )

Returns document root absolute path


API Tags:
Access:  public


[ Top ]
get_document_root_relative  [line 566]

  string get_document_root_relative( )

Gets document root relative directory


API Tags:
Access:  public


[ Top ]
get_error_reporting  [line 613]

  integer get_error_reporting( )

Returns error_reporting level


API Tags:
Access:  public


[ Top ]
get_error_reporting_php4_libs  [line 637]

  integer get_error_reporting_php4_libs( )

Returns error reporting for PHP4 libraries


API Tags:
Access:  public


[ Top ]
get_ext_inc_dir  [line 389]

  string get_ext_inc_dir( )

Returns ext_inc dir absolute path


API Tags:
Access:  public


[ Top ]
get_hidden_dir  [line 311]

  string get_hidden_dir( )

Returns hidden dir absolute path


API Tags:
Access:  public


[ Top ]
get_htdocs_dir  [line 271]

  string get_htdocs_dir( )

Alias of get_document_root_dir();


API Tags:
Access:  public


[ Top ]
get_inc_dir  [line 460]