Class RobotLoader (namespace Nette\Loaders)


Nette auto loader is responsible for loading classes and interfaces.

Object
   |
   --AutoLoader
      |
      --RobotLoader
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Loaders/RobotLoader.php (line 36)
Public Method Summary
void
addClass (string $class, string $file)
Add class and file name to the list.
void
addDirectory (string|array $path)
Add directory (or directories) to list.
void
rebuild ()
Rebuilds class list cache.
void
tryLoad (string $type)
Handles autoloading of classes or interfaces.
Protected Method Summary
protected Cache
protected bool
Methods Inherited From AutoLoader
getLoaders(), load(), register(), tryLoad(), unregister()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
string $acceptFiles '*.php, *.php5'

line 45

comma separated wildcards
bool $autoRebuild

line 48

string $ignoreDirs '.svn, .cvs, *.old, *.bak, *.tmp'

line 42

comma separated wildcards
array $scanDirs

line 39


Method Details

line 171

addClass

public void addClass (string $class, string $file)

Add class and file name to the list.

Input
string $class
string $file
Output
void  

line 152

addDirectory

public void addDirectory (string|array $path)

Add directory (or directories) to list.

Input
string|array $path
Output
void  
Throws
throws InvalidArgumentException if path is not found

line 328

getCache

protected Cache getCache ()

Output
Cache  

line 338

isProduction

protected bool isProduction ()

Output
bool  

line 132

rebuild

public void rebuild ()

Rebuilds class list cache.

Output
void  

line 69

tryLoad

public void tryLoad (string $type)

Handles autoloading of classes or interfaces.

Input
string $type
Output
void