3 declare(strict_types=1);
    30     public function __construct(
int $a_id = 0, 
bool $a_call_by_reference = 
true)
    34         $this->db = $DIC->database();
    35         $this->app_event_handler = $DIC[
"ilAppEventHandler"];
    36         $this->log = $DIC[
"ilLog"];
    38         $this->
user = $DIC->user();
    43     public function delete(): 
bool    49         if (!parent::delete()) {
    64         $ilAppEventHandler->raise(
    65             'components/ILIAS/Category',
    69                 'obj_id' => $this->
getId()
    78         $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
    85         parent::cloneDependencies($target_id, $copy_id);
    91         if (count($all_tax)) {
    93             $mappings = $cwo->getMappings();
    95             foreach ($all_tax as $old_tax_id) {
    99                     $new_tax = $old_tax->cloneObject(0, 0, 
true);
   100                     $tax_map = $old_tax->getNodeMapping();
   106                     foreach ($mappings as $old_ref_id => $new_ref_id) {
   107                         if (!is_numeric($old_ref_id)) {     
   110                         if ($old_ref_id != $new_ref_id) {
   115                             $this->cat_log->debug(
"Clone tax assignmets for old ref ID $old_ref_id of type $obj_type (old tax ID is $old_tax_id).");
   118                             $assignmts = $tax_ass->getAssignmentsOfItem($old_obj_id);
   119                             if (count($assignmts)) {
   121                                 foreach ($assignmts as 
$a) {
   122                                     if ($tax_map[$a[
"node_id"]]) {
   123                                         $new_tax_ass->
addAssignment($tax_map[$a[
"node_id"]], $new_obj_id);
 
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...
 
cloneDependencies(int $target_id, int $copy_id)
 
static getLogger(string $a_component_id)
Get component logger. 
 
static _updateUserFolderAssignment(int $a_old_id, int $a_new_id)
Update user folder assignment Typically called after deleting a category with local user accounts...
 
addAdditionalSubItemInformation(array &$object)
 
addAssignment(int $a_node_id, int $a_item_id, int $a_order_nr=0)
Add assignment. 
 
static getUsageOfObject(int $a_obj_id, bool $a_include_titles=false)
 
__construct(int $a_id=0, bool $a_call_by_reference=true)
 
static _lookupObjId(int $ref_id)
 
ilAppEventHandler $app_event_handler
 
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
 
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...
 
static saveUsage(int $a_tax_id, int $a_obj_id)
 
static addAdditionalSubItemInformation(array &$item)
Parse item data for list entries. 
 
__construct(Container $dic, ilPlugin $plugin)
 
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples 
 
static _getInstance(int $a_copy_id)
 
static _lookupType(int $id, bool $reference=false)