Public Member Functions | |
ilObj< module_name > | GUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) |
Constructor public. | |
saveObject () | |
save object public | |
getTabs (&$tabs_gui) | |
get tabs public |
Definition at line 36 of file template.class.ilObjModuleNameGUI.php.
GUI::getTabs | ( | &$ | tabs_gui | ) |
get tabs public
object | tabs gui object |
Reimplemented from ilObjectGUI.
Definition at line 78 of file template.class.ilObjModuleNameGUI.php.
{ // tabs are defined manually here. The autogeneration via objects.xml will be deprecated in future // for usage examples see ilObjGroupGUI or ilObjSystemFolderGUI }
ilObj<module_name> GUI::GUI | ( | $ | a_data, | |
$ | a_id, | |||
$ | a_call_by_reference, | |||
$ | a_prepare_output = true | |||
) |
Constructor public.
Definition at line 42 of file template.class.ilObjModuleNameGUI.php.
References ilObjectGUI::ilObjectGUI().
{ $this->type = "<type ID>"; $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output); }
GUI::saveObject | ( | ) |
save object public
Reimplemented from ilObjectGUI.
Definition at line 52 of file template.class.ilObjModuleNameGUI.php.
References $rbacadmin, ilObjectGUI::getReturnLocation(), ilUtil::redirect(), and sendInfo().
{ global $rbacadmin; // create and insert forum in objecttree $newObj = parent::saveObject(); // setup rolefolder & default local roles //$roles = $newObj->initDefaultRoles(); // ...finally assign role to creator of object //$rbacadmin->assignUser($roles[0], $newObj->getOwner(), "y"); // put here object specific stuff // always send a message sendInfo($this->lng->txt("object_added"),true); ilUtil::redirect($this->getReturnLocation("save",$this->ctrl->getLinkTarget($this,""))); }