Passed
Push — master ( 6ae33d...022918 )
by Michael
03:45 queued 02:16
created

Page   A

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 (http://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
defined('XOOPS_ROOT_PATH') || die('Restricted access');
24
25
/**
26
 * Class Page
27
 */
28
class Page extends \XoopsObject
29
{
30
    /**
31
     * Page constructor.
32
     */
33
    public function __construct()
34
    {
35
        $this->initVar('page_id', XOBJ_DTYPE_INT, null, false);
36
        $this->initVar('page_pid', XOBJ_DTYPE_INT, 0);
37
        $this->initVar('page_title', XOBJ_DTYPE_TXTBOX, '');
38
        $this->initVar('page_menu_title', XOBJ_DTYPE_TXTBOX, '');
39
        $this->initVar('page_image', XOBJ_DTYPE_TXTBOX, '');
40
        $this->initVar('page_text', XOBJ_DTYPE_TXTBOX, '');
41
        $this->initVar('page_author', XOBJ_DTYPE_TXTBOX, '');
42
        $this->initVar('page_pushtime', XOBJ_DTYPE_INT);
43
        $this->initVar('page_blank', XOBJ_DTYPE_INT, 0);
44
        $this->initVar('page_menu_status', XOBJ_DTYPE_INT, 0);
45
        $this->initVar('page_type', XOBJ_DTYPE_INT, 0);
46
        $this->initVar('page_status', XOBJ_DTYPE_INT, 0);
47
        $this->initVar('page_order', XOBJ_DTYPE_INT, 0);
48
        //$this->initVar('page_url', XOBJ_DTYPE_TXTBOX,"");
49
        $this->initVar('page_index', XOBJ_DTYPE_INT, 0);
50
        $this->initVar('page_tpl', XOBJ_DTYPE_TXTBOX, '');
51
        $this->initVar('dohtml', XOBJ_DTYPE_INT, 1);
52
        $this->initVar('dosmiley', XOBJ_DTYPE_INT, 0);
53
        $this->initVar('doxcode', XOBJ_DTYPE_INT, 0);
54
        $this->initVar('doimage', XOBJ_DTYPE_INT, 0);
55
        $this->initVar('dobr', XOBJ_DTYPE_INT, 0);
56
    }
57
}
58