5require_once 
"./Services/Container/classes/class.ilContainer.php";
 
   27    public function __construct($a_id = 0, $a_call_by_reference = 
true)
 
   31        $this->db = 
$DIC->database();
 
   32        $this->app_event_handler = 
$DIC[
"ilAppEventHandler"];
 
   33        $this->log = 
$DIC[
"ilLog"];
 
   34        $this->
user = $DIC->user();
 
   45    public function delete()
 
   51        if (!parent::delete()) {
 
   56        include_once(
'./Services/User/classes/class.ilObjUserFolder.php');
 
   60        include_once 
"Services/Taxonomy/classes/class.ilObjTaxonomy.php";
 
   68        $ilAppEventHandler->raise(
 
   71            array(
'object' => $this,
 
   72                'obj_id' => $this->
getId())
 
   86    public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree = 
false)
 
   88        $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
 
   95        parent::cloneDependencies($a_target_id, $a_copy_id);
 
  100        include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
 
  102        if (
sizeof($all_tax)) {
 
  103            include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
 
  106            $mappings = $cwo->getMappings();
 
  108            foreach ($all_tax as $old_tax_id) {
 
  112                    $new_tax = $old_tax->cloneObject(0, 0, 
true);
 
  113                    $tax_map = $old_tax->getNodeMapping();
 
  119                    foreach ($mappings as $old_ref_id => $new_ref_id) {
 
  120                        if ($old_ref_id != $new_ref_id) {
 
  126                            $assignmts = $tax_ass->getAssignmentsOfItem($old_obj_id);
 
  127                            if (
sizeof($assignmts)) {
 
  129                                foreach ($assignmts as 
$a) {
 
  130                                    if ($tax_map[
$a[
"node_id"]]) {
 
  131                                        $new_tax_ass->addAssignment($tax_map[
$a[
"node_id"]], $new_obj_id);
 
  148        include_once 
'./Services/Object/classes/class.ilObjectActivation.php';
 
An exception for terminatinating execution or to throw for unit testing.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone course (no member data)
cloneDependencies($a_target_id, $a_copy_id)
Clone object dependencies (container sorting)
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
addAdditionalSubItemInformation(&$a_item_data)
Add additional information to sub item, e.g.
static getUsageOfObject($a_obj_id, $a_include_titles=false)
Get usage of object.
static saveUsage($a_tax_id, $a_obj_id)
Save Usage.
static _updateUserFolderAssignment($a_old_id, $a_new_id)
Update user folder assignment Typically called after deleting a category with local user accounts.
static addAdditionalSubItemInformation(array &$a_item)
Parse item data for list entries.
static _lookupObjId($a_id)
getId()
get object id @access public
static _lookupType($a_id, $a_reference=false)
lookup object type
Taxonomy node <-> item assignment.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples