Userstats::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
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
\defined('NEWBB_FUNCTIONS_INI') || require $GLOBALS['xoops']->path('modules/newbb/include/functions.ini.php');
18
19
/**
20
 * Class Userstats
21
 */
22
class Userstats extends \XoopsObject
23
{
24
    public function __construct()
25
    {
26
        parent::__construct();
27
        $this->initVar('uid', \XOBJ_DTYPE_INT);
28
        $this->initVar('user_topics', \XOBJ_DTYPE_INT);
29
        $this->initVar('user_digests', \XOBJ_DTYPE_INT);
30
        $this->initVar('user_posts', \XOBJ_DTYPE_INT);
31
        $this->initVar('user_lastpost', \XOBJ_DTYPE_INT);
32
    }
33
}
34