ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
template.class.ilObjModuleNameGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
13 require_once "class.ilObjectGUI.php";
14 
15 class ilObj<module_name>GUI extends ilObjectGUI
16 {
21  function ilObj<module_name>GUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output = true)
22  {
23  $this->type = "<type ID>";
24  $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,$a_prepare_output);
25  }
26 
31  function saveObject()
32  {
33  global $rbacadmin;
34 
35  // create and insert forum in objecttree
36  $newObj = parent::saveObject();
37 
38  // put here object specific stuff
39 
40  // always send a message
41  ilUtil::sendInfo($this->lng->txt("object_added"),true);
42 
43  ilUtil::redirect($this->getReturnLocation("save",$this->ctrl->getLinkTarget($this,"","",false,false)));
44  }
45 
51  function getTabs(&$tabs_gui)
52  {
53  // tabs are defined manually here. The autogeneration via objects.xml will be deprecated in future
54  // for usage examples see ilObjGroupGUI or ilObjSystemFolderGUI
55  }
56 } // END class.ilObj<module_name>
57 ?>