Text::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
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 Text
21
 */
22
class Text extends \XoopsObject
23
{
24
    public function __construct()
25
    {
26
        parent::__construct();
27
        $this->initVar('post_id', \XOBJ_DTYPE_INT);
28
        $this->initVar('post_text', \XOBJ_DTYPE_TXTAREA);
29
        $this->initVar('post_edit', \XOBJ_DTYPE_SOURCE);
30
    }
31
}
32