Table des matières

Includer

Description : Files including managment (using __autoload magik function).
Php : 5.3
Category : Including
Package : Core
Author : Tavm@n <tavman@gmail.com>
License : http://creativecommons.org/licenses/by-nc/2.0/
Link : none
See : All
Version : I-Radian v2.0.alpha 1
Since : 2010/01/27


Haut de page

load

Description : Loads a file corresponding to a class.
Signature : public static function load ($sClass)
Param : $sClass (String) : Class name.
Note : You shouldn't use this method.
Usage :


<?php
class AccueilAction extends Action
{
    public function 
__construct ()
    {
        new 
Includer('my_class''my_file.php');
    }
    public function 
doindex ($aParams=array())
    {
        
Includer::load('my_class');
        
$oObject = new my_class();
    }
}

Haut de page

__construct

Description : [Constructor] Creates a new autoload file.
Signature : public function __construct ($sClassName, $sFileName)
Param : $sClassName (String) : Class name
Usage :


<?php
class AccueilAction extends Action
{
    public function 
doindex ($aParams=array())
    {
        new 
Includer('my_class''my_file.php');
    }
}