5 require_once
"Services/Object/classes/class.ilObject2.php";
6 require_once
"Services/Object/classes/class.ilObjectActivation.php";
8 include_once(
"./Modules/ItemGroup/classes/class.ilItemGroupAR.php");
36 global $tree, $objDefinition,
$ilDB;
39 $this->obj_def = $objDefinition;
44 parent::__construct($a_id, $a_reference);
54 parent::setId($a_val);
55 $this->item_data_ar->setId($a_val);
73 $this->item_data_ar->setHideTitle($a_val);
83 return $this->item_data_ar->getHideTitle();
101 $this->item_data_ar->setId($this->
getId());
102 $this->item_data_ar->create();
113 $this->item_data_ar->update();
124 $this->item_data_ar->delete();
134 protected function doCloneObject($new_obj, $a_target_id, $a_copy_id = null, $a_omit_tree =
false)
150 $ilLog->write(__METHOD__.
': Cloning item group dependencies -'.$a_source_id.
'-');
152 parent::cloneDependencies($a_target_id,$a_copy_id);
154 include_once(
'./Modules/ItemGroup/classes/class.ilItemGroupItems.php');
156 $ig_items->cloneItems($this->
getRefId(), $a_copy_id);
171 $ilLog->write(__METHOD__.
': Fix item group references in '.$a_source_container->getType());
173 include_once(
'Services/CopyWizard/classes/class.ilCopyWizardOptions.php');
175 $mappings = $cwo->getMappings();
177 $new_container_ref_id = $mappings[$a_source_container->getRefId()];
178 $ilLog->write(__METHOD__.
': 2-'.$new_container_ref_id.
'-');
181 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
182 include_once(
"./Services/Container/classes/class.ilContainerPage.php");
183 $ilLog->write(__METHOD__.
': 3'.$new_container_obj_id.
'-');
186 $ilLog->write(__METHOD__.
': 4');
188 $new_page->buildDom();
189 include_once(
"./Services/COPage/classes/class.ilPCResources.php");
193 $ilLog->write(__METHOD__.
': 5');
206 $set = $ilDB->query(
"SELECT hide_title FROM itgr_data ".
207 " WHERE id = ".$ilDB->quote($a_id,
"integer")
209 $rec = $ilDB->fetchAssoc($set);
210 return $rec[
"hide_title"];
static lookupHideTitle($a_id)
Lookup hide title.
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
__construct($a_id=0, $a_reference=true)
Constructor.
setHideTitle($a_val)
Set hide title.
static modifyItemGroupRefIdsByMapping($a_page, $mappings)
Modify ref ids by mapping.
doCloneObject($new_obj, $a_target_id, $a_copy_id=null, $a_omit_tree=false)
Clone obj item group.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
static _lookupObjId($a_id)
getHideTitle()
Get hide title.
static fixContainerItemGroupRefsAfterCloning($a_source_container, $a_copy_id)
Fix container item group references after a container has been cloned.
Class ilObject2 This is an intermediate progress of ilObject class.
cloneDependencies($a_target_id, $a_copy_id)
Clone dependencies.
Item group active record class.