Jelix 1.6.40

init.php

Initialize all defines and includes necessary files

Tags
subpackage

core

author

Laurent Jouanneau

contributor

Loic Mathaud, Julien Issler

copyright

2005-2022 Laurent Jouanneau

copyright

2007 Julien Issler

link
http://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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/'
base of namespace path used in xml files of jelix
JELIX_VERSION  = '1.6.40'
Version number of Jelix
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

base of namespace path used in xml files of jelix

public mixed JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/'
Tags
name

JELIX_NAMESPACE_BASE

JELIX_VERSION

Version number of Jelix

public mixed JELIX_VERSION = '1.6.40'
Tags
name

JELIX_VERSION

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
see
jAppManager
todo

migrate the code to jAppManager or jApp

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
todo

migrate the code to jAppManager or jApp

Return values
mixed

isAppInstalled()

isAppInstalled() : mixed
Tags
todo

migrate the code to jAppManager or jApp

Return values
mixed

Search results