Returns base URL
API Tags:
Returns boot dir
API Tags:
Returns conf dir
API Tags:
string get_cron_jobs_dir(
)
|
|
Returns cron_jobs dir
API Tags:
string get_current_host(
)
|
|
Returns current hostname
API Tags:
integer get_current_port(
)
|
|
Returns current port
API Tags:
unknown get_current_protocol(
)
|
|
Returns current protocol
API Tags:
Returns DB directory
(For sqlite, if used)
API Tags:
Return debug dir
API Tags:
string get_default_encoding(
)
|
|
Returns default encoding of the site
API Tags:
string get_document_root_dir(
)
|
|
Returns document root absolute path
API Tags:
string get_document_root_relative(
)
|
|
Gets document root relative directory
API Tags:
integer get_error_reporting(
)
|
|
Returns error_reporting level
API Tags:
integer get_error_reporting_php4_libs(
)
|
|
Returns error reporting for PHP4 libraries
API Tags:
boolean get_expose_tangra(
)
|
|
Returns expose tangra flag
API Tags:
string get_ext_inc_dir(
)
|
|
Returns ext_inc dir absolute path
API Tags:
Returns hidden dir absolute path
API Tags:
Alias of get_document_root_dir();
API Tags:
Alias of get_site_inc_dir()
API Tags:
string get_instance_name(
)
|
|
Returns instance name
API Tags:
Returns logs directory
API Tags:
Returns rc.d directory
API Tags:
Returns site's root directory absolute path
API Tags:
string get_scratch_dir(
)
|
|
Returns scratch dir absolute path
API Tags:
string get_scratch_tpl_dir(
)
|
|
Returns templates scratch directory
API Tags:
string get_server_error_page(
)
|
|
Returns server error page address
API Tags:
Alias of get_site_inc_dir
API Tags:
string get_site_inc_dir(
)
|
|
Returns site include dir
API Tags:
Returns site mode
API Tags:
Returns templates directory
API Tags:
string get_uploads_dir(
)
|
|
Return uplaods dir
API Tags:
void set_base_url(
string
$base_url
)
|
|
Sets base URL
Parameters:
API Tags:
void set_current_host(
string
$current_host
)
|
|
Sets current hostname
Parameters:
API Tags:
void set_current_port(
integer
$current_port
)
|
|
Sets current port
Parameters:
API Tags:
void set_current_protocol(
string
$current_protocol
)
|
|
Sets current protocol
Parameters:
|
string |
$current_protocol: |
|
API Tags:
void set_default_encoding(
string
$default_encoding
)
|
|
Sets default encoding for the site Example: set_default_encoding('utf-8');
Parameters:
|
string |
$default_encoding: |
|
API Tags:
void set_document_root_dir(
[string
$document_root_dir = NULL]
)
|
|
Sets document root absolute path
Parameters:
|
string |
$document_root_dir: |
|
API Tags:
void set_document_root_relative(
string
$document_root_relative
)
|
|
Sets document root relative directory (relative to document root (set with set_root_dir()))
Parameters:
|
string |
$document_root_relative: |
|
API Tags:
void set_error_reporting(
integer
$error_reporting
)
|
|
Sets error reporting level
Parameters:
|
integer |
$error_reporting: |
|
API Tags:
Information Tags:
| Throws: | TE_Web_Site_Config_Error |
void set_error_reporting_php4_libs(
integer
$error_reporting
)
|
|
Sets error reporting for PHP4 libraries
Parameters:
|
integer |
$error_reporting: |
|
API Tags:
void set_expose_tangra(
boolean
$expose_tangra
)
|
|
Sets expose tangra flag. If true http header like X-Powered-By: Tangra Framework for PHP/2.* will be generated
Parameters:
API Tags:
void set_ext_inc_dir(
[string
$ext_inc_dir = NULL]
)
|
|
Sets ext_inc dir absolute path
Parameters:
API Tags:
void set_hidden_dir(
[string
$hidden_dir = NULL]
)
|
|
Sets hidden dir absolute path
Parameters:
API Tags:
void set_htdocs_dir(
[string
$document_root_dir = NULL]
)
|
|
Alias of set_document_root_dir()
Parameters:
|
string |
$document_root_dir: |
|
API Tags:
void set_instance_name(
string
$instance_name
)
|
|
Sets instance name
Parameters:
API Tags:
void set_root_dir(
string
$root_dir
)
|
|
Sets site's root directory absolute path. It is not docroot, see bellow!
Parameters:
API Tags:
void set_scratch_dir(
[string
$scratch_dir = NULL]
)
|
|
Sets scratch dir absolute path
Parameters:
API Tags:
void set_server_error_page(
string
$server_error_page
)
|
|
Sets server error page address
Parameters:
|
string |
$server_error_page: |
|
API Tags:
void set_site_mode(
integer
$site_mode
)
|
|
Sets site mode
Web_Site_Config::SITE_MODE_DEVELOPMENT or Web_Site_Config::SITE_MODE_PRODUCTION
Parameters:
API Tags:
void set_site_name(
string
$site_name
)
|
|
Sets site name
Parameters:
API Tags:
void _set_document_root_dir(
unknown_type
$document_root_dir
)
|
|
Sets document root absolute path
Parameters:
|
unknown_type |
$document_root_dir: |
|
API Tags:
| Internal: | |
| Access: | private |
Information Tags:
| Throws: | TE_Web_Site_Config_Error |
void _set_ext_inc_dir(
string
$ext_inc_dir
)
|
|
Sets ext_inc dir absolute path
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Web_Site_Config_Error |
void _set_hidden_dir(
string
$hidden_dir
)
|
|
Sets hidden dir absolute path
Parameters:
API Tags:
| Internal: | |
| Access: | private |
Information Tags:
| Throws: | TE_Web_Site_Config_Error |
void _set_scratch_dir(
string
$scratch_dir
)
|
|
Sets scratch dir absolute path
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Web_Site_Config_Error |