ilDBUpdateNewObjectType::addRBACOperation($orgu_type_id, $view_lp); ilDBUpdateNewObjectType::addRBACOperation($orgu_type_id, $view_lp_rec); } } ?> <#4034> <?php require_once "./Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php"; $orgu_type_id = ilDBUpdateNewObjectType::getObjectTypeId('orgu'); if ($orgu_type_id) { $view_lp = ilDBUpdateNewObjectType::addCustomRBACOperation('view_learning_progress', 'View learning progress from users in this orgu.', 'object', 270); $view_lp_rec = ilDBUpdateNewObjectType::addCustomRBACOperation('view_learning_progress_rec', 'View learning progress from users in this orgu and subsequent orgus.', 'object', 280); if ($view_lp && $view_lp_rec) { ilDBUpdateNewObjectType::addRBACOperation($orgu_type_id, $view_lp); ilDBUpdateNewObjectType::addRBACOperation($orgu_type_id, $view_lp_rec); } } ?> <#4035> <?php //ORGU TEMPLATES $orgu_employee_contributor_tpl_id = $ilDB->nextId('object_data'); $ilDB->manipulateF("INSERT INTO object_data (obj_id, type, title, description," . " owner, create_date, last_update) VALUES (%s, %s, %s, %s, %s, %s, %s)", array("integer", "text", "text", "text", "integer", "timestamp", "timestamp"), array($orgu_employee_contributor_tpl_id, "rolt", "il_orgu_superior", "OrgUnit Superior Role Template", -1, ilUtil::now(), ilUtil::now())); $query = 'SELECT ops_id FROM rbac_operations WHERE operation = ' . $ilDB->quote('view_learning_progress', 'text'); $rset = $ilDB->query($query); $row = $ilDB->fetchAssoc($rset); $view_lp = $row['ops_id']; if ($view_lp) { // See LP $ilDB->manipulateF("INSERT INTO rbac_templates (rol_id, type, ops_id, parent)" . " VALUES (%s, %s, %s, %s)", array("integer", "text", "integer", "integer"), array($orgu_employee_contributor_tpl_id, "orgu", $view_lp, 8));
} ?> <#4440> <?php $ilDB->manipulate("UPDATE settings " . "SET value = " . $ilDB->quote(1370, "text") . " WHERE module = " . $ilDB->quote("blga", "text") . " AND keyword = " . $ilDB->quote("banner_width", "text") . " AND value = " . $ilDB->quote(880, "text")); $ilDB->manipulate("UPDATE settings " . "SET value = " . $ilDB->quote(1370, "text") . " WHERE module = " . $ilDB->quote("prfa", "text") . " AND keyword = " . $ilDB->quote("banner_width", "text") . " AND value = " . $ilDB->quote(880, "text")); ?> <#4441> <?php include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php'; $tgt_ops_id = ilDBUpdateNewObjectType::getCustomRBACOperationId('copy'); if ($tgt_ops_id) { $feed_type_id = ilDBUpdateNewObjectType::getObjectTypeId('feed'); if ($feed_type_id) { // add "copy" to (external) feed ilDBUpdateNewObjectType::addRBACOperation($feed_type_id, $tgt_ops_id); // clone settings from "write" to "copy" $src_ops_id = ilDBUpdateNewObjectType::getCustomRBACOperationId('write'); ilDBUpdateNewObjectType::cloneOperation('feed', $src_ops_id, $tgt_ops_id); } } ?> <#4442> <?php $ilCtrlStructureReader->getStructure(); ?> <#4443> <?php $ilCtrlStructureReader->getStructure(); ?> <#4444>
$type_id = ilDBUpdateNewObjectType::getObjectTypeId('chtr'); if ($type_id) { ilDBUpdateNewObjectType::addRBACOperations($type_id, array(ilDBUpdateNewObjectType::RBAC_OP_DELETE, ilDBUpdateNewObjectType::RBAC_OP_COPY)); } $setting->set("ilchtrperms", 1); } ?> <#3799> <?php include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php'; $grp_type_id = ilDBUpdateNewObjectType::getObjectTypeId('grp'); if ($grp_type_id) { $ops_id = ilDBUpdateNewObjectType::getCustomRBACOperationId('create_crsr'); ilDBUpdateNewObjectType::addRBACOperation($grp_type_id, $ops_id); $ops_id = ilDBUpdateNewObjectType::getCustomRBACOperationId('create_catr'); ilDBUpdateNewObjectType::addRBACOperation($grp_type_id, $ops_id); } ?> <#3800> <?php $ilCtrlStructureReader->getStructure(); ?> <#3801> <?php include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php'; $ops_id = ilDBUpdateNewObjectType::getCustomRBACOperationId('copy'); ilDBUpdateNewObjectType::deleteRBACOperation('rcat', $ops_id); ?> <#3802> <?php $ilCtrlStructureReader->getStructure();