Moderate::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 8
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
1
<?php
2
3
namespace XoopsModules\Newbb;
4
5
/**
6
 * NewBB 5.0x,  the forum module for XOOPS project
7
 *
8
 * @copyright      XOOPS Project (https://xoops.org)
9
 * @license        GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
10
 * @author         Taiwen Jiang (phppp or D.J.) <[email protected]>
11
 * @since          4.00
12
 * @package        module::newbb
13
 */
14
15
16
17
/**
18
 * A handler for User moderation management
19
 *
20
 * @package       newbb
21
 *
22
 * @author        D.J. (phppp, http://xoopsforge.com)
23
 * @copyright     copyright (c) 2005 XOOPS.org
24
 */
25
class Moderate extends \XoopsObject
26
{
27
    public function __construct()
28
    {
29
        parent::__construct();
30
        $this->initVar('mod_id', \XOBJ_DTYPE_INT);
31
        $this->initVar('mod_start', \XOBJ_DTYPE_INT);
32
        $this->initVar('mod_end', \XOBJ_DTYPE_INT);
33
        $this->initVar('mod_desc', \XOBJ_DTYPE_TXTBOX);
34
        $this->initVar('uid', \XOBJ_DTYPE_INT);
35
        $this->initVar('ip', \XOBJ_DTYPE_TXTBOX);
36
        $this->initVar('forum_id', \XOBJ_DTYPE_INT);
37
    }
38
}
39