ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
class for editing lm menu More...
Public Member Functions | |
__construct () | |
setObjId ($a_obj_id) | |
getObjId () | |
setEntryId ($a_id) | |
getEntryId () | |
setLinkType ($a_link_type) | |
getLinkType () | |
setTitle ($a_title) | |
getTitle () | |
setTarget ($a_target) | |
getTarget () | |
setLinkRefId ($a_link_ref_id) | |
getLinkRefId () | |
setActive ($a_val) | |
Set active. More... | |
getActive () | |
Get active. More... | |
create () | |
getMenuEntries ($a_only_active=false) | |
delete ($a_id) | |
delete menu entry More... | |
update () | |
update menu entry More... | |
readEntry ($a_id) | |
updateActiveStatus ($a_entries) | |
update active status of all menu entries of lm More... | |
Static Public Member Functions | |
static | fixImportMenuItems (int $new_lm_id, array $ref_mapping) |
Fix ref ids on import. More... | |
static | writeActive ($entry_id, $active) |
Write status for entry id. More... | |
Protected Attributes | |
$active = "n" | |
$db | |
ilLMMenuEditor::__construct | ( | ) |
Definition at line 41 of file class.ilLMMenuEditor.php.
ilLMMenuEditor::create | ( | ) |
Definition at line 133 of file class.ilLMMenuEditor.php.
References $db, $id, $ilDB, $r, getActive(), getLinkRefId(), getLinkType(), getObjId(), getTarget(), and getTitle().
ilLMMenuEditor::delete | ( | $a_id | ) |
|
static |
Fix ref ids on import.
int | $new_lm_id | |
array | $ref_mapping |
Definition at line 272 of file class.ilLMMenuEditor.php.
References $db, $DIC, and array.
Referenced by ilLearningModuleImporter\finalProcessing().
ilLMMenuEditor::getActive | ( | ) |
Get active.
Definition at line 127 of file class.ilLMMenuEditor.php.
References $active.
Referenced by create().
ilLMMenuEditor::getEntryId | ( | ) |
Definition at line 67 of file class.ilLMMenuEditor.php.
Referenced by update().
ilLMMenuEditor::getLinkRefId | ( | ) |
Definition at line 107 of file class.ilLMMenuEditor.php.
Referenced by create(), and update().
ilLMMenuEditor::getLinkType | ( | ) |
Definition at line 77 of file class.ilLMMenuEditor.php.
Referenced by create(), and update().
ilLMMenuEditor::getMenuEntries | ( | $a_only_active = false | ) |
ilLMMenuEditor::getObjId | ( | ) |
Definition at line 57 of file class.ilLMMenuEditor.php.
Referenced by create().
ilLMMenuEditor::getTarget | ( | ) |
Definition at line 97 of file class.ilLMMenuEditor.php.
References $target.
Referenced by create(), and update().
ilLMMenuEditor::getTitle | ( | ) |
Definition at line 87 of file class.ilLMMenuEditor.php.
References $title.
Referenced by create(), and update().
ilLMMenuEditor::readEntry | ( | $a_id | ) |
Definition at line 223 of file class.ilLMMenuEditor.php.
References $db, $ilDB, $r, $row, setActive(), setLinkRefId(), setLinkType(), setTarget(), and setTitle().
ilLMMenuEditor::setActive | ( | $a_val | ) |
Set active.
string | $a_val |
Definition at line 117 of file class.ilLMMenuEditor.php.
Referenced by readEntry().
ilLMMenuEditor::setEntryId | ( | $a_id | ) |
Definition at line 62 of file class.ilLMMenuEditor.php.
ilLMMenuEditor::setLinkRefId | ( | $a_link_ref_id | ) |
Definition at line 102 of file class.ilLMMenuEditor.php.
Referenced by readEntry().
ilLMMenuEditor::setLinkType | ( | $a_link_type | ) |
Definition at line 72 of file class.ilLMMenuEditor.php.
Referenced by readEntry().
ilLMMenuEditor::setObjId | ( | $a_obj_id | ) |
Definition at line 52 of file class.ilLMMenuEditor.php.
ilLMMenuEditor::setTarget | ( | $a_target | ) |
Definition at line 92 of file class.ilLMMenuEditor.php.
Referenced by readEntry().
ilLMMenuEditor::setTitle | ( | $a_title | ) |
Definition at line 82 of file class.ilLMMenuEditor.php.
Referenced by readEntry().
ilLMMenuEditor::update | ( | ) |
update menu entry
Definition at line 208 of file class.ilLMMenuEditor.php.
References $db, $ilDB, $r, getEntryId(), getLinkRefId(), getLinkType(), getTarget(), and getTitle().
ilLMMenuEditor::updateActiveStatus | ( | $a_entries | ) |
update active status of all menu entries of lm
array | entry ids |
Definition at line 250 of file class.ilLMMenuEditor.php.
|
static |
Write status for entry id.
$entry_id | |
$active |
Definition at line 317 of file class.ilLMMenuEditor.php.
References $active, $db, $DIC, and array.
Referenced by ilObjContentObject\cloneObject().
|
protected |
Definition at line 34 of file class.ilLMMenuEditor.php.
Referenced by getActive(), and writeActive().
|
protected |
Definition at line 39 of file class.ilLMMenuEditor.php.
Referenced by create(), delete(), fixImportMenuItems(), getMenuEntries(), readEntry(), update(), updateActiveStatus(), and writeActive().