Changeset 226
- Timestamp:
- 08/01/06 18:43:03 (2 years ago)
- Files:
-
- trunk/lib/jelix/init.php (modified) (3 diffs)
- trunk/Makefile (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/init.php
r216 r226 1 1 <?php 2 2 /** 3 * Initialize all defines and includes necessary files 4 * 3 5 * @package jelix 4 6 * @subpackage core … … 11 13 */ 12 14 15 /** 16 * Version number of Jelix 17 * @name JELIX_VERSION 18 */ 13 19 #expand define ('JELIX_VERSION', '__LIB_VERSION__'); 20 21 /** 22 * base of namespace path used in xml files of jelix 23 * @name JELIX_NAMESPACE_BASE 24 */ 14 25 define ('JELIX_NAMESPACE_BASE' , 'http://jelix.org/ns/'); 15 26 16 // all path needed by jelix 27 17 28 define ('JELIX_LIB_PATH', dirname (__FILE__).'/'); 18 29 define ('JELIX_LIB_CORE_PATH', JELIX_LIB_PATH.'core/'); … … 49 60 require_once (JELIX_LIB_CORE_PATH . 'jIPlugin.iface.php'); 50 61 51 // global variables 62 /** 63 * The main object of Jelix which process all things 64 * @global jCoordinator $gJCoord 65 * @name $gJCoord 66 */ 52 67 $gJCoord = null; 53 $gJConfig = array(); 68 69 /** 70 * Object that contains all configuration values 71 * @global stdobject $gJConfig 72 * @name $gJConfig 73 */ 74 $gJConfig = null; 75 76 77 /** 78 * array used as a stack to store module context 79 * @global array $gJContext 80 * @name $gJContext 81 */ 54 82 $gJContext = array(); 55 83 84 /** 85 * contains path for __autoload function 86 * @global array $gLibPath 87 * @name $gLibPath 88 * @see __autoload() 89 */ 56 90 $gLibPath=array('Db'=>JELIX_LIB_DB_PATH, 'Dao'=>JELIX_LIB_DAO_PATH, 57 91 'Forms'=>JELIX_LIB_FORMS_PATH, 'Event'=>JELIX_LIB_EVENTS_PATH, 58 92 'Tpl'=>JELIX_LIB_TPL_PATH, 'Acl'=>JELIX_LIB_ACL_PATH, 'Controller'=>JELIX_LIB_CTRL_PATH); 59 93 60 94 /** 95 * __autoload function used by php to try to load an unknown class 96 */ 61 97 function __autoload($class){ 62 98 if(preg_match('/^j(Dao|Tpl|Acl|Event|Db|Controller|Forms).*$/', $class, $m)){ trunk/Makefile
r193 r226 1 1 SHELL=/bin/sh 2 2 PHP=/usr/bin/php 3 PHPDOC=../../phpdoc/phpdoc 3 4 4 5 ifndef LIB_VERSION … … 34 35 DEV=_dev 35 36 endif 37 ifndef DOCS 38 DOCS=_docs 39 endif 40 41 36 42 37 43 DISTJELIX="$(DIST)/jelix-$(LIB_VERSION)" … … 55 61 @echo " jtpl jtpl-dist" 56 62 @echo " jbt-dist" 63 @echo " docs" 57 64 @echo "param�es facultatifs (valeurs actuelles) :" 58 65 @echo " DIST : repertoire cible pour les distributions (" $(DIST) ")" … … 139 146 tar czf $(DIST)/jbuildtools-$(JBT_VERSION).tar.gz -C $(DIST) jbuildtools/ 140 147 141 148 docs: dev-jelix-lib 149 $(PHPDOC) -d $(DISTHACKER)/lib/jelix/ -o HTML:Smarty:jelix -t $(DOCS) -ti "Jelix API Reference"
