ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilLMPageObject. More...
Public Member Functions | |
__construct (&$a_content_obj, $a_id=0, $a_halt=true) | |
Constructor public. More... | |
__desctruct () | |
read () | |
create ($a_upload=false, $a_omit_page_object_creation=false, $a_layout_id=0) | |
delete ($a_delete_meta_data=true) | |
copy ($a_target_lm) | |
copy page More... | |
& | copyToOtherContObject (&$a_cont_obj, &$a_copied_nodes) |
copy a page to another content object (learning module / dlib book) More... | |
assignPageObject (&$a_page_obj) | |
assign page object More... | |
& | getPageObject () |
get assigned page object More... | |
setId ($a_id) | |
set id More... | |
getId () | |
setAlias ($a_is_alias) | |
set wether page object is an alias More... | |
isAlias () | |
setOriginID ($a_id) | |
getOriginID () | |
exportXML (&$a_xml_writer, $a_mode="normal", $a_inst=0) | |
export page object to xml (see ilias_co.dtd) More... | |
exportXMLMetaData (&$a_xml_writer) | |
export page objects meta data to xml (see ilias_co.dtd) More... | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
exportXMLPageContent (&$a_xml_writer, $a_inst=0) | |
export page objects meta data to xml (see ilias_co.dtd) More... | |
getQuestionIds () | |
Get question ids. More... | |
getMediaObjectIds () | |
get ids of all media objects within the page More... | |
getFileItemIds () | |
get ids of all file items within the page More... | |
exportFO (&$a_xml_writer) | |
export page object to fo More... | |
![]() | |
__construct ($a_content_obj, $a_id=0) | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
setDataRecord ($a_record) | |
this method should only be called by class ilLMObjectFactory More... | |
read () | |
setTitle ($a_title) | |
set title of lm object More... | |
getTitle () | |
get title of lm object More... | |
setShortTitle ($a_title) | |
set short title of lm object More... | |
getShortTitle () | |
get short title of lm object More... | |
setDescription ($a_description) | |
getDescription () | |
setType ($a_type) | |
getType () | |
setLMId ($a_lm_id) | |
getLMId () | |
setContentObject (&$a_content_obj) | |
& | getContentObject () |
setId ($a_id) | |
getId () | |
getImportId () | |
setImportId ($a_id) | |
setLayout ($a_val) | |
Set layout. More... | |
getLayout () | |
Get layout. More... | |
create ($a_upload=false) | |
update () | |
update complete object More... | |
delete ($a_delete_meta_data=true) | |
delete lm object data More... | |
existsExportID ($a_lm_id, $a_exp_id, $a_type="pg") | |
Does export ID exist in lm? More... | |
getExportIDInfo ($a_lm_id, $a_exp_id, $a_type="pg") | |
Does export ID exist in lm? More... | |
Static Public Member Functions | |
static | _splitPage ($a_page_id, $a_pg_parent_type, $a_hier_id) |
split page at hierarchical id More... | |
static | _splitPageNext ($a_page_id, $a_pg_parent_type, $a_hier_id) |
split page to next page at hierarchical id More... | |
static | getPageList ($lm_id) |
static More... | |
static | getPagesWithLinksList ($a_lm_id, $a_par_type) |
Get all pages of lm that contain any internal links. More... | |
static | _getPresentationTitle ( $a_pg_id, $a_mode=self::CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-", $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 (&$a_xml_writer, $a_id, $a_inst=0) |
export page alias to xml More... | |
static | queryQuestionsOfLearningModule ( $a_lm_id, $a_order_field, $a_order_dir, $a_offset, $a_limit) |
Get questions of learning module. More... | |
static | insertPagesFromTemplate ($lm_id, $num, $node_id, $first_child, $layout_id, $title="") |
Insert (multiple) pages templates at node. More... | |
![]() | |
static | _lookupNID ($a_lm_id, $a_lm_obj_id, $a_type) |
lookup named identifier (ILIAS_NID) More... | |
static | preloadDataByLM ($a_lm_id) |
Preload data records by lm. More... | |
static | _lookupTitle ($a_obj_id) |
Lookup title. More... | |
static | _lookupShortTitle ($a_obj_id) |
Lookup short title. More... | |
static | _lookupType ($a_obj_id, $a_lm_id=0) |
Lookup type. More... | |
static | _writeTitle ($a_obj_id, $a_title) |
static | _writeImportId ($a_id, $a_import_id) |
write import id to db (static) More... | |
static | _writePublicAccessStatus ($a_pages, $a_cont_obj_id) |
update public access flags in lm_data for all pages of a content object More... | |
static | _isPagePublic ($a_node_id, $a_check_public_mode=false) |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllObjectsForImportId ($a_import_id, $a_in_lm=0) |
Get all items for an import ID. More... | |
static | _exists ($a_id) |
checks wether a lm content object with specified id exists or not More... | |
static | getObjectList ($lm_id, $type="") |
static More... | |
static | _deleteAllObjectData (&$a_cobj) |
delete all objects of content object (digi book / learning module) More... | |
static | _lookupContObjID ($a_id) |
get learning module / digibook id for lm object More... | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
put this object into content object tree More... | |
static | getTree ($a_cont_obj_id) |
Get learningmodule tree. More... | |
static | clipboardCut ($a_cont_obj_id, $a_ids) |
Copy a set of chapters/pages into the clipboard. More... | |
static | clipboardCopy ($a_cont_obj_id, $a_ids) |
Copy a set of chapters/pages into the clipboard. More... | |
static | pasteTree ( $a_target_lm, $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false, $a_source_lm=null) |
Paste item (tree) from clipboard to current lm. More... | |
static | saveTitles ($a_lm, $a_titles, $a_lang="-") |
Save titles for lm objects. More... | |
static | updateInternalLinks ($a_copied_nodes, $a_parent_type="lm") |
Update internal links, after multiple pages have been copied. More... | |
static | uniqueTypesCheck ($a_items) |
Check for unique types (all pages or all chapters) More... | |
static | writeLayout ($a_obj_id, $a_layout, $a_lm=null) |
Write layout setting. More... | |
static | lookupLayout ($a_obj_id) |
Lookup type. More... | |
static | getPagesOfChapter ($a_lm_id, $a_chap_id) |
Get pages of chapter. More... | |
static | _getAllLMObjectsOfLM ($a_lm_id, $a_type="") |
Get all objects of learning module. More... | |
static | saveExportId ($a_lm_id, $a_lmobj_id, $a_exp_id, $a_type="pg") |
Save export id. More... | |
static | getExportId ($a_lm_id, $a_lmobj_id, $a_type="pg") |
Get export ID. More... | |
static | getDuplicateExportIDs ($a_lm_id, $a_type="pg") |
Get duplicate export IDs (count export ID usages) More... | |
static | _getPresentationTitle ( $a_node, $a_mode=self::PAGE_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-") |
Get affective title. More... | |
static | getShortTitles ($a_lm_id, $a_lang="-") |
Get short titles. More... | |
static | writeShortTitle ($a_id, $a_short_title, $a_lang="-") |
Write short title. More... | |
Data Fields | |
$is_alias | |
$origin_id | |
$id | |
$dom | |
$page_object | |
![]() | |
const | CHAPTER_TITLE = "st_title" |
const | PAGE_TITLE = "pg_title" |
const | NO_HEADER = "none" |
$lm_id | |
$type | |
$id | |
$meta_data | |
$data_record | |
$content_object | |
$title | |
$short_title | |
$description | |
$active = true | |
Additional Inherited Members | |
![]() | |
static | _lookup ($a_obj_id, $a_field) |
Lookup title. More... | |
![]() | |
$user | |
$db | |
![]() | |
static | $data_records = array() |
Class ilLMPageObject.
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 22 of file class.ilLMPageObject.php.
ilLMPageObject::__construct | ( | & | $a_content_obj, |
$a_id = 0 , |
|||
$a_halt = true |
|||
) |
Constructor public.
Definition at line 34 of file class.ilLMPageObject.php.
References ILIAS\GlobalScreen\Provider\__construct(), read(), and ilLMObject\setType().
ilLMPageObject::__desctruct | ( | ) |
Definition at line 51 of file class.ilLMPageObject.php.
|
static |
export page alias to xml
Definition at line 505 of file class.ilLMPageObject.php.
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 366 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(), and ilUtil\now().
Referenced by ilLMObject\_getPresentationTitle(), ilObjContentObjectGUI\addLocations(), ilContObjLocatorGUI\display(), ilLMPageObjectGUI\executeCommand(), exportFO(), ilObjContentObjectGUI\formatInvalidLinkArray(), ilLMTOCExplorerGUI\getNodeContent(), ilLearningModuleNotification\getPageTitle(), ilGlossaryPresentationGUI\listDefinitions(), ilLMNavigationRendererGUI\render(), ilLMContentRendererGUI\render(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
|
static |
split page at hierarchical id
the main reason for this method being static is that a lm page object is not available within ilPageContentGUI where this method is called
Definition at line 180 of file class.ilLMPageObject.php.
References ilLMObject\$lm_id, ilLMObject\$type, ilLMObject\_lookupContObjID(), ilObject\_lookupType(), and ilMD\cloneMD().
Referenced by ilPageContentGUI\splitPage().
|
static |
split page to next page at hierarchical id
the main reason for this method being static is that a lm page object is not available within ilPageContentGUI where this method is called
Definition at line 239 of file class.ilLMPageObject.php.
References ilLMObject\$lm_id, ilLMObject\$type, ilLMObject\_lookupContObjID(), ilObject\_lookupType(), and ilPageObject\_moveContentAfterHierId().
Referenced by ilPageContentGUI\splitPageNext().
ilLMPageObject::assignPageObject | ( | & | $a_page_obj | ) |
assign page object
object | $a_page_obj | page object |
Definition at line 276 of file class.ilLMPageObject.php.
ilLMPageObject::copy | ( | $a_target_lm | ) |
copy page
Definition at line 96 of file class.ilLMPageObject.php.
References ilLMObjTranslation\copy(), ilLMObject\existsExportID(), ilLMObject\getDescription(), ilLMObject\getExportId(), getId(), ilLMObject\getLayout(), ilLMObject\getLMId(), ilLMObject\getShortTitle(), ilLMObject\getTitle(), ilLMObject\getType(), and ilLMObject\saveExportId().
& ilLMPageObject::copyToOtherContObject | ( | & | $a_cont_obj, |
& | $a_copied_nodes | ||
) |
copy a page to another content object (learning module / dlib book)
Definition at line 147 of file class.ilLMPageObject.php.
References ilLMObject\getDescription(), getId(), ilLMObject\getLMId(), ilLMObject\getShortTitle(), ilLMObject\getTitle(), and ilLMObject\getType().
ilLMPageObject::create | ( | $a_upload = false , |
|
$a_omit_page_object_creation = false , |
|||
$a_layout_id = 0 |
|||
) |
Definition at line 68 of file class.ilLMPageObject.php.
References getId(), and ilLMObject\getLMId().
ilLMPageObject::delete | ( | $a_delete_meta_data = true | ) |
Definition at line 86 of file class.ilLMPageObject.php.
ilLMPageObject::exportFO | ( | & | $a_xml_writer | ) |
export page object to fo
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 604 of file class.ilLMPageObject.php.
References ilLMObject\$title, _getPresentationTitle(), and getId().
ilLMPageObject::exportXML | ( | & | $a_xml_writer, |
$a_mode = "normal" , |
|||
$a_inst = 0 |
|||
) |
export page object to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 474 of file class.ilLMPageObject.php.
References exportXMLMetaData(), exportXMLPageContent(), and getId().
ilLMPageObject::exportXMLMetaData | ( | & | $a_xml_writer | ) |
export page objects meta data to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 525 of file class.ilLMPageObject.php.
References getId(), ilLMObject\getLMId(), and ilLMObject\getType().
Referenced by exportXML().
ilLMPageObject::exportXMLPageContent | ( | & | $a_xml_writer, |
$a_inst = 0 |
|||
) |
export page objects meta data to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 550 of file class.ilLMPageObject.php.
References $xml, ilPCFileList\collectFileItems(), and ilLMObject\getContentObject().
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 593 of file class.ilLMPageObject.php.
ilLMPageObject::getId | ( | ) |
Definition at line 301 of file class.ilLMPageObject.php.
References $id.
Referenced by copy(), copyToOtherContObject(), create(), exportFO(), exportXML(), exportXMLMetaData(), 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 583 of file class.ilLMPageObject.php.
ilLMPageObject::getOriginID | ( | ) |
|
static |
static
Definition at line 334 of file class.ilLMPageObject.php.
References ilLMObject\$lm_id, and ilLMObject\getObjectList().
Referenced by ilLMPagesTableGUI\__construct(), ilExportIDTableGUI\__construct(), ilObjContentObject\copyAllPagesAndChapters(), ILIAS\LearningModule\Export\LMHtmlExport\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilLMMultiSrt\getMobIds(), getPagesWithLinksList(), ilLearningModuleExporter\getXmlExportTailDependencies(), ilLearningModuleExporter\getXmlRepresentation(), SurveyQuestionGUI\linkChilds(), assQuestionGUI\outPageSelector(), ilInternalLinkGUI\showLinkHelp(), and ilObjContentObject\validatePages().
& ilLMPageObject::getPageObject | ( | ) |
get assigned page object
Definition at line 287 of file class.ilLMPageObject.php.
References $page_object.
|
static |
Get all pages of lm that contain any internal links.
Definition at line 342 of file class.ilLMPageObject.php.
References $result, getPageList(), and ilPageObject\getPagesWithLinks().
Referenced by ilLinksTableGUI\getLinks().
ilLMPageObject::getQuestionIds | ( | ) |
Get question ids.
note: this method must be called afer exportXMLPageContent
Definition at line 570 of file class.ilLMPageObject.php.
References ilPCQuestion\_getQuestionIdsForPage(), and getId().
|
static |
Insert (multiple) pages templates at node.
Definition at line 677 of file class.ilLMPageObject.php.
References $DIC, $i, ilLMObject\$lm_id, $lng, ilLMObject\$title, IL_FIRST_NODE, and ilLMObject\putInTree().
Referenced by ilStructureObjectGUI\insertPageFromTemplate().
ilLMPageObject::isAlias | ( | ) |
ilLMPageObject::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Definition at line 533 of file class.ilLMPageObject.php.
References getId().
|
static |
Get questions of learning module.
Definition at line 626 of file class.ilLMPageObject.php.
References $DIC, $ilDB, $query, and $result.
Referenced by ilLMTracker\getBlockedUsersInformation(), ilLMQuestionListTableGUI\getItems(), and ilLMTracker\loadLMTrackingData().
ilLMPageObject::read | ( | ) |
Definition at line 61 of file class.ilLMPageObject.php.
Referenced by __construct().
ilLMPageObject::setAlias | ( | $a_is_alias | ) |
set wether page object is an alias
Definition at line 309 of file class.ilLMPageObject.php.
ilLMPageObject::setId | ( | $a_id | ) |
ilLMPageObject::setOriginID | ( | $a_id | ) |
Definition at line 320 of file class.ilLMPageObject.php.
ilLMPageObject::$dom |
Definition at line 27 of file class.ilLMPageObject.php.
ilLMPageObject::$id |
Definition at line 26 of file class.ilLMPageObject.php.
Referenced by getId().
ilLMPageObject::$is_alias |
Definition at line 24 of file class.ilLMPageObject.php.
Referenced by isAlias().
ilLMPageObject::$origin_id |
Definition at line 25 of file class.ilLMPageObject.php.
Referenced by getOriginID().
ilLMPageObject::$page_object |
Definition at line 28 of file class.ilLMPageObject.php.
Referenced by getPageObject().