39         $this->help_map = $DIC->help()->internal()->domain()->map();
    42     public function delete(
bool $a_delete_meta_data = 
true): 
void    45         $this->help_map->removeScreenIdsOfChapter($this->
getId());
    47         $node_data = $this->tree->getNodeData($this->
getId());
    48         $this->
delete_rec($this->tree, $a_delete_meta_data);
    49         $this->tree->deleteTree($node_data);
    57         bool $a_delete_meta_data = 
true    60         foreach ($childs as $child) {
    62             if (is_object($obj)) {
    63                 if ($obj->getType() == 
"st") {
    64                     $obj->delete_rec($a_tree, $a_delete_meta_data);
    66                 if ($obj->getType() == 
"pg") {
    67                     $obj->delete($a_delete_meta_data);
    72         parent::delete($a_delete_meta_data);
    84             $chap->setImportId(
"il__st_" . $this->
getId());
    86         $chap->setLMId($a_target_lm->
getId());
    87         $chap->setType($this->
getType());
    90         $a_copied_nodes[$this->
getId()] = $chap->getId();
    94         $new_md = $md->cloneMD($a_target_lm->
getId(), $chap->getId(), $this->
getType());
   108         $expLog->
write(date(
"[y-m-d H:i:s] ") . 
"Structure Object " . $this->
getId());
   110         $a_xml_writer->
xmlStartTag(
"StructureObject", $attrs);
   121         $a_xml_writer->
xmlEndTag(
"StructureObject");
   128         $md2xml->setExportMode(
true);
   129         $md2xml->startExport();
   130         $a_xml_writer->
appendXML($md2xml->getXML());
   138         if ($a_tag == 
"Identifier" && $a_param == 
"Entry") {
   147         string $a_mode = self::CHAPTER_TITLE,
   148         bool $a_include_numbers = 
false,
   149         bool $a_time_scheduled_activation = 
false,
   150         bool $a_force_content = 
false,
   152         string $a_lang = 
"-",
   153         bool $a_include_short = 
false   157         $ilDB = $DIC->database();
   169         if ($a_include_short) {
   178         $languages = $ot->getLanguages();
   180         if ($a_lang != 
"-" && $ot->getContentActivated()) {
   183             if ($a_include_short) {
   184                 $trans_title = trim($lmobjtrans->getShortTitle());
   186             if ($trans_title == 
"") {
   187                 $trans_title = $lmobjtrans->getTitle();
   189             if ($trans_title == 
"") {
   191                 $trans_title = $lmobjtrans->
getTitle();
   193             if ($trans_title != 
"") {
   201         if ($a_include_numbers) {
   207                 $query = 
"SELECT * FROM lm_tree WHERE child = " .
   208                     $ilDB->quote($a_st_id, 
"integer") . 
" AND lm_id = " .
   209                     $ilDB->quote($a_lm_id, 
"integer");
   210                 $tree_set = 
$ilDB->query($query);
   212                 $depth = $tree_node[
"depth"];
   215                 for ($i = $depth - 1; $i > 1; $i--) {
   217                     $query = 
"SELECT * FROM lm_tree WHERE child = " .
   218                         $ilDB->quote($tree_node[
"parent"], 
"integer") . 
" AND lm_id = " .
   219                         $ilDB->quote($a_lm_id, 
"integer");
   220                     $tree_set = 
$ilDB->query($query);
   224                     $nr = $seq . 
"." . $nr;
   236         $childs = $this->tree->getChilds($this->
getId());
   237         foreach ($childs as $child) {
   238             if ($child[
"type"] != 
"pg") {
   252         $childs = $this->tree->getChilds($this->
getId());
   253         foreach ($childs as $child) {
   254             if ($child[
"type"] != 
"st") {
   263             $structure_obj->exportXML($a_xml_writer, $a_inst, $expLog);
   264             unset($structure_obj);
   277         foreach ($childs as $child) {
   278             if ($child[
"type"] == 
"st") {
   279                 $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. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupShortTitle(int $a_obj_id)
 
appendXML(string $a_str)
append xml string to document 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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...
 
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)