includes/defaults.inc.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Defaults
Package
Broker  

Constants

>VConstant  SITE_LOCATION = rtrim(dirname($_SERVER["SCRIPT_NAME"]), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_ROOT_DIR = rtrim(realpath(dirname(dirname(__FILE__))), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  CONFIG_DIR = "config"
Package
Broker  
>VConstant  CONFIG_MODULES_DIR = "modules"
Package
Broker  
>VConstant  CONFIG_MODULES_EXPANSION_DIR = "expansion"
Package
Broker  
>VConstant  SITE_CONFIG_DIR = SITE_ROOT_DIR . CONFIG_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CONFIG_MODULES_DIR = SITE_CONFIG_DIR . CONFIG_MODULES_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CONFIG_MODULES_EXPANSION_DIR = SITE_CONFIG_MODULES_DIR . CONFIG_MODULES_EXPANSION_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  INCLUDES_DIR = "includes"
Package
Broker  
>VConstant  INCLUDES_CLASS_DIR = "class"
Package
Broker  
>VConstant  INCLUDES_MODULES_DIR = "modules"
Package
Broker  
>VConstant  SITE_INCLUDES_DIR = SITE_ROOT_DIR . INCLUDES_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_INCLUDES_CLASS_DIR = SITE_INCLUDES_DIR . INCLUDES_CLASS_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_INCLUDES_MODULES_DIR = SITE_INCLUDES_DIR . INCLUDES_MODULES_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  LAYOUT_DIR = "layout"
Package
Broker  
>VConstant  LAYOUT_SMARTY_DIR = "smarty"
Package
Broker  
>VConstant  LAYOUT_SMARTY_TEMPLATES_DIR = "templates"
Package
Broker  
>VConstant  LAYOUT_SMARTY_CONFIG_DIR = "config"
Package
Broker  
>VConstant  SITE_LAYOUT_DIR = SITE_ROOT_DIR . LAYOUT_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_LAYOUT_SMARTY_DIR = SITE_LAYOUT_DIR . LAYOUT_SMARTY_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_LAYOUT_SMARTY_TEMPLATES_DIR = SITE_LAYOUT_SMARTY_DIR . LAYOUT_SMARTY_TEMPLATES_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_LAYOUT_SMARTY_CONFIG_DIR = SITE_LAYOUT_SMARTY_DIR . LAYOUT_SMARTY_CONFIG_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  CACHE_DIR = "cache"
Package
Broker  
>VConstant  CACHE_CONFIGURATION_DIR = "configuration"
Package
Broker  
>VConstant  CACHE_DATABASE_DIR = "database"
Package
Broker  
>VConstant  CACHE_SMARTY_DIR = "smarty"
Package
Broker  
>VConstant  CACHE_SMARTY_CACHE_DIR = "cache"
Package
Broker  
>VConstant  CACHE_SMARTY_TEMPLATESC_DIR = "templates_c"
Package
Broker  
>VConstant  SITE_CACHE_DIR = SITE_ROOT_DIR . CACHE_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CACHE_CONFIGURATION_DIR = SITE_CACHE_DIR . CACHE_CONFIGURATION_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CACHE_DATABASE_DIR = SITE_CACHE_DIR . CACHE_DATABASE_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CACHE_SMARTY_DIR = SITE_CACHE_DIR . CACHE_SMARTY_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CACHE_SMARTY_CACHE_DIR = SITE_CACHE_SMARTY_DIR . CACHE_SMARTY_CACHE_DIR . DIRECTORY_SEPARATOR
Package
Broker  
>VConstant  SITE_CACHE_SMARTY_TEMPLATESC_DIR = SITE_CACHE_SMARTY_DIR . CACHE_SMARTY_TEMPLATESC_DIR . DIRECTORY_SEPARATOR
Package
Broker  

Functions

functionautoLoader(string $class) : void

Autoloader class

Parameters
NameTypeDescription
$classstring
Details
Package
Broker  
functionhash_equals(string $str1, string $str2) : boolean

Hash equals

Parameters
NameTypeDescription
$str1string
$str2string
Returns
TypeDescription
boolean
Details
Package
Broker  

\SessionHandlerInterface

Package: Broker
SessionHandlerInterface (if not available)

Methods

methodpublicclose() : void

Close

methodpublicdestroy(string $session_id) : void

Destroy

Parameters
NameTypeDescription
$session_idstring
methodpublicgc(\number $maxlifetime) : void

Garbage collect

Parameters
NameTypeDescription
$maxlifetime\number
methodpublicopen(string $save_path, string $name) : void

Open

Parameters
NameTypeDescription
$save_pathstring
$namestring
methodpublicread(string $session_id) : string

Read

Parameters
NameTypeDescription
$session_idstring
Returns
TypeDescription
string
methodpublicwrite(string $session_id, string $session_data) : void

Write

Parameters
NameTypeDescription
$session_idstring
$session_datastring
Documentation was generated by phpDocumentor 2.8.5.