Columns::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 14
nc 1
nop 0
dl 0
loc 18
rs 9.7998
c 0
b 0
f 0
1
<?php
2
3
namespace XoopsModules\Soapbox;
4
5
/*
6
 * You may not change or alter any portion of this comment or credits
7
 * of supporting developers from this source code or any supporting source code
8
 * which is considered copyrighted (c) material of the original comment or credit authors.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 */
14
15
/**
16
 * @copyright      {@link https://xoops.org/ XOOPS Project}
17
 * @license        {@link http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
18
 * @package
19
 * @since
20
 * @author         XOOPS Development Team
21
 */
22
23
use XoopsModules\Soapbox;
24
25
// defined('XOOPS_ROOT_PATH') || die('Restricted access');
26
//require_once XOOPS_ROOT_PATH . '/modules/soapbox/include/cleantags.php';
27
28
/**
29
 * Class Columns
30
 */
31
class Columns extends \XoopsObject
32
{
33
    /**
34
     * Columns constructor.
35
     */
36
    public function __construct()
37
    {
38
        $this->initVar('columnID', XOBJ_DTYPE_INT, 0, false);
39
        $this->initVar('author', XOBJ_DTYPE_INT, 0, false);
40
        $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', true, 100);
41
        $this->initVar('description', XOBJ_DTYPE_TXTAREA, '', false);
42
        $this->initVar('total', XOBJ_DTYPE_INT, 0, false);
43
        $this->initVar('weight', XOBJ_DTYPE_INT, 1, false);
44
        $this->initVar('colimage', XOBJ_DTYPE_TXTBOX, 'blank.png', false, 255);
45
        $this->initVar('created', XOBJ_DTYPE_INT, 1033141070, false);
46
        //not in table
47
        $this->initVar('dohtml', XOBJ_DTYPE_INT, 0, false);
48
        $this->initVar('doxcode', XOBJ_DTYPE_INT, 1, false);
49
        $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1, false);
50
        $this->initVar('doimage', XOBJ_DTYPE_INT, 1, false);
51
        $this->initVar('dobr', XOBJ_DTYPE_INT, 1, false);
52
53
        $this->initVar('notifypub', XOBJ_DTYPE_INT, 0, false);
54
    }
55
}
56