1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Xhttperror; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* **************************************************************************** |
7
|
|
|
* - A Project by Developers TEAM For Xoops - ( https://xoops.org ) |
8
|
|
|
* **************************************************************************** |
9
|
|
|
* XHTTPERROR - MODULE FOR XOOPS |
10
|
|
|
* Copyright (c) 2007 - 2012 |
11
|
|
|
* Rota Lucio ( http://luciorota.altervista.org/xoops/ ) |
12
|
|
|
* |
13
|
|
|
* You may not change or alter any portion of this comment or credits |
14
|
|
|
* of supporting developers from this source code or any supporting |
15
|
|
|
* source code which is considered copyrighted (c) material of the |
16
|
|
|
* original comment or credit authors. |
17
|
|
|
* |
18
|
|
|
* This program is distributed in the hope that it will be useful, |
19
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
20
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21
|
|
|
* GNU General Public License for more details. |
22
|
|
|
* --------------------------------------------------------------------------- |
23
|
|
|
* @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) |
24
|
|
|
* @license GNU General Public License v3.0 |
25
|
|
|
* @package xhttperror |
26
|
|
|
* @author Rota Lucio ( [email protected] ) |
27
|
|
|
* |
28
|
|
|
* $Rev$: Revision of last commit |
29
|
|
|
* $Author$: Author of last commit |
30
|
|
|
* $Date$: Date of last commit |
31
|
|
|
* **************************************************************************** |
32
|
|
|
*/ |
33
|
|
|
class Report extends \XoopsObject |
34
|
|
|
{ |
35
|
|
|
// constructor |
36
|
|
|
public function __construct() |
37
|
|
|
{ |
38
|
|
|
parent::__construct(); |
39
|
|
|
$this->initVar('report_id', \XOBJ_DTYPE_INT, null, false, 5); |
40
|
|
|
$this->initVar('report_uid', \XOBJ_DTYPE_INT, null, true); // user id |
41
|
|
|
$this->initVar('report_statuscode', \XOBJ_DTYPE_TXTBOX, null, false); |
42
|
|
|
$this->initVar('report_date', \XOBJ_DTYPE_INT, \time(), false); |
43
|
|
|
$this->initVar('report_referer', \XOBJ_DTYPE_TXTBOX, null, false); |
44
|
|
|
$this->initVar('report_useragent', \XOBJ_DTYPE_TXTBOX, null, false); |
45
|
|
|
$this->initVar('report_remoteaddr', \XOBJ_DTYPE_TXTBOX, null, false); |
46
|
|
|
$this->initVar('report_requesteduri', \XOBJ_DTYPE_TXTBOX, null, false); |
47
|
|
|
} |
48
|
|
|
} |
49
|
|
|
|