autoload Class Reference

class chargeur autoload by sort level More...

List of all members.

Static Public Member Functions

Static Public Attributes

Static Protected Attributes

Private Member Functions


Detailed Description

class chargeur autoload by sort level

Definition at line 23 of file initialize.php.


Constructor & Destructor Documentation

autoload::__construct (  )  [private]

Definition at line 27 of file initialize.php.

00027                                 {
00028     self::addPath(DIR_FS_CATALOG.DIR_WS_CLASSES .'%s.php');// standard
00029     self::addPath(DIR_FS_CATALOG.DIR_WS_CLASSES .'page.%s.php'); // page contructeur
00030     self::addPath(DIR_FS_CATALOG.DIR_WS_CLASSES .'driver.%s.php');  // data ressource type
00031     self::addPath(DIR_FS_CATALOG.DIR_WS_CLASSES .'osCSS.%s.php');
00032     self::addPath(DIR_FS_CATALOG.DIR_WS_COMMON_CLASSES .'%s.php');//   Common
00033   }


Member Function Documentation

static autoload::addPath ( string,
level = 5 
) [static]

add path for autoload function

Parameters:
$string string for sprintf
$level niveau de priorite

Definition at line 65 of file initialize.php.

Referenced by __construct().

00065                                                    {
00066     self::$path[(int)$level][]=$string;
00067     ksort(self::$path );
00068   }

static autoload::getInstance (  )  [static]

singeltown call

Definition at line 38 of file initialize.php.

Referenced by __autoload().

00038                                        {
00039       if(self::$_instance == null) self::$_instance = new self();
00040       return self::$_instance;
00041   }

autoload::getPath ( strClassName  )  [static]

call in __autoload()

Parameters:
$strClassName 
Returns:
path or false

Definition at line 49 of file initialize.php.

Referenced by __autoload().

00049                                                {
00050      ksort(self::$path );
00051     foreach(self::$path as $level => $array)
00052       foreach($array as $path)
00053         if (file_exists(sprintf($path,$strClassName )) ){
00054           return(sprintf($path,$strClassName ));
00055         }
00056 
00057     return false;
00058   }


Member Data Documentation

autoload::$_instance [static, protected]

Definition at line 25 of file initialize.php.

autoload::$path = array() [static]

Definition at line 24 of file initialize.php.

Referenced by getPath().


The documentation for this class was generated from the following file: