ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Repository for component data implemented over artifacts. More...
Public Member Functions | |
__construct (Data\Factory $data_factory, ilPluginStateDB $plugin_state_db, Data\Version $ilias_version) | |
hasComponent (string $type, string $name) | |
hasComponentId (string $id) | |
getComponents () | |
getComponentById (string $id) | |
getComponentByTypeAndName (string $type, string $name) | |
hasPluginSlotId (string $id) | |
getPluginSlots () | |
getPluginSlotById (string $id) | |
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... | |
![]() | |
setCurrentPluginVersion (string $plugin_id, Version $version, int $db_version) | |
Data Fields | |
const | COMPONENT_DATA_PATH = "Services/Component/artifacts/component_data.php" |
const | PLUGIN_DATA_PATH = "Services/Component/artifacts/plugin_data.php" |
![]() | |
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().
|
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().
ilArtifactComponentRepository::getComponentById | ( | string | $id | ) |
Implements ilComponentRepository.
Definition at line 178 of file class.ilArtifactComponentRepository.php.
References $id, and hasComponentId().
ilArtifactComponentRepository::getComponentByTypeAndName | ( | string | $type, |
string | $name | ||
) |
Implements ilComponentRepository.
Definition at line 191 of file class.ilArtifactComponentRepository.php.
References $name, $type, and hasComponent().
Referenced by buildDatabase().
ilArtifactComponentRepository::getComponents | ( | ) |
Implements ilComponentRepository.
Definition at line 168 of file class.ilArtifactComponentRepository.php.
References $id.
ilArtifactComponentRepository::getPluginById | ( | string | $id | ) |
Get a plugin by id.
Implements ilComponentRepository.
Definition at line 260 of file class.ilArtifactComponentRepository.php.
References $id, and hasPluginId().
Referenced by hasActivatedPlugin(), and setCurrentPluginVersion().
ilArtifactComponentRepository::getPluginByName | ( | string | $name | ) |
Get a plugin by name.
Implements ilComponentRepository.
Definition at line 275 of file class.ilArtifactComponentRepository.php.
References $name, XapiProxy\$plugin, and getPlugins().
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().
ilArtifactComponentRepository::getPluginSlotById | ( | string | $id | ) |
Implements ilComponentRepository.
Definition at line 223 of file class.ilArtifactComponentRepository.php.
References $id, and hasPluginSlotId().
ilArtifactComponentRepository::getPluginSlots | ( | ) |
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().
ilArtifactComponentRepository::hasComponent | ( | string | $type, |
string | $name | ||
) |
Implements ilComponentRepository.
Definition at line 146 of file class.ilArtifactComponentRepository.php.
References ilComponentInfo\TYPES.
Referenced by buildDatabase(), and getComponentByTypeAndName().
ilArtifactComponentRepository::hasComponentId | ( | string | $id | ) |
Implements ilComponentRepository.
Definition at line 160 of file class.ilArtifactComponentRepository.php.
Referenced by getComponentById().
ilArtifactComponentRepository::hasPluginId | ( | string | $id | ) |
Check if a plugin exists.
Implements ilComponentRepository.
Definition at line 236 of file class.ilArtifactComponentRepository.php.
Referenced by getPluginById(), hasActivatedPlugin(), removeStateInformationOf(), and setActivation().
ilArtifactComponentRepository::hasPluginSlotId | ( | string | $id | ) |
Implements ilComponentRepository.
Definition at line 205 of file class.ilArtifactComponentRepository.php.
Referenced by getPluginSlotById().
|
protected |
Definition at line 133 of file class.ilArtifactComponentRepository.php.
Referenced by buildDatabase().
|
protected |
Definition at line 138 of file class.ilArtifactComponentRepository.php.
Referenced by buildDatabase().
ilArtifactComponentRepository::removeStateInformationOf | ( | string | $plugin_id | ) |
Implements ilComponentRepositoryWrite.
Definition at line 315 of file class.ilArtifactComponentRepository.php.
References buildDatabase(), and hasPluginId().
ilArtifactComponentRepository::setActivation | ( | string | $plugin_id, |
bool | $activated | ||
) |
Implements ilComponentRepositoryWrite.
Definition at line 304 of file class.ilArtifactComponentRepository.php.
References buildDatabase(), and hasPluginId().
ilArtifactComponentRepository::setCurrentPluginVersion | ( | string | $plugin_id, |
Data\Version | $version, | ||
int | $db_version | ||
) |
Definition at line 287 of file class.ilArtifactComponentRepository.php.
References XapiProxy\$plugin, buildDatabase(), and getPluginById().
|
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.
const ilArtifactComponentRepository::PLUGIN_DATA_PATH = "Services/Component/artifacts/plugin_data.php" |
Definition at line 30 of file class.ilArtifactComponentRepository.php.