ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Setup\UsageOfAttributeFinder Class Reference
+ Inheritance diagram for ILIAS\Setup\UsageOfAttributeFinder:
+ Collaboration diagram for ILIAS\Setup\UsageOfAttributeFinder:

Public Member Functions

 getMatchingClassNames (string $attribute, array $additional_ignore=[], ?string $matching_path=null)
 
 isClassMatching (string $attribute, \ReflectionClass $r)
 
- Public Member Functions inherited from ILIAS\Setup\AbstractOfFinder
 __construct ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\Setup\AbstractOfFinder
 genericGetMatchingClassNames (callable $is_matching, array $additional_ignore=[], ?string $matching_path=null)
 The matcher finds the class names implementing the given interface, while ignoring paths in self::$ignore and and the additional patterns provided. More...
 
 getAllClassNames (array $additional_ignore, ?string $matching_path=null)
 
- Protected Attributes inherited from ILIAS\Setup\AbstractOfFinder
string $root
 
array $ignore
 
array $classmap = null
 

Detailed Description

Member Function Documentation

◆ getMatchingClassNames()

ILIAS\Setup\UsageOfAttributeFinder::getMatchingClassNames ( string  $attribute,
array  $additional_ignore = [],
?string  $matching_path = null 
)

Definition at line 28 of file UsageOfAttributeFinder.php.

32 : \Iterator {
34 fn (\ReflectionClass $r) => $this->isClassMatching($attribute, $r),
35 $additional_ignore,
36 $matching_path
37 );
38 }
genericGetMatchingClassNames(callable $is_matching, array $additional_ignore=[], ?string $matching_path=null)
The matcher finds the class names implementing the given interface, while ignoring paths in self::$ig...
isClassMatching(string $attribute, \ReflectionClass $r)

◆ isClassMatching()

ILIAS\Setup\UsageOfAttributeFinder::isClassMatching ( string  $attribute,
\ReflectionClass  $r 
)

Definition at line 40 of file UsageOfAttributeFinder.php.

40 : bool
41 {
42 return ($r->isInstantiable() && $r->getAttributes($attribute) !== []);
43 }

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