Moderate   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
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