ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
39
protected
$id
;
47
protected
$title
=
''
;
55
protected
$body
=
''
;
63
protected
$sender_id
= 0;
72
protected
$receiver_id
= 0;
81
protected
$priority
= self::PRIO_NORMAL;
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
132
public
function
setReceiverId
(
$receiver_id
)
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
}
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:63
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:150
arMessage\getPriority
getPriority()
Definition:
class.arMessage.php:123
arMessage\getTitle
getTitle()
Definition:
class.arMessage.php:177
arMessage\$title
$title
Definition:
class.arMessage.php:47
arMessage
Class arMessage.
Definition:
class.arMessage.php:11
arMessage\setTitle
setTitle($title)
Definition:
class.arMessage.php:168
arMessage\$priority
$priority
Definition:
class.arMessage.php:81
arMessage\$receiver_id
$receiver_id
Definition:
class.arMessage.php:72
arMessage\$type
$type
Definition:
class.arMessage.php:90
arMessage\getReceiverId
getReceiverId()
Definition:
class.arMessage.php:141
arMessage\getBody
getBody()
Definition:
class.arMessage.php:105
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:114
arMessage\getType
getType()
Definition:
class.arMessage.php:195
arMessage\PRIO_LOW
const PRIO_LOW
Definition:
class.arMessage.php:15
arMessage\setReceiverId
setReceiverId($receiver_id)
Definition:
class.arMessage.php:132
arMessage\getSenderId
getSenderId()
Definition:
class.arMessage.php:159
arMessage\$id
$id
Definition:
class.arMessage.php:39
arMessage\setType
setType($type)
Definition:
class.arMessage.php:186
arMessage\$body
$body
Definition:
class.arMessage.php:55
arMessage\setBody
setBody($body)
Definition:
class.arMessage.php:96
Services
ActiveRecord
_Examples
Message
class.arMessage.php
Generated on Sat Jan 18 2025 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)