ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
27  protected $id = 0;
34  protected $title = '';
41  public $description = '';
48  protected $usr_ids = array();
52  protected $storage;
53 
54 
58  public function __construct($id = 0)
59  {
60  $this->id = $id;
61  $this->storage = arStorageRecordStorage::getInstance($this);
62  $this->storage->installDB();
63  }
64 
65 
66  public function create()
67  {
68  $this->storage->create();
69  }
70 
71 
72  public function update()
73  {
74  $this->storage->update();
75  }
76 
77 
78  public function delete()
79  {
80  $this->storage->delete();
81  }
82 
83 
87  public function setDescription($description)
88  {
89  $this->description = $description;
90  }
91 
92 
96  public function getDescription()
97  {
98  return $this->description;
99  }
100 
101 
105  public function setId($id)
106  {
107  $this->id = $id;
108  }
109 
110 
114  public function getId()
115  {
116  return $this->id;
117  }
118 
119 
123  public function setTitle($title)
124  {
125  $this->title = $title;
126  }
127 
128 
132  public function getTitle()
133  {
134  return $this->title;
135  }
136 
137 
141  public function setUsrIds($usr_ids)
142  {
143  $this->usr_ids = $usr_ids;
144  }
145 
146 
150  public function getUsrIds()
151  {
152  return $this->usr_ids;
153  }
154 
155 
159  public function setStorage($storage)
160  {
161  $this->storage = $storage;
162  }
163 
164 
168  public function getStorage()
169  {
170  return $this->storage;
171  }
172 }
Class arStorageInterface.
setDescription($description)
Create styles array
The data for the language used.
Class arTestRecord.