Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F9889346
enigma_error.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
enigma_error.php
View Options
<?php
/**
+-------------------------------------------------------------------------+
| Error class for the Enigma Plugin |
| |
| Copyright (C) The Roundcube Dev Team |
| |
| Licensed under the GNU General Public License version 3 or |
| any later version with exceptions for skins & plugins. |
| See the README file for a full license statement. |
+-------------------------------------------------------------------------+
| Author: Aleksander Machniak <alec@alec.pl> |
+-------------------------------------------------------------------------+
*/
class
enigma_error
{
private
$code
;
private
$message
;
private
$data
=
[];
// error codes
const
OK
=
0
;
const
INTERNAL
=
1
;
const
NODATA
=
2
;
const
KEYNOTFOUND
=
3
;
const
DELKEY
=
4
;
const
BADPASS
=
5
;
const
EXPIRED
=
6
;
const
UNVERIFIED
=
7
;
const
NOMDC
=
8
;
function
__construct
(
$code
=
null
,
$message
=
''
,
$data
=
[])
{
$this
->
code
=
$code
;
$this
->
message
=
$message
;
$this
->
data
=
$data
;
}
function
getCode
()
{
return
$this
->
code
;
}
function
getMessage
()
{
return
$this
->
message
;
}
function
getData
(
$name
=
null
)
{
if
(
$name
)
{
return
isset
(
$this
->
data
[
$name
])
?
$this
->
data
[
$name
]
:
null
;
}
return
$this
->
data
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Aug 21, 1:19 AM (9 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1277338
Default Alt Text
enigma_error.php (1 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment