ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Extensions_Autoloader Class Reference

Autoloads Twig Extensions classes. More...

+ Collaboration diagram for Twig_Extensions_Autoloader:

Static Public Member Functions

static register ()
 Registers Twig_Extensions_Autoloader as an SPL autoloader. More...
 
static autoload ($class)
 Handles autoloading of classes. More...
 

Detailed Description

Autoloads Twig Extensions classes.

Author
Fabien Potencier fabie.nosp@m.n.po.nosp@m.tenci.nosp@m.er@s.nosp@m.ymfon.nosp@m.y-pr.nosp@m.oject.nosp@m..com
Deprecated:
since version 1.5, use Composer instead.

Definition at line 21 of file Autoloader.php.

Member Function Documentation

◆ autoload()

static Twig_Extensions_Autoloader::autoload (   $class)
static

Handles autoloading of classes.

Parameters
string$classa class name
Returns
bool Returns true if the class has been loaded

Definition at line 38 of file Autoloader.php.

References $file.

39  {
40  if (0 !== strpos($class, 'Twig_Extensions')) {
41  return;
42  }
43 
44  if (file_exists($file = __DIR__.'/../../'.str_replace('_', '/', $class).'.php')) {
45  require $file;
46  }
47  }
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file

◆ register()

static Twig_Extensions_Autoloader::register ( )
static

Registers Twig_Extensions_Autoloader as an SPL autoloader.

Definition at line 26 of file Autoloader.php.

References array.

27  {
28  spl_autoload_register(array(new self(), 'autoload'));
29  }
Create styles array
The data for the language used.

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