ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.arStorageRecord.php
Go to the documentation of this file.
1<?php
2require_once('./Services/ActiveRecord/Demo/StorageRecord/class.arStorageRecordStorage.php');
3require_once('./Services/ActiveRecord/Storage/int.arStorageInterface.php');
4
15
26 protected $id = 0;
33 protected $title = '';
40 public $description = '';
47 protected $usr_ids = array();
51 protected $storage;
52
53
57 public function __construct($id = 0) {
58 $this->id = $id;
59 $this->storage = arStorageRecordStorage::getInstance($this);
60 $this->storage->installDB();
61 }
62
63
64 public function create() {
65 $this->storage->create();
66 }
67
68
69 public function update() {
70 $this->storage->update();
71 }
72
73
74 public function delete() {
75 $this->storage->delete();
76 }
77
78
82 public function setDescription($description) {
83 $this->description = $description;
84 }
85
86
90 public function getDescription() {
91 return $this->description;
92 }
93
94
98 public function setId($id) {
99 $this->id = $id;
100 }
101
102
106 public function getId() {
107 return $this->id;
108 }
109
110
114 public function setTitle($title) {
115 $this->title = $title;
116 }
117
118
122 public function getTitle() {
123 return $this->title;
124 }
125
126
130 public function setUsrIds($usr_ids) {
131 $this->usr_ids = $usr_ids;
132 }
133
134
138 public function getUsrIds() {
139 return $this->usr_ids;
140 }
141
142
146 public function setStorage($storage) {
147 $this->storage = $storage;
148 }
149
150
154 public function getStorage() {
155 return $this->storage;
156 }
157}
158
159?>
Class arTestRecord.
setDescription($description)
Class arStorageInterface.