Class ClassFinder

Class Finder

ClassFinder implements ClassFinderInterface
Package: Shared\ClassFinder
Category: System
Located at Shared/ClassFinder/ClassFinder.inc.php

Methods summary

public __construct( ClassFinderSettingsInterface $settings, DataCache $dataCache )

Constructor

public __destruct( void )

Destructor

public findByParent( string $parentClassName ) : array

Returns an associative array with classes that have the given class in their parent list. Array format: [ClassName] => [ClassFullFilePath]

public findByInterface( string $interfaceName ) : array

Returns an associative array with classes that implement the given interface. Array format: [ClassName] => [ClassFullFilePath]

protected _hasNeededParent( string $className, string $neededParentClassName ) : boolean

Checks if $className a sub-class of $neededParentClassName

protected _isLoadableClassFile( string $classFile ) : boolean

Checks if $classFile is allowed to be included

Properties summary

protected $availableClassesArray : array
array()
protected $allowedDirectories : array
array()
protected $disallowedDirectories : array
array()
protected $dataCache : DataCache

		
protected $cachedResults : array