ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
public
static
function
returnDbTableName
()
24
{
25
return
'ar_message'
;
26
}
27
28
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
{
97
$this->body =
$body
;
98
}
99
100
104
public
function
getBody
()
105
{
106
return
$this->body
;
107
}
108
109
113
public
function
setPriority
(
$priority
)
114
{
115
$this->priority =
$priority
;
116
}
117
118
122
public
function
getPriority
()
123
{
124
return
$this->priority
;
125
}
126
127
131
public
function
setReceiverId
(
$receiver_id
)
132
{
133
$this->receiver_id =
$receiver_id
;
134
}
135
136
140
public
function
getReceiverId
()
141
{
142
return
$this->receiver_id
;
143
}
144
145
149
public
function
setSenderId
(
$sender_id
)
150
{
151
$this->sender_id =
$sender_id
;
152
}
153
154
158
public
function
getSenderId
()
159
{
160
return
$this->sender_id
;
161
}
162
163
167
public
function
setTitle
(
$title
)
168
{
169
$this->title =
$title
;
170
}
171
172
176
public
function
getTitle
()
177
{
178
return
$this->title
;
179
}
180
181
185
public
function
setType
(
$type
)
186
{
187
$this->type =
$type
;
188
}
189
190
194
public
function
getType
()
195
{
196
return
$this->type
;
197
}
198
199
204
// public function __construct($primary_key = 0, $dev = false) {
205
// parent::__construct($primary_key, new arConnectorSession());
206
// }
207
}
arMessage\TYPE_READ
const TYPE_READ
Definition:
class.arMessage.php:14
arMessage\returnDbTableName
static returnDbTableName()
Definition:
class.arMessage.php:23
arMessage\$sender_id
$sender_id
Definition:
class.arMessage.php:62
ActiveRecord
Class ActiveRecord.
Definition:
class.ActiveRecord.php:24
arMessage\TYPE_NEW
const TYPE_NEW
Definition:
class.arMessage.php:13
arMessage\setSenderId
setSenderId($sender_id)
Definition:
class.arMessage.php:149
arMessage\getPriority
getPriority()
Definition:
class.arMessage.php:122
arMessage\getTitle
getTitle()
Definition:
class.arMessage.php:176
arMessage\$title
$title
Definition:
class.arMessage.php:46
arMessage
Class arMessage.
Definition:
class.arMessage.php:11
arMessage\setTitle
setTitle($title)
Definition:
class.arMessage.php:167
arMessage\$priority
$priority
Definition:
class.arMessage.php:80
arMessage\$receiver_id
$receiver_id
Definition:
class.arMessage.php:71
arMessage\$type
$type
Definition:
class.arMessage.php:89
arMessage\getReceiverId
getReceiverId()
Definition:
class.arMessage.php:140
arMessage\getBody
getBody()
Definition:
class.arMessage.php:104
arMessage\PRIO_NORMAL
const PRIO_NORMAL
Definition:
class.arMessage.php:16
arMessage\PRIO_HIGH
const PRIO_HIGH
Definition:
class.arMessage.php:17
arMessage\setPriority
setPriority($priority)
Definition:
class.arMessage.php:113
arMessage\getType
getType()
Definition:
class.arMessage.php:194
arMessage\PRIO_LOW
const PRIO_LOW
Definition:
class.arMessage.php:15
arMessage\setReceiverId
setReceiverId($receiver_id)
Definition:
class.arMessage.php:131
arMessage\getSenderId
getSenderId()
Definition:
class.arMessage.php:158
arMessage\$id
$id
Definition:
class.arMessage.php:38
php
arMessage\setType
setType($type)
Definition:
class.arMessage.php:185
arMessage\$body
$body
Definition:
class.arMessage.php:54
arMessage\setBody
setBody($body)
Definition:
class.arMessage.php:95
Services
ActiveRecord
_Examples
Message
class.arMessage.php
Generated on Thu Jan 30 2025 19:01:51 for ILIAS by
1.8.13 (using
Doxyfile
)