ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
class.arMessage.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/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 
38  protected $id;
46  protected $title = '';
54  protected $body = '';
62  protected $sender_id = 0;
71  protected $receiver_id = 0;
80  protected $priority = self::PRIO_NORMAL;
89  protected $type = self::TYPE_NEW;
90 
91 
95  public function setBody($body) {
96  $this->body = $body;
97  }
98 
99 
103  public function getBody() {
104  return $this->body;
105  }
106 
107 
111  public function setPriority($priority) {
112  $this->priority = $priority;
113  }
114 
115 
119  public function getPriority() {
120  return $this->priority;
121  }
122 
123 
127  public function setReceiverId($receiver_id) {
128  $this->receiver_id = $receiver_id;
129  }
130 
131 
135  public function getReceiverId() {
136  return $this->receiver_id;
137  }
138 
139 
143  public function setSenderId($sender_id) {
144  $this->sender_id = $sender_id;
145  }
146 
147 
151  public function getSenderId() {
152  return $this->sender_id;
153  }
154 
155 
159  public function setTitle($title) {
160  $this->title = $title;
161  }
162 
163 
167  public function getTitle() {
168  return $this->title;
169  }
170 
171 
175  public function setType($type) {
176  $this->type = $type;
177  }
178 
179 
183  public function getType() {
184  return $this->type;
185  }
186 
187 
192  // public function __construct($primary_key = 0, $dev = false) {
193  // parent::__construct($primary_key, new arConnectorSession());
194  // }
195 }
196 
197 ?>
static returnDbTableName()
Class ActiveRecord.
setSenderId($sender_id)
Class arMessage.
setTitle($title)
const PRIO_NORMAL
setPriority($priority)
setReceiverId($receiver_id)
setBody($body)