Public Member Functions | |
| & | getSingleton () |
| loadSiteConfig () | |
| setSiteConfig ($config) | |
| overrideSiteConfig ($config) | |
| getSiteConfig () | |
| setupController () | |
| & | getController () |
| setLanguageManager (&$languageManager) | |
| & | getLanguageManager () |
| setDelegateManager (&$delegateManager) | |
| & | getDelegateManager () |
| setServiceManager (&$serviceManager) | |
| & | getServiceManager () |
| & | getRenderSystem ($name) |
| setRoleManager (&$manager) | |
| setContext (&$context) | |
| & | getContext () |
| & | _createInstance ($className, $classPath=null) |
Public Attributes | |
| $mController = null | |
| $mLanguageManager = null | |
| & XCube_Root::getSingleton | ( | ) |
| XCube_Root::loadSiteConfig | ( | ) |
Load SiteConfig from plural files, and control set and override site config.
| XCube_Root::setSiteConfig | ( | $ | config | ) |
Set site configs.
| array | $config |
| XCube_Root::overrideSiteConfig | ( | $ | config | ) |
Override site config. SiteConfig is overrided by $config value. And, if $config has new key, that key is set.
| array | $config |
| XCube_Root::getSiteConfig | ( | ) |
Return the value of site config that is defined by ini files.
| XCube_Root::setupController | ( | ) |
Create controller with the rule, and call member function prepare(). The class of creating controller is defined in ini.php files.
| & XCube_Root::getController | ( | ) |
| XCube_Root::setLanguageManager | ( | &$ | languageManager | ) |
Set the instance of the language manager.
| $languageManager | XCube_LanguageManager |
| & XCube_Root::getLanguageManager | ( | ) |
| XCube_Root::setDelegateManager | ( | &$ | delegateManager | ) |
Set the instance of the delegate manager.
| $delegateManager | XCube_DelegateManager |
| & XCube_Root::getDelegateManager | ( | ) |
| XCube_Root::setServiceManager | ( | &$ | serviceManager | ) |
Set the instance of the service manager.
| $languageManager | XCube_ServiceManager |
| & XCube_Root::getServiceManager | ( | ) |
| & XCube_Root::getRenderSystem | ( | $ | name | ) |
Return the instance of the render system by the name. If the render system specified by $name doesn't exist, raise fatal error. This member function does creating the instance and calling prepare().
| $name | string the registed name of the render system. |
| XCube_Root::setRoleManager | ( | &$ | manager | ) |
Sets the role manager object.
| XCube_Root::setContext | ( | &$ | context | ) |
Sets the HTTP-context object.
| XCube_Context | $context |
| & XCube_Root::getContext | ( | ) |
Gets the HTTP-context object.
| & XCube_Root::_createInstance | ( | $ | className, | |
| $ | classPath = null | |||
| ) |
Create the instance dynamic with the rule and the string parameters. First, load the file from $classPath. The rule is XOOPS_ROOT_PATH + $classPath + $className + .class.php. Next, create the instance of the class if the class is defined rightly. This member function is called by other member functions of XCube_Root.
private
| $className | string the name of class. | |
| $classPath | string the path that $className is defined in. |
| XCube_Root::$mController = null |
private
| XCube_Root::$mLanguageManager = null |
private ?
1.5.1