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