| package |
jelix |
|---|---|
| subpackage |
core |
appPath( $file = '')
config() : object
objectobject containing all configuration options of the application
configPath( $file = '')
getCurrentModule() : string
stringname of the current module
getModulePath(string $module, boolean $includingExternal = false) : string
| Throws |
|
|---|
stringa module name
booleantrue if we want to know if the module is also an external module, e.g. in an other entry point
stringthe corresponding path
initPaths(string $appPath, string $wwwPath = null, string $varPath = null, string $logPath = null, string $configPath = null, string $scriptPath = null)
Warning: given paths should be ended by a directory separator.
stringapplication directory
stringwww directory
stringvar directory
stringlog directory
stringconfig directory
stringscripts directory
isInit() : boolean
booleantrue if it is ok
isModuleEnabled(string $moduleName, boolean $includingExternal = false) : boolean
| Throws |
|
|---|
string
booleantrue if we want to know if the module is also an external module, e.g. in an other entry point
booleantrue : module is ok
loadConfig(string|object $configFile, boolean $enableErrorHandler = true)
Call it after initPaths
string|objectname of the ini file to configure the framework or a configuration object
booleanenable the error handler of jelix. keep it to true, unless you have something to debug and really have to use the default handler or an other handler
loadPlugin(string $name, string $type, string $suffix, string $classname, mixed $args = null) : null|object
stringthe name of the plugin
stringthe type of the plugin
stringthe suffix of the filename
stringthe name of the class to instancy
mixedthe argument for the constructor of the class. null = no argument.
null|objectnull if the plugin doesn't exists
logPath( $file = '')
mainConfigFile()
popCurrentModule() : string
stringthe obsolet module name
pushCurrentModule(string $module)
stringthe module name
restoreContext()
saveContext()
scriptsPath( $file = '')
setConfig( $config)
setEnv( $env)
setTempBasePath( $path)
tempBasePath()
tempPath( $file = '')
urlBasePath()
varPath( $file = '')
wwwPath( $file = '')
tempBasePath :
appPath :
varPath :
logPath :
configPath :
wwwPath :
scriptPath :
_isInit :
env :
configAutoloader :
_config : object
| var |
object containing all configuration options of the application |
|---|
object
_mainConfigFile :
contextBackup :
modulesContext :