|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilLMObject. More...
Inheritance diagram for ilLMObject:
Collaboration diagram for ilLMObject:Public Member Functions | |
| __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 | 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 | |
| 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 |
Static Protected Member Functions | |
| static | _lookup (int $a_obj_id, string $a_field) |
| static | getPathToExportIDInLOM () |
Protected Attributes | |
| string | $layout = "" |
| string | $import_id = "" |
| ilObjUser | $user |
| ilDBInterface | $db |
| LOMServices | $lom_services |
Static Protected Attributes | |
| static array | $data_records = [] |
Class ilLMObject.
Base class for ilStructureObjects and ilPageObjects (see ILIAS DTD)
Definition at line 32 of file class.ilLMObject.php.
| ilLMObject::__construct | ( | ilObjLearningModule | $a_content_obj, |
| int | $a_id = 0 |
||
| ) |
Reimplemented in ilStructureObject.
Definition at line 54 of file class.ilLMObject.php.
References $DIC, ilObject\getId(), read(), setContentObject(), setLMId(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
delete all objects of content object (digi book / learning module)
Definition at line 540 of file class.ilLMObject.php.
References ilLMObjectFactory\getInstance().
Here is the call graph for this function:
|
static |
checks wether a lm content object with specified id exists or not
Definition at line 489 of file class.ilLMObject.php.
References $DIC, $ilDB, $q, and ilInternalLink\_extractObjIdOfTarget().
Referenced by ilCourseObjectiveMaterials\__read(), ilInternalLink\_exists(), ilLinksTableGUI\fillRow(), ilHelpGUI\showHelp(), and ilLMPresentationGUI\showPrintView().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all objects of learning module.
Definition at line 1124 of file class.ilLMObject.php.
Referenced by ilLMTracker\loadLMTrackingData().
Here is the caller graph for this function:
|
static |
Get all items for an import ID.
(only for items notnot in trash)
Definition at line 457 of file class.ilLMObject.php.
Referenced by updateInternalLinks().
Here is the caller graph for this function:
|
static |
get current object id for import id (static)
import ids can exist multiple times (if the same learning module has been imported multiple times). we get the object id of the last imported object, that is not in trash
Definition at line 427 of file class.ilLMObject.php.
References $DIC, $ilDB, $lm_id, $q, ilObject\_getAllReferences(), ilObject\_hasUntrashedReference(), and _lookupContObjID().
Referenced by ilInternalLink\_getIdForImportId(), SurveyQuestion\_resolveInternalLink(), and assQuestion\resolveInternalLink().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1271 of file class.ilLMObject.php.
Referenced by ilLMExplorerGUI\getNodeContent().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 219 of file class.ilLMObject.php.
Referenced by _lookupShortTitle(), and _lookupTitle().
Here is the caller graph for this function:
|
static |
get learning module id for lm object
Definition at line 563 of file class.ilLMObject.php.
Referenced by ilObjContentObjectAccess\_checkGoto(), _getIdForImportId(), ilStructureObject\_getPresentationTitle(), ilLMPageObjectGUI\_goto(), ilLMEditorGUI\checkRequestParameters(), ilLMNavigationStatus\determineStatus(), ilLinksTableGUI\fillRow(), ilLearningModuleImporter\finalProcessing(), ilLMPageObjectGUI\getLinkXML(), ilPageLinker\getLinkXML(), ilLearningModuleDataSet\importRecord(), ilLMEditShortTitlesGUI\save(), ilHelpGUI\showHelp(), and updateInternalLinks().
Here is the caller graph for this function:
|
static |
Definition at line 242 of file class.ilLMObject.php.
References _lookup().
Here is the call graph for this function:
|
static |
Definition at line 237 of file class.ilLMObject.php.
References _lookup().
Referenced by ilCourseObjectiveMaterialAssignmentTableGUI\fillRow(), ilCourseObjectivesTableGUI\fillRow(), ilLinksTableGUI\fillRow(), ilLMQuestionListTableGUI\fillRow(), ilMediaObjectUsagesTableGUI\fillRow(), ilMediaPoolPageUsagesTableGUI\fillRow(), ilLMTracker\getBlockedUsersInformation(), ILIAS\components\ILIAS\Glossary\Table\TermUsagesTable\getDataRetrieval(), ILIAS\LearningModule\Editing\EditSubObjectsGUI\getEditTitleForm(), ILIAS\LearningModule\Media\PageRetrieval\getTitleOfSubObject(), ilLinkInputGUI\getTranslatedValue(), ilCourseObjectiveMaterialAssignmentTableGUI\parse(), ilLMContentRendererGUI\renderDeactivatedPageMessage(), ilLMContentRendererGUI\renderNoPageInChapterMessage(), ilLMContentRendererGUI\renderPreconditionsOfPage(), ilHelpGUI\search(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), and ilObjContentObject\validatePages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 247 of file class.ilLMObject.php.
Referenced by ILIAS\LearningModule\Editing\EditSubObjectsGUI\activatePages(), ilLMContentRendererGUI\determineStatus(), ilLMNavigationStatus\determineStatus(), ILIAS\COPage\Link\LinkManager\getDefaultLMTypeLookuper(), ilLMTOCExplorerGUI\getRootNode(), ilLMNavigationStatus\getSuccessorPageId(), ilObjContentObjectGUI\saveExportIds(), ilLMPresentationGUI\showPrintView(), uniqueTypesCheck(), updateInternalLinks(), and ilCourseObjectivesGUI\updateMaterialAssignment().
Here is the caller graph for this function:
|
static |
Definition at line 355 of file class.ilLMObject.php.
|
static |
Definition at line 272 of file class.ilLMObject.php.
Referenced by MDUpdateListener().
Here is the caller graph for this function:
|
static |
Copy a set of chapters/pages into the clipboard.
Definition at line 684 of file class.ilLMObject.php.
Referenced by ILIAS\LearningModule\Editing\EditSubObjectsGUI\copyItems(), ilObjContentObjectGUI\copyItems(), and ilObjContentObjectGUI\copyPage().
Here is the caller graph for this function:
|
static |
Copy a set of chapters/pages into the clipboard.
Definition at line 643 of file class.ilLMObject.php.
Referenced by ilObjContentObjectGUI\cutItems(), ILIAS\LearningModule\Editing\EditSubObjectsGUI\cutItems(), and ilObjContentObjectGUI\movePage().
Here is the caller graph for this function:| ilLMObject::create | ( | bool | $a_upload = false | ) |
Definition at line 370 of file class.ilLMObject.php.
References $db, $ilDB, createMetaData(), getId(), getImportId(), getLayout(), getLMId(), getShortTitle(), getTitle(), getType(), and setId().
Here is the call graph for this function:| ilLMObject::createMetaData | ( | ) |
create meta data entry
Definition at line 117 of file class.ilLMObject.php.
References $user, getDescription(), getId(), getLMId(), getTitle(), and getType().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLMObject::delete | ( | bool | $a_delete_meta_data = true | ) |
Reimplemented in ilLMPageObject, and ilStructureObject.
Definition at line 409 of file class.ilLMObject.php.
References $db, $ilDB, deleteMetaData(), and getId().
Here is the call graph for this function:| ilLMObject::deleteMetaData | ( | ) |
| ilLMObject::existsExportID | ( | int | $a_lm_id, |
| int | $a_exp_id, | ||
| string | $a_type = "pg" |
||
| ) |
Does export ID exist in lm?
Definition at line 1204 of file class.ilLMObject.php.
| ilLMObject::getContentObject | ( | ) |
Definition at line 320 of file class.ilLMObject.php.
References $content_object.
| ilLMObject::getDescription | ( | ) |
Definition at line 290 of file class.ilLMObject.php.
References $description.
Referenced by createMetaData().
Here is the caller graph for this function:
|
static |
Get duplicate export IDs (count export ID usages)
Definition at line 1228 of file class.ilLMObject.php.
Referenced by ilExportIDTableGUI\__construct().
Here is the caller graph for this function:
|
static |
Definition at line 1184 of file class.ilLMObject.php.
Referenced by ILIAS\LearningModule\Export\LMHtmlExport\exportHTMLPages(), ilExportIDTableGUI\fillRow(), and ilLMTOCExplorerGUI\getNodeHref().
Here is the caller graph for this function:| ilLMObject::getId | ( | ) |
Reimplemented in ilLMPageObject.
Definition at line 330 of file class.ilLMObject.php.
References $id.
Referenced by create(), createMetaData(), delete(), ilStructureObject\delete(), deleteMetaData(), MDUpdateListener(), update(), and updateMetaData().
Here is the caller graph for this function:| ilLMObject::getImportId | ( | ) |
Definition at line 335 of file class.ilLMObject.php.
References $import_id.
Referenced by create().
Here is the caller graph for this function:| ilLMObject::getLayout | ( | ) |
Definition at line 350 of file class.ilLMObject.php.
References $layout.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLMObject::getLMId | ( | ) |
Definition at line 310 of file class.ilLMObject.php.
References $lm_id.
Referenced by ilStructureObject\__construct(), create(), createMetaData(), deleteMetaData(), MDUpdateListener(), update(), and updateMetaData().
Here is the caller graph for this function:
|
static |
Definition at line 509 of file class.ilLMObject.php.
Referenced by ilLMPageObject\getPageList(), ilHelpExporter\getXmlExportTailDependencies(), and ilLearningModuleExporter\getXmlExportTailDependencies().
Here is the caller graph for this function:
|
static |
Get pages of chapter.
Definition at line 1106 of file class.ilLMObject.php.
Referenced by ilHelpGUI\showHelp().
Here is the caller graph for this function:
|
staticprotected |
Definition at line 1168 of file class.ilLMObject.php.
References $DIC, and ILIAS\MetaData\Paths\Filters\DATA.
| ilLMObject::getShortTitle | ( | ) |
Definition at line 214 of file class.ilLMObject.php.
References $short_title.
Referenced by create(), and update().
Here is the caller graph for this function:
|
static |
Definition at line 1307 of file class.ilLMObject.php.
Referenced by ilLMEditShortTitlesTableGUI\__construct().
Here is the caller graph for this function:| ilLMObject::getTitle | ( | ) |
Definition at line 204 of file class.ilLMObject.php.
References $title.
Referenced by create(), createMetaData(), and update().
Here is the caller graph for this function:
|
static |
Get learning module tree.
Definition at line 631 of file class.ilLMObject.php.
| ilLMObject::getType | ( | ) |
Definition at line 300 of file class.ilLMObject.php.
References $type.
Referenced by create(), createMetaData(), deleteMetaData(), MDUpdateListener(), and updateMetaData().
Here is the caller graph for this function:
|
static |
Lookup type.
Definition at line 1089 of file class.ilLMObject.php.
Referenced by ilLMPagesTableGUI\fillRow().
Here is the caller graph for this function:| ilLMObject::MDUpdateListener | ( | string | $a_element | ) |
Meta data update listener Important note: Do never call create() or update() method of ilObject here.
It would result in an endless loop: update object -> update meta -> update object -> ... Use static _writeTitle() ... methods instead.
| string | $a_element | md element |
Definition at line 81 of file class.ilLMObject.php.
References $title, ilLPStatusWrapper\_refreshStatus(), _writeTitle(), getId(), ilObjectLP\getInstance(), getLMId(), getType(), ilLPObjSettings\LP_MODE_COLLECTION_TLT, and ilLPObjSettings\LP_MODE_TLT.
Here is the call graph for this function:
|
static |
Preload data records by lm.
Definition at line 183 of file class.ilLMObject.php.
Referenced by ilLMExplorerGUI\__construct().
Here is the caller graph for this function:
|
static |
put this object into content object tree
Definition at line 584 of file class.ilLMObject.php.
Referenced by ilLearningModuleDataSet\importRecord().
Here is the caller graph for this function:| ilLMObject::read | ( | ) |
Reimplemented in ilLMPageObject.
Definition at line 160 of file class.ilLMObject.php.
References $db, $ilDB, setImportId(), setLayout(), setShortTitle(), and setTitle().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1151 of file class.ilLMObject.php.
Referenced by ilObjContentObjectGUI\saveExportIds().
Here is the caller graph for this function:
|
static |
Definition at line 845 of file class.ilLMObject.php.
References $DIC, $id, and ilFormPropertyGUI\removeProhibitedCharacters().
Referenced by ILIAS\LearningModule\Editing\EditSubObjectsGUI\saveTitle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Save titles for lm objects.
Definition at line 826 of file class.ilLMObject.php.
Referenced by ilObjContentObjectGUI\saveAllTitles().
Here is the caller graph for this function:| ilLMObject::setContentObject | ( | ilObjLearningModule | $a_content_obj | ) |
Definition at line 315 of file class.ilLMObject.php.
Referenced by __construct().
Here is the caller graph for this function:| ilLMObject::setDataRecord | ( | array | $a_record | ) |
this method should only be called by class ilLMObjectFactory
Definition at line 155 of file class.ilLMObject.php.
| ilLMObject::setDescription | ( | string | $a_description | ) |
Definition at line 285 of file class.ilLMObject.php.
| ilLMObject::setId | ( | int | $a_id | ) |
Reimplemented in ilLMPageObject.
Definition at line 325 of file class.ilLMObject.php.
Referenced by create().
Here is the caller graph for this function:| ilLMObject::setImportId | ( | string | $a_id | ) |
Definition at line 340 of file class.ilLMObject.php.
Referenced by read().
Here is the caller graph for this function:| ilLMObject::setLayout | ( | string | $a_val | ) |
Definition at line 345 of file class.ilLMObject.php.
Referenced by read().
Here is the caller graph for this function:| ilLMObject::setLMId | ( | int | $a_lm_id | ) |
Definition at line 305 of file class.ilLMObject.php.
Referenced by __construct(), and ilLMPageObjectGUI\setLMPageObject().
Here is the caller graph for this function:| ilLMObject::setShortTitle | ( | string | $a_title | ) |
Definition at line 209 of file class.ilLMObject.php.
Referenced by read().
Here is the caller graph for this function:| ilLMObject::setTitle | ( | string | $a_title | ) |
Definition at line 199 of file class.ilLMObject.php.
Referenced by read().
Here is the caller graph for this function:| ilLMObject::setType | ( | string | $a_type | ) |
Definition at line 295 of file class.ilLMObject.php.
Referenced by ilStructureObject\__construct(), and ilLMPageObject\__construct().
Here is the caller graph for this function:
|
static |
Check for unique types (all pages or all chapters)
Definition at line 1035 of file class.ilLMObject.php.
References _lookupType().
Here is the call graph for this function:| ilLMObject::update | ( | ) |
Definition at line 393 of file class.ilLMObject.php.
References $db, $ilDB, getId(), getLayout(), getLMId(), getShortTitle(), getTitle(), and updateMetaData().
Here is the call graph for this function:
|
static |
Update internal links, after multiple pages have been copied.
Definition at line 872 of file class.ilLMObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_extractTypeOfTarget(), _getAllObjectsForImportId(), ilMapArea\_getMobsForTarget(), ilInternalLink\_getSourcesOfTarget(), _lookupContObjID(), _lookupType(), ilObject\_lookupType(), IL_INST_ID, ilPageObject\lookupTranslations(), and ilObjMediaObject\lookupUsages().
Here is the call graph for this function:| ilLMObject::updateMetaData | ( | ) |
update meta data entry
Definition at line 132 of file class.ilLMObject.php.
References getId(), getLMId(), and getType().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Write layout setting.
Definition at line 1054 of file class.ilLMObject.php.
Referenced by ilLMPageObjectGUI\saveLayout(), ilObjContentObjectGUI\savePageLayout(), and ilStructureObjectGUI\savePageLayout().
Here is the caller graph for this function:
|
static |
Definition at line 1331 of file class.ilLMObject.php.
Referenced by ilLMEditShortTitlesGUI\save().
Here is the caller graph for this function:| bool ilLMObject::$active = true |
Definition at line 49 of file class.ilLMObject.php.
| ilObjLearningModule ilLMObject::$content_object |
Definition at line 45 of file class.ilLMObject.php.
Referenced by getContentObject().
| array ilLMObject::$data_record |
Definition at line 44 of file class.ilLMObject.php.
|
staticprotected |
Definition at line 50 of file class.ilLMObject.php.
|
protected |
| string ilLMObject::$description = "" |
Definition at line 48 of file class.ilLMObject.php.
Referenced by getDescription().
| int ilLMObject::$id = 0 |
Definition at line 43 of file class.ilLMObject.php.
Referenced by getId().
|
protected |
Definition at line 38 of file class.ilLMObject.php.
Referenced by getImportId().
|
protected |
Definition at line 37 of file class.ilLMObject.php.
Referenced by getLayout().
| int ilLMObject::$lm_id = 0 |
Definition at line 41 of file class.ilLMObject.php.
Referenced by _getIdForImportId(), and getLMId().
|
protected |
Definition at line 52 of file class.ilLMObject.php.
| string ilLMObject::$short_title = "" |
Definition at line 47 of file class.ilLMObject.php.
Referenced by getShortTitle().
| string ilLMObject::$title = "" |
Definition at line 46 of file class.ilLMObject.php.
Referenced by getTitle(), and MDUpdateListener().
| string ilLMObject::$type = "" |
Definition at line 42 of file class.ilLMObject.php.
Referenced by getType().
|
protected |
Definition at line 40 of file class.ilLMObject.php.
Referenced by createMetaData().
| const ilLMObject::CHAPTER_TITLE = "st_title" |
Definition at line 34 of file class.ilLMObject.php.
Referenced by ilLMNavigationRendererGUI\addDropdown(), ilLMTOCExplorerGUI\getNodeContent(), ilLMPresentationGUI\ilLocator(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
| const ilLMObject::NO_HEADER = "none" |
Definition at line 36 of file class.ilLMObject.php.
| const ilLMObject::PAGE_TITLE = "pg_title" |
Definition at line 35 of file class.ilLMObject.php.
Referenced by ilObjContentObject\createProperties(), ilLMExplorerGUI\getNodeContent(), and ilLMPresentationGUI\showPrintView().