19 declare(strict_types=1);
33 return hash(
'sha256', self::class);
38 return 'OrgUnit assignments are removed for deleted users';
55 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
56 $query =
'DELETE FROM il_orgu_ua' . PHP_EOL
57 .
'WHERE user_id NOT IN (' . PHP_EOL
58 .
'SELECT usr_id FROM usr_data' . PHP_EOL
60 $db->manipulate($query);
isApplicable(Environment $environment)
achieve(Environment $environment)
getPreconditions(Environment $environment)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An environment holds resources to be used in the setup process.
__construct(Container $dic, ilPlugin $plugin)
A configuration with no content.