|
ILIAS
release_8 Revision v8.24
|
Repository for component data implemented over artifacts. More...
Inheritance diagram for ilArtifactComponentRepository:
Collaboration diagram for ilArtifactComponentRepository:Public Member Functions | |
| __construct (Data\Factory $data_factory, ilPluginStateDB $plugin_state_db, Data\Version $ilias_version) | |
| hasComponent (string $type, string $name) | |
| @inheritdocs More... | |
| hasComponentId (string $id) | |
| @inheritdocs More... | |
| getComponents () | |
| @inheritdocs More... | |
| getComponentById (string $id) | |
| @inheritdocs More... | |
| getComponentByTypeAndName (string $type, string $name) | |
| @inheritdocs More... | |
| hasPluginSlotId (string $id) | |
| @inheritdocs More... | |
| getPluginSlots () | |
| @inheritdocs More... | |
| getPluginSlotById (string $id) | |
| @inheritdocs More... | |
| hasPluginId (string $id) | |
| Check if a plugin exists. More... | |
| getPlugins () | |
| Get all plugins. More... | |
| getPluginById (string $id) | |
| Get a plugin by id. More... | |
| getPluginByName (string $name) | |
| Get a plugin by name. More... | |
| setCurrentPluginVersion (string $plugin_id, Data\Version $version, int $db_version) | |
| setActivation (string $plugin_id, bool $activated) | |
| removeStateInformationOf (string $plugin_id) | |
| hasActivatedPlugin (string $id) | |
| Check if a plugin exists and is activated. More... | |
Public Member Functions inherited from ilComponentRepositoryWrite | |
| setCurrentPluginVersion (string $plugin_id, Version $version, int $db_version) | |
| setActivation (string $plugin_id, bool $activated) | |
| removeStateInformationOf (string $plugin_id) | |
| hasComponent (string $type, string $name) | |
| Check if a component exists. More... | |
| hasComponentId (string $id) | |
| Check if a component exists. More... | |
| getComponents () | |
| Get all components. More... | |
| getComponentById (string $id) | |
| Get a component by id. More... | |
| getComponentByTypeAndName (string $type, string $name) | |
| Get a component by type and name. More... | |
| hasPluginSlotId (string $id) | |
| Check if a slot exists. More... | |
| getPluginSlots () | |
| Get all pluginslots. More... | |
| getPluginSlotById (string $id) | |
| Get pluginslot by id. More... | |
| hasPluginId (string $id) | |
| Check if a plugin exists. More... | |
| getPlugins () | |
| Get all plugins. More... | |
| getPluginById (string $id) | |
| Get a plugin by id. More... | |
| getPluginByName (string $name) | |
| Get a plugin by name. More... | |
| hasActivatedPlugin (string $id) | |
| Check if a plugin exists and is activated. More... | |
Data Fields | |
| const | COMPONENT_DATA_PATH = "Services/Component/artifacts/component_data.php" |
| const | PLUGIN_DATA_PATH = "Services/Component/artifacts/plugin_data.php" |
Data Fields inherited from ilComponentRepository | |
| const | PLUGIN_BASE_PATH = "Customizing/global/plugins" |
Protected Member Functions | |
| buildDatabase () | |
| readComponentData () | |
| readPluginData () | |
Protected Attributes | |
| Data Factory | $data_factory |
| ilPluginStateDB | $plugin_state_db |
| Data Version | $ilias_version |
| array | $components |
| array | $component_id_by_type_and_name |
| array | $pluginslot_by_id |
| array | $plugin_by_id |
| array | $plugin_by_name |
Repository for component data implemented over artifacts.
Definition at line 27 of file class.ilArtifactComponentRepository.php.
| ilArtifactComponentRepository::__construct | ( | Data\Factory | $data_factory, |
| ilPluginStateDB | $plugin_state_db, | ||
| Data\Version | $ilias_version | ||
| ) |
Definition at line 42 of file class.ilArtifactComponentRepository.php.
References $data_factory, $ilias_version, $plugin_state_db, and buildDatabase().
Here is the call graph for this function:
|
protected |
Definition at line 51 of file class.ilArtifactComponentRepository.php.
References $data, $ilias_max_version, $ilias_min_version, $learning_progress, $responsible, $responsible_mail, $supports_export, $type, getComponentByTypeAndName(), hasComponent(), readComponentData(), and readPluginData().
Referenced by __construct(), removeStateInformationOf(), setActivation(), and setCurrentPluginVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilArtifactComponentRepository::getComponentById | ( | string | $id | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 178 of file class.ilArtifactComponentRepository.php.
References $id, and hasComponentId().
Here is the call graph for this function:| ilArtifactComponentRepository::getComponentByTypeAndName | ( | string | $type, |
| string | $name | ||
| ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 191 of file class.ilArtifactComponentRepository.php.
References $name, $type, and hasComponent().
Referenced by buildDatabase().
Here is the call graph for this function:
Here is the caller graph for this function:| ilArtifactComponentRepository::getComponents | ( | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 168 of file class.ilArtifactComponentRepository.php.
References $id.
| ilArtifactComponentRepository::getPluginById | ( | string | $id | ) |
Get a plugin by id.
InvalidArgumentException if plugin does not exist
Implements ilComponentRepository.
Definition at line 260 of file class.ilArtifactComponentRepository.php.
References $id, and hasPluginId().
Referenced by hasActivatedPlugin(), and setCurrentPluginVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilArtifactComponentRepository::getPluginByName | ( | string | $name | ) |
Get a plugin by name.
InvalidArgumentException if plugin does not exist
Implements ilComponentRepository.
Definition at line 275 of file class.ilArtifactComponentRepository.php.
References $name, XapiProxy\$plugin, and getPlugins().
Here is the call graph for this function:| ilArtifactComponentRepository::getPlugins | ( | ) |
Get all plugins.
Keys are the ids.
Implements ilComponentRepository.
Definition at line 248 of file class.ilArtifactComponentRepository.php.
References $id, and XapiProxy\$plugin.
Referenced by getPluginByName().
Here is the caller graph for this function:| ilArtifactComponentRepository::getPluginSlotById | ( | string | $id | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 223 of file class.ilArtifactComponentRepository.php.
References $id, and hasPluginSlotId().
Here is the call graph for this function:| ilArtifactComponentRepository::getPluginSlots | ( | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 213 of file class.ilArtifactComponentRepository.php.
References $id.
| ilArtifactComponentRepository::hasActivatedPlugin | ( | string | $id | ) |
Check if a plugin exists and is activated.
Implements ilComponentRepository.
Definition at line 326 of file class.ilArtifactComponentRepository.php.
References getPluginById(), and hasPluginId().
Here is the call graph for this function:| ilArtifactComponentRepository::hasComponent | ( | string | $type, |
| string | $name | ||
| ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 146 of file class.ilArtifactComponentRepository.php.
References $name, $type, and ilComponentInfo\TYPES.
Referenced by buildDatabase(), and getComponentByTypeAndName().
Here is the caller graph for this function:| ilArtifactComponentRepository::hasComponentId | ( | string | $id | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 160 of file class.ilArtifactComponentRepository.php.
References $id.
Referenced by getComponentById().
Here is the caller graph for this function:| ilArtifactComponentRepository::hasPluginId | ( | string | $id | ) |
Check if a plugin exists.
Implements ilComponentRepository.
Definition at line 236 of file class.ilArtifactComponentRepository.php.
References $id.
Referenced by getPluginById(), hasActivatedPlugin(), removeStateInformationOf(), and setActivation().
Here is the caller graph for this function:| ilArtifactComponentRepository::hasPluginSlotId | ( | string | $id | ) |
@inheritdocs
Implements ilComponentRepository.
Definition at line 205 of file class.ilArtifactComponentRepository.php.
References $id.
Referenced by getPluginSlotById().
Here is the caller graph for this function:
|
protected |
Definition at line 133 of file class.ilArtifactComponentRepository.php.
References COMPONENT_DATA_PATH.
Referenced by buildDatabase().
Here is the caller graph for this function:
|
protected |
Definition at line 138 of file class.ilArtifactComponentRepository.php.
References PLUGIN_DATA_PATH.
Referenced by buildDatabase().
Here is the caller graph for this function:| ilArtifactComponentRepository::removeStateInformationOf | ( | string | $plugin_id | ) |
Implements ilComponentRepositoryWrite.
Definition at line 315 of file class.ilArtifactComponentRepository.php.
References buildDatabase(), and hasPluginId().
Here is the call graph for this function:| ilArtifactComponentRepository::setActivation | ( | string | $plugin_id, |
| bool | $activated | ||
| ) |
Implements ilComponentRepositoryWrite.
Definition at line 304 of file class.ilArtifactComponentRepository.php.
References buildDatabase(), and hasPluginId().
Here is the call graph for this function:| ilArtifactComponentRepository::setCurrentPluginVersion | ( | string | $plugin_id, |
| Data\Version | $version, | ||
| int | $db_version | ||
| ) |
Definition at line 287 of file class.ilArtifactComponentRepository.php.
References XapiProxy\$plugin, $version, buildDatabase(), and getPluginById().
Here is the call graph for this function:
|
protected |
Definition at line 37 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 36 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 32 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 40 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 33 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilArtifactComponentRepository.php.
| const ilArtifactComponentRepository::COMPONENT_DATA_PATH = "Services/Component/artifacts/component_data.php" |
Definition at line 29 of file class.ilArtifactComponentRepository.php.
Referenced by readComponentData().
| const ilArtifactComponentRepository::PLUGIN_DATA_PATH = "Services/Component/artifacts/plugin_data.php" |
Definition at line 30 of file class.ilArtifactComponentRepository.php.
Referenced by readPluginData().