init.php
Initialize all defines and includes necessary files.
Tags
Interfaces, Classes and Traits
Table of Contents
- BYTECODE_CACHE_EXISTS = unction_exists('opcache_compile_file') || unction_exists('apc_cache_info') || unction_exists('eaccelerator_info') || unction_exists('xcache_info')
- JELIX_LIB_CORE_PATH = JELIX_LIB_PATH . 'core/'
- JELIX_LIB_PATH = __DIR__ . '/'
- JELIX_LIB_UTILS_PATH = JELIX_LIB_PATH . 'utils/'
- JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/'
- JELIX_VERSION = '1.7.18'
- Initialize all defines and includes necessary files.
- LIB_PATH = dirname(JELIX_LIB_PATH) . '/'
- jelix_autoload() : mixed
- function used by php to try to load an unknown class.
- checkAppOpened() : mixed
- check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
- checkAppNotInstalled() : mixed
- check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
- isAppInstalled() : mixed
Constants
BYTECODE_CACHE_EXISTS
public
mixed
BYTECODE_CACHE_EXISTS
= unction_exists('opcache_compile_file') || unction_exists('apc_cache_info') || unction_exists('eaccelerator_info') || unction_exists('xcache_info')
JELIX_LIB_CORE_PATH
public
mixed
JELIX_LIB_CORE_PATH
= JELIX_LIB_PATH . 'core/'
JELIX_LIB_PATH
public
mixed
JELIX_LIB_PATH
= __DIR__ . '/'
JELIX_LIB_UTILS_PATH
public
mixed
JELIX_LIB_UTILS_PATH
= JELIX_LIB_PATH . 'utils/'
JELIX_NAMESPACE_BASE
public
mixed
JELIX_NAMESPACE_BASE
= 'http://jelix.org/ns/'
JELIX_VERSION
Initialize all defines and includes necessary files.
public
mixed
JELIX_VERSION
= '1.7.18'
Tags
LIB_PATH
public
mixed
LIB_PATH
= dirname(JELIX_LIB_PATH) . '/'
Functions
jelix_autoload()
function used by php to try to load an unknown class.
jelix_autoload(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —checkAppOpened()
check if the application is opened. If not, it displays the yourapp/install/closed.html file with a http error (or lib/jelix/installer/closed.html), and exit.
checkAppOpened() : mixed
This function should be called in all entry point, before the creation of the coordinator.
Tags
Return values
mixed —checkAppNotInstalled()
check if the application is not installed. If the app is installed, an error message appears and the scripts ends.
checkAppNotInstalled() : mixed
It should be called only by some scripts like an installation wizard, not by an entry point.
Tags
Return values
mixed —isAppInstalled()
isAppInstalled() : mixed