ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arStorageRecordGUI.php
Go to the documentation of this file.
1<?php
2require_once('./Services/ActiveRecord/_Examples/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
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
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
GUI-Class arEditGUI.
GUI-Class arIndexTableGUI.
Class arStorageRecordGUI.
Class arTestRecord.
GUI class for personal desktop.
global $ilCtrl
Definition: ilias.php:18
if(empty($password)) $table
Definition: pwgen.php:24
global $DIC
Definition: saml.php:7