Category::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
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
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