ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arStorageRecordGUI.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/ActiveRecord/_Examples/StorageRecord/class.arStorageRecord.php');
3 require_once('./Services/ActiveRecord/Views/Edit/class.arEditGUI.php');
4 require_once('./Services/PersonalDesktop/classes/class.ilPersonalDesktopGUI.php');
5 require_once('./Services/ActiveRecord/Views/Index/class.arIndexTableGUI.php');
6 
15 {
16 
20  protected $ctrl;
24  protected $tpl;
25 
26 
27  public function __construct()
28  {
29  global $DIC;
30  $ilCtrl = $DIC['ilCtrl'];
31  $tpl = $DIC['tpl'];
32  $this->ctrl = $ilCtrl;
33  $this->tpl = $tpl;
34  $this->object = new arStorageRecord();
35  }
36 
37 
38  public function executeCommand()
39  {
40  $cmd = $_GET['cmd'] ? $_GET['cmd'] : 'index';
41  $this->{$cmd}();
42  }
43 
44 
45  public function index()
46  {
48  $this->tpl->setContent($table->getHTML());
49  }
50 
51 
52  public function edit()
53  {
54  $editGUI = new arEditGUI(new ilPersonalDesktopGUI(), $this->object->getStorage());
55  $this->tpl->setContent($editGUI->getHTML());
56  }
57 
58 
59  public function view()
60  {
61  // $editGUI = new ActiveRecordViewGUI(new ilPersonalDesktopGUI(), $this->object->getStorage());
62  // $this->tpl->setContent($editGUI->getHTML());
63  }
64 }
65 
66 ?>
67 
GUI-Class arIndexTableGUI.
global $DIC
Definition: saml.php:7
$_GET["client_id"]
Class arStorageRecordGUI.
global $ilCtrl
Definition: ilias.php:18
GUI-Class arEditGUI.
Create new PHPExcel object
obj_idprivate
GUI class for personal desktop.
if(empty($password)) $table
Definition: pwgen.php:24
Class arTestRecord.