◆ __construct()
ilTreeAdminNodeAddedObjective::__construct |
( |
string |
$type, |
|
|
string |
$title, |
|
|
string |
$parent_type = "" |
|
) |
| |
◆ achieve()
ilTreeAdminNodeAddedObjective::achieve |
( |
Environment |
$environment | ) |
|
Definition at line 73 of file class.ilTreeAdminNodeAddedObjective.php.
References $GLOBALS, $ref_id, $title, $type, ilRbacReview\_isRBACOperation(), ILIAS\Setup\Environment\getResource(), null, ROOT_FOLDER_ID, and SYSTEM_FOLDER_ID.
75 $client_ini = $environment->
getResource(
Setup\Environment::RESOURCE_CLIENT_INI);
76 $db = $environment->
getResource(Environment::RESOURCE_DATABASE);
87 if (!defined(
"ROOT_FOLDER_ID")) {
88 define(
"ROOT_FOLDER_ID", (
int) $client_ini->readVariable(
"system",
"ROOT_FOLDER_ID"));
90 if (!defined(
"SYSTEM_FOLDER_ID")) {
91 define(
"SYSTEM_FOLDER_ID", $client_ini->readVariable(
"system",
"SYSTEM_FOLDER_ID"));
93 if (!defined(
"ILIAS_LOG_ENABLED")) {
94 define(
"ILIAS_LOG_ENABLED",
false);
97 $obj_type_id = $db->nextId(
"object_data");
99 'obj_id' => [
'integer', $obj_type_id],
100 'type' => [
'text',
'typ'],
103 'owner' => [
'integer', -1],
104 'create_date' => [
'timestamp', date(
"Y-m-d H:i:s")],
105 'last_update' => [
'timestamp', date(
"Y-m-d H:i:s")]
107 $db->insert(
"object_data", $values);
109 $obj_id = $db->nextId(
"object_data");
111 'obj_id' => [
'integer', $obj_id],
115 'owner' => [
'integer', -1],
116 'create_date' => [
'timestamp', date(
"Y-m-d H:i:s")],
117 'last_update' => [
'timestamp', date(
"Y-m-d H:i:s")]
119 $db->insert(
"object_data", $values);
121 $ref_id = $db->nextId(
"object_reference");
123 "obj_id" => [
"integer", $obj_id],
124 "ref_id" => [
"integer",
$ref_id]
126 $db->insert(
"object_reference", $values);
133 if ($this->parent_type) {
135 "SELECT * FROM object_data " .
140 $rec = $db->fetchAssoc($set);
143 "SELECT * FROM object_reference " .
144 " WHERE obj_id = %s ",
148 $rec = $db->fetchAssoc($set);
149 $parent_type_ref_id = $rec[
"ref_id"];
151 $tree->insertNode((
int)
$ref_id, (
int) $parent_type_ref_id);
156 foreach ($this->rbac_ops as $ops_id) {
161 "typ_id" => [
"integer", $obj_type_id],
162 "ops_id" => [
"integer", $ops_id]
164 $db->insert(
"rbac_ta", $values);
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _isRBACOperation(int $type_id, int $ops_id, ?\ilDBInterface $ilDB=null)
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.
◆ getHash()
ilTreeAdminNodeAddedObjective::getHash |
( |
| ) |
|
◆ getLabel()
ilTreeAdminNodeAddedObjective::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilTreeAdminNodeAddedObjective::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ isApplicable()
ilTreeAdminNodeAddedObjective::isApplicable |
( |
Environment |
$environment | ) |
|
◆ isNotable()
ilTreeAdminNodeAddedObjective::isNotable |
( |
| ) |
|
◆ $parent_type
string ilTreeAdminNodeAddedObjective::$parent_type |
|
protected |
◆ $rbac_ops
array ilTreeAdminNodeAddedObjective::$rbac_ops |
|
protected |
◆ $title
string ilTreeAdminNodeAddedObjective::$title |
|
protected |
◆ $type
string ilTreeAdminNodeAddedObjective::$type |
|
protected |
◆ RBAC_OP_EDIT_PERMISSIONS
const ilTreeAdminNodeAddedObjective::RBAC_OP_EDIT_PERMISSIONS = 1 |
|
protected |
◆ RBAC_OP_READ
const ilTreeAdminNodeAddedObjective::RBAC_OP_READ = 3 |
|
protected |
◆ RBAC_OP_VISIBLE
const ilTreeAdminNodeAddedObjective::RBAC_OP_VISIBLE = 2 |
|
protected |
◆ RBAC_OP_WRITE
const ilTreeAdminNodeAddedObjective::RBAC_OP_WRITE = 4 |
|
protected |
The documentation for this class was generated from the following file: