ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arMessage.php
Go to the documentation of this file.
1<?php
2require_once('./Services/ActiveRecord/class.ActiveRecord.php');
3require_once(dirname(__FILE__) . '/../../Connector/class.arConnectorSession.php');
4
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 public static function returnDbTableName()
24 {
25 return 'ar_message';
26 }
27
28
39 protected $id;
47 protected $title = '';
55 protected $body = '';
63 protected $sender_id = 0;
72 protected $receiver_id = 0;
90 protected $type = self::TYPE_NEW;
91
92
96 public function setBody($body)
97 {
98 $this->body = $body;
99 }
100
101
105 public function getBody()
106 {
107 return $this->body;
108 }
109
110
114 public function setPriority($priority)
115 {
116 $this->priority = $priority;
117 }
118
119
123 public function getPriority()
124 {
125 return $this->priority;
126 }
127
128
133 {
134 $this->receiver_id = $receiver_id;
135 }
136
137
141 public function getReceiverId()
142 {
143 return $this->receiver_id;
144 }
145
146
150 public function setSenderId($sender_id)
151 {
152 $this->sender_id = $sender_id;
153 }
154
155
159 public function getSenderId()
160 {
161 return $this->sender_id;
162 }
163
164
168 public function setTitle($title)
169 {
170 $this->title = $title;
171 }
172
173
177 public function getTitle()
178 {
179 return $this->title;
180 }
181
182
186 public function setType($type)
187 {
188 $this->type = $type;
189 }
190
191
195 public function getType()
196 {
197 return $this->type;
198 }
199
200
205 // public function __construct($primary_key = 0, $dev = false) {
206 // parent::__construct($primary_key, new arConnectorSession());
207 // }
208}
Class ActiveRecord.
An exception for terminatinating execution or to throw for unit testing.
Class arMessage.
setBody($body)
setTitle($title)
setSenderId($sender_id)
const PRIO_NORMAL
setReceiverId($receiver_id)
static returnDbTableName()
setPriority($priority)