Passed
Pull Request — master (#18)
by Michael
02:21
created

Tag   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace XoopsModules\Tag;
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
 * XOOPS tag management module
17
 *
18
 * @package         tag
19
 * @subpackage      class
20
 * @copyright       {@link http://sourceforge.net/projects/xoops/ The XOOPS Project}
21
 * @license         {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
22
 * @author          Taiwen Jiang <[email protected]>
23
 * @since           1.00
24
 */
25
defined('XOOPS_ROOT_PATH') || die('Restricted access');
26
27
/**
28
 * Class Tag
29
 */
30
class Tag extends \XoopsObject
31
{
32
    /**
33
     * Tag constructor.
34
     */
35
    public function __construct()
36
    {
37
        $this->initVar('tag_id', XOBJ_DTYPE_INT, null, false);
38
        $this->initVar('tag_term', XOBJ_DTYPE_TXTBOX, '', true);
39
        $this->initVar('tag_status', XOBJ_DTYPE_INT, 0);
40
        $this->initVar('tag_count', XOBJ_DTYPE_INT, 0);
41
    }
42
}
43