42         $this->help_map = $DIC->help()->internal()->domain()->map();
    43         $this->lom_services = $DIC->learningObjectMetadata();
    46     public function delete(
bool $a_delete_meta_data = 
true): 
void    49         $this->help_map->removeScreenIdsOfChapter($this->
getId());
    51         $node_data = $this->tree->getNodeData($this->
getId());
    52         $this->
delete_rec($this->tree, $a_delete_meta_data);
    53         $this->tree->deleteTree($node_data);
    61         bool $a_delete_meta_data = 
true    64         foreach ($childs as $child) {
    66             if (is_object($obj)) {
    67                 if ($obj->getType() == 
"st") {
    68                     $obj->delete_rec($a_tree, $a_delete_meta_data);
    70                 if ($obj->getType() == 
"pg") {
    71                     $obj->delete($a_delete_meta_data);
    76         parent::delete($a_delete_meta_data);
    88             $chap->setImportId(
"il__st_" . $this->
getId());
    90         $chap->setLMId($a_target_lm->
getId());
    91         $chap->setType($this->
getType());
    94         $a_copied_nodes[$this->
getId()] = $chap->getId();
    97         $this->lom_services->derive()
    99                            ->forObject($a_target_lm->
getId(), $chap->getId(), $this->
getType());
   113         $expLog->
write(date(
"[y-m-d H:i:s] ") . 
"Structure Object " . $this->
getId());
   115         $a_xml_writer->
xmlStartTag(
"StructureObject", $attrs);
   126         $a_xml_writer->
xmlEndTag(
"StructureObject");
   150         if ($a_tag == 
"Identifier" && $a_param == 
"Entry") {
   159         string $a_mode = self::CHAPTER_TITLE,
   160         bool $a_include_numbers = 
false,
   161         bool $a_time_scheduled_activation = 
false,
   162         bool $a_force_content = 
false,
   164         string $a_lang = 
"-",
   165         bool $a_include_short = 
false   169         $ilDB = $DIC->database();
   181         if ($a_include_short) {
   190         $languages = $ot->getLanguages();
   192         if ($a_lang != 
"-" && $ot->getContentActivated()) {
   195             if ($a_include_short) {
   196                 $trans_title = trim($lmobjtrans->getShortTitle());
   198             if ($trans_title == 
"") {
   199                 $trans_title = $lmobjtrans->getTitle();
   201             if ($trans_title == 
"") {
   203                 $trans_title = $lmobjtrans->
getTitle();
   205             if ($trans_title != 
"") {
   213         if ($a_include_numbers) {
   219                 $query = 
"SELECT * FROM lm_tree WHERE child = " .
   220                     $ilDB->quote($a_st_id, 
"integer") . 
" AND lm_id = " .
   221                     $ilDB->quote($a_lm_id, 
"integer");
   222                 $tree_set = 
$ilDB->query($query);
   224                 $depth = $tree_node[
"depth"];
   227                 for ($i = $depth - 1; $i > 1; $i--) {
   229                     $query = 
"SELECT * FROM lm_tree WHERE child = " .
   230                         $ilDB->quote($tree_node[
"parent"], 
"integer") . 
" AND lm_id = " .
   231                         $ilDB->quote($a_lm_id, 
"integer");
   232                     $tree_set = 
$ilDB->query($query);
   236                     $nr = $seq . 
"." . $nr;
   248         $childs = $this->tree->getChilds($this->
getId());
   249         foreach ($childs as $child) {
   250             if ($child[
"type"] != 
"pg") {
   264         $childs = $this->tree->getChilds($this->
getId());
   265         foreach ($childs as $child) {
   266             if ($child[
"type"] != 
"st") {
   275             $structure_obj->exportXML($a_xml_writer, $a_inst, $expLog);
   276             unset($structure_obj);
   289         foreach ($childs as $child) {
   290             if ($child[
"type"] == 
"st") {
   291                 $chapters[] = $child;
 modifyExportIdentifier(string $a_tag, string $a_param, string $a_value)
 
static _getPresentationTitle(int $a_st_id, string $a_mode=self::CHAPTER_TITLE, bool $a_include_numbers=false, bool $a_time_scheduled_activation=false, bool $a_force_content=false, int $a_lm_id=0, string $a_lang="-", bool $a_include_short=false)
 
static _exportXMLAlias(ilXmlWriter $a_xml_writer, int $a_id, int $a_inst=0)
export page alias to xml 
 
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
exportXMLPageObjects(ilXmlWriter $a_xml_writer, int $a_inst=0)
 
exportXML(ilXmlWriter $a_xml_writer, int $a_inst, ilLog $expLog)
 
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node 
 
copy(ilObjLearningModule $a_target_lm)
copy chapter 
 
static getInstance(ilObjLearningModule $a_content_obj, int $a_id=0, bool $a_halt=true)
 
exportXMLStructureObjects(ilXmlWriter $a_xml_writer, int $a_inst, ilLog $expLog)
 
isInTree(?int $a_node_id)
get all information of a node. 
 
static _lookupShortTitle(int $a_obj_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
LOMServices $lom_services
 
static getInstance(int $a_tree_id)
 
xmlEndTag(string $tag)
Writes an endtag. 
 
static _lookupTitle(int $a_obj_id)
 
static getChapterList(int $a_lm_id)
 
delete_rec(ilLMTree $a_tree, bool $a_delete_meta_data=true)
Delete sub tree. 
 
static copy(string $a_source_id, string $a_target_id)
Copy all translations of an object. 
 
static getInstance(int $obj_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ILIAS Help Map MapManager $help_map
 
__construct(Container $dic, ilPlugin $plugin)
 
exportXMLMetaData(ilXmlWriter $a_xml_writer)
 
static _lookupContObjID(int $a_id)
get learning module id for lm object 
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag. 
 
write(string $a_msg, $a_log_level=null)
logging 
 
getChildSequenceNumber(array $a_node, string $type="")
get sequence number of node in sibling sequence 
 
getSubTree(array $a_node, bool $a_with_data=true, array $a_type=[])
get all nodes in the subtree under specified node 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(ilObjLearningModule $a_content_obj, int $a_id=0)