/init.php

Description

Initialize all defines and includes necessary files

  • author: Laurent Jouanneau
  • copyright: 2007 Julien Issler
  • copyright: 2005-2011 Laurent Jouanneau
  • link: http://www.jelix.org
  • contributor: Loic Mathaud, Julien Issler
  • licence: GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
  • filesource: Source Code for this file
Includes
require (JELIX_LIB_CORE_PATH.'selector/jSelectorSimpleFile.class.php') (line 61)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorFile.lib.php') (line 62)
require (jUrlBase.class.php) (line 63)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorClass.class.php') (line 54)
require (jISelector.iface.php) (line 43)
require (jIUrlEngine.iface.php) (line 44)
require (jErrorHandler.lib.php) (line 45)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorAct.class.php') (line 53)
require (jApp.class.php) (line 41)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorIface.class.php') (line 57)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorLoc.class.php') (line 58)
require (jICoordPlugin.iface.php) (line 42)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorForm.class.php') (line 56)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorDao.class.php') (line 55)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorZone.class.php') (line 60)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorTpl.class.php') (line 59)
require (jUrlAction.class.php) (line 64)
require (jLocale.class.php) (line 71)
require (jLog.class.php) (line 72)
require (jSession.class.php) (line 74)
require (jIncluder.class.php) (line 73)
require (jBundle.class.php) (line 70)
require (jController.class.php) (line 67)
require (jResponse.class.php) (line 69)
require (jRequest.class.php) (line 68)
require (jCoordinator.class.php) (line 66)
require (jUrl.class.php) (line 65)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorActFast.class.php') (line 52)
require (jContext.class.php) (line 47)
require (JELIX_LIB_CORE_PATH.'selector/jSelectorModule.class.php') (line 51)
require (jServer.class.php) (line 50)
require (jSelector.class.php) (line 49)
require (jConfig.class.php) (line 48)
require (jException.lib.php) (line 46)
Constants
BYTECODE_CACHE_EXISTS = function_exists('apc_cache_info')||function_exists('eaccelerator_info')||function_exists('xcache_info') (line 33)
E_DEPRECATED = 8192 (line 36)
E_USER_DEPRECATED = 16384 (line 38)
JELIX_LIB_CORE_PATH = JELIX_LIB_PATH.'core/' (line 29)
JELIX_LIB_PATH = dirname(__FILE__).'/' (line 28)
JELIX_LIB_UTILS_PATH = JELIX_LIB_PATH.'utils/' (line 30)
JELIX_NAMESPACE_BASE = 'http://jelix.org/ns/' (line 26)

base of namespace path used in xml files of jelix

  • name: JELIX_NAMESPACE_BASE
JELIX_VERSION = '1.3.9' (line 20)

Version number of Jelix

  • name: JELIX_VERSION
LIB_PATH = dirname(JELIX_LIB_PATH).'/' (line 31)
Variables
stdobject $gJConfig (line 88)

Object that contains all configuration values

  • name: $gJConfig
jCoordinator $gJCoord (line 81)

The main object of Jelix which process all things

  • name: $gJCoord
array $gLibPath (line 96)

contains path for __autoload function

  • see: __autoload()
  • name: $gLibPath
Functions
checkAppNotInstalled (line 179)

check if the application is not installed. If the app is installed, an error message appears and the scripts ends.

It should be called only by some scripts like an installation wizard, not by an entry point.

  • todo: migrate the code to jAppManager or jApp
void checkAppNotInstalled ()
checkAppOpened (line 144)

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.

This function should be called in all entry point, before the creation of the coordinator.

  • see: jAppManager
  • todo: migrate the code to jAppManager or jApp
void checkAppOpened ()
isAppInstalled (line 196)
  • todo: migrate the code to jAppManager or jApp
void isAppInstalled ()
jelix_autoload (line 105)

function used by php to try to load an unknown class

void jelix_autoload ( $class)
  • $class

Documentation generated on Wed, 24 Sep 2014 21:55:43 +0200 by phpDocumentor 1.4.3