ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPluginStateDB.php
Go to the documentation of this file.
1 <?php
19 declare(strict_types=1);
20 
22 
26 interface ilPluginStateDB
27 {
28  public function isPluginActivated(string $id): bool;
29  public function setActivation(string $id, bool $activated): void;
30  public function getCurrentPluginVersion(string $id): ?Version;
31  public function getCurrentPluginDBVersion(string $id): ?int;
32  public function setCurrentPluginVersion(string $id, Version $version, int $db_version): void;
33  public function remove(string $id);
34 }
getCurrentPluginDBVersion(string $id)
setActivation(string $id, bool $activated)
Repository interface for plugin state data.
isPluginActivated(string $id)
setCurrentPluginVersion(string $id, Version $version, int $db_version)
getCurrentPluginVersion(string $id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
A version number that consists of three numbers (major, minor, patch).
Definition: Version.php:26
$version
Definition: plugin.php:24