Class NRobotLoader


Nette auto loader is responsible for loading classes and interfaces.

NObject
   |
   --NAutoLoader
      |
      --NRobotLoader
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Loaders/RobotLoader.php (line 35)
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 ([bool $force = TRUE])
Rebuilds class list cache.
void
Register autoloader.
void
tryLoad (string $type)
Handles autoloading of classes or interfaces.
Protected Method Summary
protected NCache
protected bool
Methods Inherited From NAutoLoader
getLoaders(), load(), register(), tryLoad(), unregister()
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
string $acceptFiles '*.php, *.php5'

line 44

comma separated wildcards
bool $autoRebuild

line 47

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

line 41

comma separated wildcards
array $scanDirs

line 38


Method Details

line 172

addClass

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

Add class and file name to the list.

Input
string $class
string $file
Output
void  

line 153

addDirectory

public void addDirectory (string|array $path)

Add directory (or directories) to list.

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

line 329

getCache

protected NCache getCache ()

Output
NCache  

line 339

isProduction

protected bool isProduction ()

Output
bool  

line 126

rebuild

public void rebuild ([bool $force = TRUE])

Rebuilds class list cache.

Input
bool $force
Output
void  

line 67

register

public void register ()

Register autoloader.

Output
void  

line 91

tryLoad

public void tryLoad (string $type)

Handles autoloading of classes or interfaces.

Input
string $type
Output
void