ILIAS  release_7 Revision v7.30-3-g800a261c036
ilPluginRawReader Class Reference
+ Collaboration diagram for ilPluginRawReader:

Public Member Functions

 getPluginNames ()
 
 hasPlugin ($name)
 

Data Fields

const BASE_PLUGIN_PATH = 'Customizing/global/plugins'
 
const SEARCH_PATTERN = 'plugin.php'
 

Detailed Description

Definition at line 6 of file class.ilPluginRawReader.php.

Member Function Documentation

◆ getPluginNames()

ilPluginRawReader::getPluginNames ( )

Definition at line 11 of file class.ilPluginRawReader.php.

11 : ?\Iterator
12 {
13 if (!@is_dir(self::BASE_PLUGIN_PATH)) {
14 throw new LogicException('Path not found: ' . self::BASE_PLUGIN_PATH);
15 }
16
17 $it = new RecursiveDirectoryIterator(self::BASE_PLUGIN_PATH);
18 foreach (new RecursiveIteratorIterator($it) as $file) {
19 $path = $file->getPathName();
20 if (is_file($path) && basename($path) === self::SEARCH_PATTERN) {
21 yield basename(dirname($path));
22 }
23 }
24 }

Referenced by hasPlugin().

+ Here is the caller graph for this function:

◆ hasPlugin()

ilPluginRawReader::hasPlugin (   $name)

Definition at line 26 of file class.ilPluginRawReader.php.

26 : bool
27 {
28 $names = iterator_to_array($this->getPluginNames());
29 return in_array($name, $names);
30 }
if($format !==null) $name
Definition: metadata.php:230

References $name, and getPluginNames().

+ Here is the call graph for this function:

Field Documentation

◆ BASE_PLUGIN_PATH

const ilPluginRawReader::BASE_PLUGIN_PATH = 'Customizing/global/plugins'

Definition at line 8 of file class.ilPluginRawReader.php.

◆ SEARCH_PATTERN

const ilPluginRawReader::SEARCH_PATTERN = 'plugin.php'

Definition at line 9 of file class.ilPluginRawReader.php.


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