ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.arMessage.php
Go to the documentation of this file.
1 <?php
2 require_once('./Customizing/global/plugins/Libraries/ActiveRecord/class.ActiveRecord.php');
3 require_once(dirname(__FILE__) . '/../../Connector/class.arConnectorSession.php');
4 
11 class arMessage extends ActiveRecord {
12 
13  const TYPE_NEW = 1;
14  const TYPE_READ = 2;
15  const PRIO_LOW = 1;
16  const PRIO_NORMAL = 5;
17  const PRIO_HIGH = 9;
18 
19 
23  static function returnDbTableName() {
24  return 'ar_message';
25  }
26 
27 
37  protected $id;
45  protected $title = '';
53  protected $body = '';
61  protected $sender_id = 0;
70  protected $receiver_id = 0;
88  protected $type = self::TYPE_NEW;
89 
90 
94  public function setBody($body) {
95  $this->body = $body;
96  }
97 
98 
102  public function getBody() {
103  return $this->body;
104  }
105 
106 
110  public function setPriority($priority) {
111  $this->priority = $priority;
112  }
113 
114 
118  public function getPriority() {
119  return $this->priority;
120  }
121 
122 
126  public function setReceiverId($receiver_id) {
127  $this->receiver_id = $receiver_id;
128  }
129 
130 
134  public function getReceiverId() {
135  return $this->receiver_id;
136  }
137 
138 
142  public function setSenderId($sender_id) {
143  $this->sender_id = $sender_id;
144  }
145 
146 
150  public function getSenderId() {
151  return $this->sender_id;
152  }
153 
154 
158  public function setTitle($title) {
159  $this->title = $title;
160  }
161 
162 
166  public function getTitle() {
167  return $this->title;
168  }
169 
170 
174  public function setType($type) {
175  $this->type = $type;
176  }
177 
178 
182  public function getType() {
183  return $this->type;
184  }
185 
186 
191  public function __construct($primary_key = 0, $dev = false) {
192  parent::__construct($primary_key, new arConnectorSession());
193  }
194 }
195 
196 ?>