ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References $r, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Setup\AbstractOfFinder\genericGetMatchingClassNames(), and ILIAS\Setup\UsageOfAttributeFinder\isClassMatching().

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)
$r
+ Here is the call graph for this function:

◆ isClassMatching()

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

Definition at line 40 of file UsageOfAttributeFinder.php.

Referenced by ILIAS\Setup\UsageOfAttributeFinder\getMatchingClassNames().

40  : bool
41  {
42  return ($r->isInstantiable() && $r->getAttributes($attribute) !== []);
43  }
$r
+ Here is the caller graph for this function:

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