Page   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 21
dl 0
loc 28
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 23 1
1
<?php
2
3
namespace XoopsModules\About;
4
5
/**
6
 * About
7
 *
8
 * You may not change or alter any portion of this comment or credits
9
 * of supporting developers from this source code or any supporting source code
10
 * which is considered copyrighted (c) material of the original comment or credit authors.
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
 *
15
 * @copyright      The XOOPS Co.Ltd. http://www.xoops.com.cn
16
 * @copyright      XOOPS Project (https://xoops.org)
17
 * @license        GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
18
 * @package        about
19
 * @since          1.0.0
20
 * @author         Mengjue Shao <[email protected]>
21
 * @author         Susheng Yang <[email protected]>
22
 */
23
/**
24
 * Class Page
25
 */
26
class Page extends \XoopsObject
27
{
28
    /**
29
     * Page constructor.
30
     */
31
    public function __construct()
32
    {
33
        $this->initVar('page_id', \XOBJ_DTYPE_INT, null, false);
34
        $this->initVar('page_pid', \XOBJ_DTYPE_INT, 0);
35
        $this->initVar('page_title', \XOBJ_DTYPE_TXTBOX, '');
36
        $this->initVar('page_menu_title', \XOBJ_DTYPE_TXTBOX, '');
37
        $this->initVar('page_image', \XOBJ_DTYPE_TXTBOX, '');
38
        $this->initVar('page_text', \XOBJ_DTYPE_OTHER, '');
39
        $this->initVar('page_author', \XOBJ_DTYPE_TXTBOX, '');
40
        $this->initVar('page_pushtime', \XOBJ_DTYPE_INT);
41
        $this->initVar('page_blank', \XOBJ_DTYPE_INT, 0);
42
        $this->initVar('page_menu_status', \XOBJ_DTYPE_INT, 0);
43
        $this->initVar('page_type', \XOBJ_DTYPE_INT, 0);
44
        $this->initVar('page_status', \XOBJ_DTYPE_INT, 0);
45
        $this->initVar('page_order', \XOBJ_DTYPE_INT, 0);
46
        //$this->initVar('page_url', XOBJ_DTYPE_TXTBOX,"");
47
        $this->initVar('page_index', \XOBJ_DTYPE_INT, 0);
48
        $this->initVar('page_tpl', \XOBJ_DTYPE_TXTBOX, '');
49
        $this->initVar('dohtml', \XOBJ_DTYPE_INT, 1);
50
        $this->initVar('dosmiley', \XOBJ_DTYPE_INT, 0);
51
        $this->initVar('doxcode', \XOBJ_DTYPE_INT, 0);
52
        $this->initVar('doimage', \XOBJ_DTYPE_INT, 0);
53
        $this->initVar('dobr', \XOBJ_DTYPE_INT, 0);
54
    }
55
}
56