ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (ilObjLearningModule $a_content_obj, int $a_id=0, bool $a_halt=true) | |
read () | |
create (bool $a_upload=false, bool $a_omit_page_object_creation=false, int $a_layout_id=0) | |
delete (bool $a_delete_meta_data=true) | |
copy (ilObjLearningModule $a_target_lm) | |
copyToOtherContObject (ilObjLearningModule $a_cont_obj, array &$a_copied_nodes) | |
copy a page to another content object (learning module / dlib book) More... | |
assignPageObject (ilLMPage $a_page_obj) | |
assign page object More... | |
getPageObject () | |
get assigned page object More... | |
setId (int $a_id) | |
getId () | |
exportXML (ilXmlWriter $a_xml_writer, string $a_mode="normal", int $a_inst=0) | |
export page object to xml (see ilias_co.dtd) More... | |
exportXMLMetaData (ilXmlWriter $a_xml_writer) | |
modifyExportIdentifier (string $a_tag, string $a_param, string $a_value) | |
exportXMLPageContent (ilXmlWriter $a_xml_writer, int $a_inst=0) | |
getQuestionIds () | |
Get question ids note: this method must be called afer exportXMLPageContent. More... | |
getMediaObjectIds () | |
get ids of all media objects within the page note: this method must be called afer exportXMLPageContent More... | |
getFileItemIds () | |
get ids of all file items within the page note: this method must be called afer exportXMLPageContent More... | |
![]() | |
__construct (ilObjLearningModule $a_content_obj, int $a_id=0) | |
MDUpdateListener (string $a_element) | |
Meta data update listener Important note: Do never call create() or update() method of ilObject here. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
setDataRecord (array $a_record) | |
this method should only be called by class ilLMObjectFactory More... | |
read () | |
setTitle (string $a_title) | |
getTitle () | |
setShortTitle (string $a_title) | |
getShortTitle () | |
setDescription (string $a_description) | |
getDescription () | |
setType (string $a_type) | |
getType () | |
setLMId (int $a_lm_id) | |
getLMId () | |
setContentObject (ilObjLearningModule $a_content_obj) | |
getContentObject () | |
setId (int $a_id) | |
getId () | |
getImportId () | |
setImportId (string $a_id) | |
setLayout (string $a_val) | |
getLayout () | |
create (bool $a_upload=false) | |
update () | |
delete (bool $a_delete_meta_data=true) | |
existsExportID (int $a_lm_id, int $a_exp_id, string $a_type="pg") | |
Does export ID exist in lm? More... | |
Static Public Member Functions | |
static | getPageList (int $lm_id) |
static | getPagesWithLinksList (int $a_lm_id, string $a_par_type) |
Get all pages of lm that contain any internal links. More... | |
static | _getPresentationTitle (int $a_pg_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) |
presentation title doesn't have to be page title, it may be chapter title + page title or chapter title only, depending on settings More... | |
static | _exportXMLAlias (ilXmlWriter $a_xml_writer, int $a_id, int $a_inst=0) |
export page alias to xml More... | |
static | queryQuestionsOfLearningModule (int $a_lm_id, string $a_order_field, string $a_order_dir, int $a_offset, int $a_limit) |
Get questions of learning module. More... | |
static | insertPagesFromTemplate (int $lm_id, int $num, int $node_id, bool $first_child, int $layout_id, string $title="") |
Insert (multiple) pages templates at node. More... | |
![]() | |
static | preloadDataByLM (int $a_lm_id) |
Preload data records by lm. More... | |
static | _lookupTitle (int $a_obj_id) |
static | _lookupShortTitle (int $a_obj_id) |
static | _lookupType (int $a_obj_id, int $a_lm_id=0) |
static | _writeTitle (int $a_obj_id, string $a_title) |
static | _writeImportId (int $a_id, string $a_import_id) |
static | _getIdForImportId (string $a_import_id) |
get current object id for import id (static) More... | |
static | _getAllObjectsForImportId (string $a_import_id, int $a_in_lm=0) |
Get all items for an import ID. More... | |
static | _exists (int $a_id) |
checks wether a lm content object with specified id exists or not More... | |
static | getObjectList (int $lm_id, string $type="") |
static | _deleteAllObjectData (ilObjLearningModule $a_cobj) |
delete all objects of content object (digi book / learning module) More... | |
static | _lookupContObjID (int $a_id) |
get learning module id for lm object More... | |
static | putInTree (ilLMObject $a_obj, int $a_parent_id=0, int $a_target_node_id=0) |
put this object into content object tree More... | |
static | getTree (int $a_cont_obj_id) |
Get learning module tree. More... | |
static | clipboardCut (int $a_cont_obj_id, array $a_ids) |
Copy a set of chapters/pages into the clipboard. More... | |
static | clipboardCopy (int $a_cont_obj_id, array $a_ids) |
Copy a set of chapters/pages into the clipboard. More... | |
static | saveTitles (ilObjLearningModule $a_lm, array $a_titles, string $a_lang="-") |
Save titles for lm objects. More... | |
static | saveTitle (int $id, string $title, string $lang="-") |
static | updateInternalLinks (array $a_copied_nodes, string $a_parent_type="lm") |
Update internal links, after multiple pages have been copied. More... | |
static | uniqueTypesCheck (array $a_items) |
Check for unique types (all pages or all chapters) More... | |
static | writeLayout (int $a_obj_id, string $a_layout, ?ilObjLearningModule $a_lm=null) |
Write layout setting. More... | |
static | lookupLayout (int $a_obj_id) |
Lookup type. More... | |
static | getPagesOfChapter (int $a_lm_id, int $a_chap_id) |
Get pages of chapter. More... | |
static | _getAllLMObjectsOfLM (int $a_lm_id, string $a_type="") |
Get all objects of learning module. More... | |
static | saveExportId (int $a_lm_id, int $a_lmobj_id, string $a_exp_id, string $a_type="pg") |
static | getExportId (int $a_lm_id, int $a_lmobj_id, string $a_type="pg") |
static | getDuplicateExportIDs (int $a_lm_id, string $a_type="pg") |
Get duplicate export IDs (count export ID usages) More... | |
static | _getNodePresentationTitle (array $a_node, string $a_mode=self::PAGE_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="-") |
static | getShortTitles (int $a_lm_id, string $a_lang="-") |
static | writeShortTitle (int $a_id, string $a_short_title, string $a_lang="-") |
Data Fields | |
ilLMPage | $page_object = null |
![]() | |
const | CHAPTER_TITLE = "st_title" |
const | PAGE_TITLE = "pg_title" |
const | NO_HEADER = "none" |
int | $lm_id = 0 |
string | $type = "" |
int | $id = 0 |
array | $data_record |
ilObjLearningModule | $content_object |
string | $title = "" |
string | $short_title = "" |
string | $description = "" |
bool | $active = true |
Protected Attributes | |
bool | $halt_on_error |
array | $files_contained |
array | $mobs_contained |
bool | $contains_int_link |
![]() | |
string | $layout = "" |
string | $import_id = "" |
ilObjUser | $user |
ilDBInterface | $db |
LOMServices | $lom_services |
Additional Inherited Members | |
![]() | |
static | _lookup (int $a_obj_id, string $a_field) |
static | getPathToExportIDInLOM () |
![]() | |
static | $data_records = array() |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles Page Objects of ILIAS Learning Modules
Note: This class has a member variable that contains an instance of class ilPageObject and provides the method getPageObject() to access this instance. ilPageObject handles page objects and their content. Page objects can be assigned to different container like learning modules or glossaries definitions. This class, ilLMPageObject, provides additional methods for the handling of page objects in learning modules.
Definition at line 31 of file class.ilLMPageObject.php.
ilLMPageObject::__construct | ( | ilObjLearningModule | $a_content_obj, |
int | $a_id = 0 , |
||
bool | $a_halt = true |
||
) |
Definition at line 39 of file class.ilLMPageObject.php.
References ILIAS\GlobalScreen\Provider\__construct(), read(), and ilLMObject\setType().
|
static |
export page alias to xml
Definition at line 371 of file class.ilLMPageObject.php.
References ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Referenced by ilStructureObject\exportXMLPageObjects().
|
static |
presentation title doesn't have to be page title, it may be chapter title + page title or chapter title only, depending on settings
string | $a_mode | ilLMOBject::CHAPTER_TITLE | ilLMOBject::PAGE_TITLE | ilLMOBject::NO_HEADER |
Definition at line 230 of file class.ilLMPageObject.php.
References ilLMObject\$active, ilLMObject\$title, ilStructureObject\_getPresentationTitle(), ilPageObject\_lookupActivationData(), ilPageObject\_lookupActive(), ilLMObject\_lookupContObjID(), ilLMObject\_lookupShortTitle(), ilLMObject\_lookupTitle(), ilObject\_lookupType(), ilLMTree\getInstance(), ilObjectTranslation\getInstance(), ilLMObjTranslation\getTitle(), and ilUtil\now().
Referenced by ilLMObject\_getNodePresentationTitle(), ilLMNavigationRendererGUI\addDropdown(), ilObjContentObjectGUI\addLocations(), ilLMPageObjectGUI\executeCommand(), ilLMTOCExplorerGUI\getNodeContent(), ilLearningModuleNotification\getPageTitle(), ilGlossaryPresentationGUI\listDefinitions(), ilLMNavigationRendererGUI\render(), ilLMContentRendererGUI\render(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
ilLMPageObject::assignPageObject | ( | ilLMPage | $a_page_obj | ) |
assign page object
Definition at line 178 of file class.ilLMPageObject.php.
ilLMPageObject::copy | ( | ilObjLearningModule | $a_target_lm | ) |
Definition at line 92 of file class.ilLMPageObject.php.
References ilLMObjTranslation\copy(), ilLMObject\existsExportID(), ilLMObject\getDescription(), ilLMObject\getExportId(), getId(), ilObject\getId(), ilLMObject\getLayout(), ilLMObject\getLMId(), ilLMObject\getShortTitle(), ilLMObject\getTitle(), ilLMObject\getType(), and ilLMObject\saveExportId().
ilLMPageObject::copyToOtherContObject | ( | ilObjLearningModule | $a_cont_obj, |
array & | $a_copied_nodes | ||
) |
copy a page to another content object (learning module / dlib book)
Definition at line 145 of file class.ilLMPageObject.php.
References ilLMObject\getDescription(), getId(), ilObject\getId(), ilLMObject\getLMId(), ilLMObject\getShortTitle(), ilLMObject\getTitle(), and ilLMObject\getType().
ilLMPageObject::create | ( | bool | $a_upload = false , |
bool | $a_omit_page_object_creation = false , |
||
int | $a_layout_id = 0 |
||
) |
Definition at line 64 of file class.ilLMPageObject.php.
References getId(), and ilLMObject\getLMId().
ilLMPageObject::delete | ( | bool | $a_delete_meta_data = true | ) |
Definition at line 85 of file class.ilLMPageObject.php.
ilLMPageObject::exportXML | ( | ilXmlWriter | $a_xml_writer, |
string | $a_mode = "normal" , |
||
int | $a_inst = 0 |
||
) |
export page object to xml (see ilias_co.dtd)
Definition at line 341 of file class.ilLMPageObject.php.
References exportXMLMetaData(), exportXMLPageContent(), getId(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilLMPageObject::exportXMLMetaData | ( | ilXmlWriter | $a_xml_writer | ) |
Definition at line 387 of file class.ilLMPageObject.php.
Referenced by exportXML().
ilLMPageObject::exportXMLPageContent | ( | ilXmlWriter | $a_xml_writer, |
int | $a_inst = 0 |
||
) |
Definition at line 415 of file class.ilLMPageObject.php.
References ilXmlWriter\appendXML(), and ilPCFileList\collectFileItems().
Referenced by exportXML().
ilLMPageObject::getFileItemIds | ( | ) |
get ids of all file items within the page note: this method must be called afer exportXMLPageContent
Definition at line 455 of file class.ilLMPageObject.php.
References $files_contained.
ilLMPageObject::getId | ( | ) |
Definition at line 197 of file class.ilLMPageObject.php.
References ilLMObject\$id.
Referenced by copy(), copyToOtherContObject(), create(), exportXML(), getQuestionIds(), and modifyExportIdentifier().
ilLMPageObject::getMediaObjectIds | ( | ) |
get ids of all media objects within the page note: this method must be called afer exportXMLPageContent
Definition at line 446 of file class.ilLMPageObject.php.
References $mobs_contained.
|
static |
Definition at line 202 of file class.ilLMPageObject.php.
References ilLMObject\getObjectList().
Referenced by ilLMPagesTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilObjContentObject\copyAllPagesAndChapters(), ILIAS\LearningModule\Export\LMHtmlExport\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilLMMultiSrt\getMobIds(), getPagesWithLinksList(), ilLearningModuleExporter\getXmlExportTailDependencies(), ilLearningModuleExporter\getXmlRepresentation(), assQuestionGUI\outPageSelector(), ilInternalLinkGUI\showLinkHelp(), and ilObjContentObject\validatePages().
ilLMPageObject::getPageObject | ( | ) |
get assigned page object
Definition at line 187 of file class.ilLMPageObject.php.
References $page_object.
|
static |
Get all pages of lm that contain any internal links.
Definition at line 210 of file class.ilLMPageObject.php.
References getPageList(), and ilPageObject\getPagesWithLinks().
Referenced by ilLinksTableGUI\getLinks().
ilLMPageObject::getQuestionIds | ( | ) |
Get question ids note: this method must be called afer exportXMLPageContent.
Definition at line 434 of file class.ilLMPageObject.php.
References ilPCQuestion\_getQuestionIdsForPage(), and getId().
|
static |
Insert (multiple) pages templates at node.
Definition at line 512 of file class.ilLMPageObject.php.
References $DIC, $lng, ilLMObject\$title, ilTree\POS_FIRST_NODE, and ilLMObject\putInTree().
Referenced by ILIAS\LearningModule\Editing\EditSubObjectsGUI\insertPageFromLayout().
ilLMPageObject::modifyExportIdentifier | ( | string | $a_tag, |
string | $a_param, | ||
string | $a_value | ||
) |
Definition at line 403 of file class.ilLMPageObject.php.
References getId(), and IL_INST_ID.
|
static |
Get questions of learning module.
Definition at line 464 of file class.ilLMPageObject.php.
Referenced by ilLMTracker\getBlockedUsersInformation(), ilLMQuestionListTableGUI\getItems(), and ilLMTracker\loadLMTrackingData().
ilLMPageObject::read | ( | ) |
Definition at line 58 of file class.ilLMPageObject.php.
Referenced by __construct().
ilLMPageObject::setId | ( | int | $a_id | ) |
Definition at line 192 of file class.ilLMPageObject.php.
|
protected |
Definition at line 36 of file class.ilLMPageObject.php.
|
protected |
Definition at line 34 of file class.ilLMPageObject.php.
Referenced by getFileItemIds().
|
protected |
Definition at line 33 of file class.ilLMPageObject.php.
|
protected |
Definition at line 35 of file class.ilLMPageObject.php.
Referenced by getMediaObjectIds().
Definition at line 37 of file class.ilLMPageObject.php.
Referenced by getPageObject().