Category   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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
class Category extends \XoopsObject
17
{
18
    public function __construct()
19
    {
20
        parent::__construct();
21
        $this->initVar('cat_id', \XOBJ_DTYPE_INT);
22
        $this->initVar('cat_title', \XOBJ_DTYPE_TXTBOX);
23
        $this->initVar('cat_image', \XOBJ_DTYPE_SOURCE, 'blank.gif');
24
        $this->initVar('cat_description', \XOBJ_DTYPE_TXTAREA);
25
        $this->initVar('cat_order', \XOBJ_DTYPE_INT, 99);
26
        $this->initVar('cat_url', \XOBJ_DTYPE_URL);
27
    }
28
}
29