ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.arStorageRecordGUI.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/ActiveRecord/Demo/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 //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 
GUI-Class arIndexTableGUI.
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
Class arStorageRecordGUI.
global $ilCtrl
Definition: ilias.php:18
GUI-Class arEditGUI.
Create new PHPExcel object
obj_idprivate
GUI class for personal desktop.
Class arTestRecord.