ILIAS
trunk Revision v11.0_alpha-1851-ga8564da6fed
|
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) | |
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 |
Additional Inherited Members | |
![]() | |
const | PLUGIN_BASE_PATH = __DIR__ . '/../../../../public/Customizing/global/plugins' |
Repository for component data implemented over artifacts.
Definition at line 26 of file class.ilArtifactComponentRepository.php.
ilArtifactComponentRepository::__construct | ( | Data\Factory | $data_factory, |
ilPluginStateDB | $plugin_state_db, | ||
Data\Version | $ilias_version | ||
) |
Definition at line 38 of file class.ilArtifactComponentRepository.php.
References $data_factory, $ilias_version, $plugin_state_db, and buildDatabase().
|
protected |
Definition at line 47 of file class.ilArtifactComponentRepository.php.
References $data, $ilias_max_version, $ilias_min_version, $learning_progress, $responsible, $responsible_mail, $supports_export, 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 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(), setCurrentPluginVersion(), and ilArtifactComponentRepositoryTest\testUsesPluginStateDB().
ilArtifactComponentRepository::getPluginByName | ( | string | $name | ) |
Get a plugin by name.
Implements ilComponentRepository.
Definition at line 275 of file class.ilArtifactComponentRepository.php.
References 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.
Referenced by ilArtifactComponentRepositoryTest\testNoPluginSlot().
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 144 of file class.ilArtifactComponentRepository.php.
References ilComponentInfo\TYPE_MODULES, ilComponentInfo\TYPE_SERVICES, and 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 131 of file class.ilArtifactComponentRepository.php.
Referenced by buildDatabase().
|
protected |
Definition at line 136 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().
Referenced by ilArtifactComponentRepositoryTest\testRemoveStateInformationOfCallsStateDB(), and ilArtifactComponentRepositoryTest\testRemoveStateInformationOfTriggersRebuild().
ilArtifactComponentRepository::setActivation | ( | string | $plugin_id, |
bool | $activated | ||
) |
Implements ilComponentRepositoryWrite.
Definition at line 304 of file class.ilArtifactComponentRepository.php.
References buildDatabase(), and hasPluginId().
Referenced by ilArtifactComponentRepositoryTest\testSetActivationCallsStateDB(), and ilArtifactComponentRepositoryTest\testSetActivationTriggersRebuild().
ilArtifactComponentRepository::setCurrentPluginVersion | ( | string | $plugin_id, |
Data\Version | $version, | ||
int | $db_version | ||
) |
Definition at line 287 of file class.ilArtifactComponentRepository.php.
References XapiProxy\$plugin, buildDatabase(), getPluginById(), and null.
Referenced by ilArtifactComponentRepositoryTest\testSetCurrentPluginVersionCallsStateDB(), and ilArtifactComponentRepositoryTest\testSetCurrentPluginVersionCallsStateDBTriggersRebuild().
|
protected |
Definition at line 33 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 32 of file class.ilArtifactComponentRepository.php.
Definition at line 28 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
Definition at line 30 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 36 of file class.ilArtifactComponentRepository.php.
|
protected |
Definition at line 29 of file class.ilArtifactComponentRepository.php.
Referenced by __construct().
|
protected |
Definition at line 34 of file class.ilArtifactComponentRepository.php.