ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arStorageRecord.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/ActiveRecord/_Examples/StorageRecord/class.arStorageRecordStorage.php');
3 require_once('./Services/ActiveRecord/Storage/int.arStorageInterface.php');
4 
15 {
16 
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  {
59  $this->id = $id;
60  $this->storage = arStorageRecordStorage::getInstance($this);
61  $this->storage->installDB();
62  }
63 
64 
65  public function create()
66  {
67  $this->storage->create();
68  }
69 
70 
71  public function update()
72  {
73  $this->storage->update();
74  }
75 
76 
77  public function delete()
78  {
79  $this->storage->delete();
80  }
81 
82 
86  public function setDescription($description)
87  {
88  $this->description = $description;
89  }
90 
91 
95  public function getDescription()
96  {
97  return $this->description;
98  }
99 
100 
104  public function setId($id)
105  {
106  $this->id = $id;
107  }
108 
109 
113  public function getId()
114  {
115  return $this->id;
116  }
117 
118 
122  public function setTitle($title)
123  {
124  $this->title = $title;
125  }
126 
127 
131  public function getTitle()
132  {
133  return $this->title;
134  }
135 
136 
140  public function setUsrIds($usr_ids)
141  {
142  $this->usr_ids = $usr_ids;
143  }
144 
145 
149  public function getUsrIds()
150  {
151  return $this->usr_ids;
152  }
153 
154 
158  public function setStorage($storage)
159  {
160  $this->storage = $storage;
161  }
162 
163 
167  public function getStorage()
168  {
169  return $this->storage;
170  }
171 }
Class arStorageInterface.
setDescription($description)
Class arTestRecord.