PHP Class Nette\Loaders\RobotLoader

Author: David Grudl
Inheritance: extends Nette\Loaders\AutoLoader
Afficher le fichier Open project: nette/robot-loader Class Usage Examples

Méthodes publiques

Свойство Type Description
$acceptFiles comma separated wildcards
$autoRebuild boolean @deprecated
$ignoreDirs comma separated wildcards

Méthodes publiques

Méthode Description
__construct ( )
addDirectory ( $path ) : self Add path or paths to list.
getCacheStorage ( )
getIndexedClasses ( ) : array
rebuild ( ) : void Rebuilds class list cache.
register ( $prepend = FALSE ) : self Register autoloader.
setAutoRefresh ( $on = TRUE ) : self Sets auto-refresh mode.
setCacheStorage ( Nette\Caching\IStorage $storage )
setTempDirectory ( $path ) : self Sets path to temporary directory.
tryLoad ( $type ) : void Handles autoloading of classes, interfaces or traits.

Méthodes protégées

Méthode Description
getCacheKey ( ) : array

Private Methods

Méthode Description
createFileIterator ( $dir ) : Iterator Creates an iterator scaning directory for PHP files, subdirectories and 'netterobots.txt' files.
getCacheFile ( ) : string
loadCache ( ) : void Loads class list from cache.
refresh ( ) : void Refreshes class list.
saveCache ( ) : void Writes class list to cache.
scanPhp ( $code ) : array Searches classes, interfaces and traits in PHP file.
updateFile ( $file ) : void

Method Details

__construct() public méthode

public __construct ( )

addDirectory() public méthode

Add path or paths to list.
public addDirectory ( $path ) : self
Résultat self

getCacheKey() protected méthode

protected getCacheKey ( ) : array
Résultat array

getCacheStorage() public méthode

Deprecation:
public getCacheStorage ( )

getIndexedClasses() public méthode

public getIndexedClasses ( ) : array
Résultat array of class => filename

rebuild() public méthode

Rebuilds class list cache.
public rebuild ( ) : void
Résultat void

register() public méthode

Register autoloader.
public register ( $prepend = FALSE ) : self
Résultat self

setAutoRefresh() public méthode

Sets auto-refresh mode.
public setAutoRefresh ( $on = TRUE ) : self
Résultat self

setCacheStorage() public méthode

Deprecation:
public setCacheStorage ( Nette\Caching\IStorage $storage )
$storage Nette\Caching\IStorage

setTempDirectory() public méthode

Sets path to temporary directory.
public setTempDirectory ( $path ) : self
Résultat self

tryLoad() public méthode

Handles autoloading of classes, interfaces or traits.
public tryLoad ( $type ) : void
Résultat void

Property Details

$acceptFiles public_oe property

comma separated wildcards
public $acceptFiles

$autoRebuild public_oe property

@deprecated
public bool $autoRebuild
Résultat boolean

$ignoreDirs public_oe property

comma separated wildcards
public $ignoreDirs