![]() |
Xataface
2.0alpha2
Xataface Application Framework
|
Public Member Functions | |
| Dataface_ConfigTool () | |
| & | loadConfig ($type=null, $table=null) |
| & | loadConfigFromINI ($type=null, $tablename='__global__') |
| apc_save () | |
| apc_load () | |
| apc_hash () | |
| loadAllConfigFromINI () | |
| loadAllConfig () | |
| parse_ini_file ($path, $sections=false) | |
| buildConfigQuery ($path, $username, $lang, $where=null) | |
| createConfigTable () | |
| setConfigParam ($file, $section, $key, $value, $username=null, $lang=null, $priority=5) | |
| clearConfigParam ($file, $section, $key, $value, $username=null, $lang=null) | |
Static Public Member Functions | |
| static & | getInstance () |
Data Fields | |
| $configTypes = array('actions','fields','relationships','valuelists','tables','lang','metadata') | |
| $rawConfig = array() | |
| $config = array() | |
| $configLoaded = false | |
| $iniLoaded = array() | |
| $configTableName = 'dataface__config' | |
| $nameLookup = array('actions'=>array(), 'fields'=>array(), 'table'=>array(), 'relationships'=>array(), 'valuelists'=>array(),'lang'=>array()) | |
Author: Steve Hannah shannah@sfu.ca Created: March 23, 2006 A tool to manage application configuration. This can read and write configuration files and transfer configuration information from database format to ini files and vice versa.
Definition at line 33 of file ConfigTool.php.
| apc_hash | ( | ) |
Definition at line 276 of file ConfigTool.php.
| apc_load | ( | ) |
Definition at line 269 of file ConfigTool.php.
| apc_save | ( | ) |
Definition at line 261 of file ConfigTool.php.
| buildConfigQuery | ( | $path, | |
| $username, | |||
| $lang, | |||
$where = null |
|||
| ) |
Definition at line 394 of file ConfigTool.php.
| clearConfigParam | ( | $file, | |
| $section, | |||
| $key, | |||
| $value, | |||
$username = null, |
|||
$lang = null |
|||
| ) |
Definition at line 419 of file ConfigTool.php.
| createConfigTable | ( | ) |
Definition at line 409 of file ConfigTool.php.
Definition at line 42 of file ConfigTool.php.
|
static |
Definition at line 52 of file ConfigTool.php.
| loadAllConfig | ( | ) |
Definition at line 305 of file ConfigTool.php.
| loadAllConfigFromINI | ( | ) |
Scours the tables directory to load all configuration information from the ini files.
Definition at line 286 of file ConfigTool.php.
| & loadConfig | ( | $type = null, |
|
$table = null |
|||
| ) |
Loads configuration information of particular type for a particular table.
| $type | The type of config information to load. (e.g., 'actions', 'fields', 'table', 'relationships') |
| $table | The name of the table for which to load configuration info. |
Definition at line 66 of file ConfigTool.php.
| & loadConfigFromINI | ( | $type = null, |
|
$tablename = '__global__' |
|||
| ) |
Loads configuration information from an INI file.
| $type | The type of configuration information to load: e.g., actions, relationships, valuelists, fields, etc.. |
| $tablename | The name of the table for which to load the configuration information. |
Definition at line 79 of file ConfigTool.php.
| parse_ini_file | ( | $path, | |
$sections = false |
|||
| ) |
Definition at line 323 of file ConfigTool.php.
| setConfigParam | ( | $file, | |
| $section, | |||
| $key, | |||
| $value, | |||
$username = null, |
|||
$lang = null, |
|||
$priority = 5 |
|||
| ) |
Definition at line 414 of file ConfigTool.php.
| $config = array() |
Definition at line 37 of file ConfigTool.php.
| $configLoaded = false |
Definition at line 38 of file ConfigTool.php.
| $configTableName = 'dataface__config' |
Definition at line 40 of file ConfigTool.php.
| $configTypes = array('actions','fields','relationships','valuelists','tables','lang','metadata') |
Definition at line 35 of file ConfigTool.php.
| $iniLoaded = array() |
Definition at line 39 of file ConfigTool.php.
| $nameLookup = array('actions'=>array(), 'fields'=>array(), 'table'=>array(), 'relationships'=>array(), 'valuelists'=>array(),'lang'=>array()) |
Array to lookup the name of an entity based on its ID.
Definition at line 50 of file ConfigTool.php.
| $rawConfig = array() |
Definition at line 36 of file ConfigTool.php.
1.8.1.2