19 declare(strict_types=1);
39 return hash(
"sha256", self::class .
"::" . $this->type);
44 return "Add new type $this->type to object data";
66 $id =
$db->nextId(
"object_data");
69 'obj_id' => [
'integer',
$id],
70 'type' => [
'text',
'typ'],
73 'owner' => [
'integer', -1],
74 'create_date' => [
'timestamp', date(
"Y-m-d H:i:s")],
75 'last_update' => [
'timestamp', date(
"Y-m-d H:i:s")]
78 $db->insert(
"object_data", $values);
An objective is a desired state of the system that is supposed to be created by the setup...
achieve(Environment $environment)
Objectives can be achieved.
isNotable()
Get to know if this is an interesting objective for a human.
__construct(string $type, string $type_title)
getHash()
Get a hash for this objective.
getPreconditions(Environment $environment)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
isApplicable(Environment $environment)
Get to know whether the objective is applicable.
static _getObjectTypeIdByTitle(string $type, ?\ilDBInterface $ilDB=null)
getLabel()
Get a label that describes this objective.