Passed
Push — master ( 93b609...1da0d9 )
by Michael
37s
created

Downlimit   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace XoopsModules\Tdmdownloads;
4
5
/**
6
 * TDMDownload
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   Gregory Mage (Aka Mage) and Hossein Azizabadi (Aka voltan)
16
 * @license     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
17
 * @author      Gregory Mage (Aka Mage) and Hossein Azizabadi (Aka voltan)
18
 */
19
defined('XOOPS_ROOT_PATH') || die('Restricted access');
20
21
/**
22
 * Class Downlimit
23
 * @package XoopsModules\Tdmdownloads
24
 */
25
class Downlimit extends \XoopsObject
26
{
27
    // constructor
28
    public function __construct()
29
    {
30
        parent::__construct();
31
        $this->initVar('downlimit_id', XOBJ_DTYPE_INT, null, false, 11);
32
        $this->initVar('downlimit_lid', XOBJ_DTYPE_INT, null, false, 11);
33
        $this->initVar('downlimit_uid', XOBJ_DTYPE_INT, null, false, 11);
34
        $this->initVar('downlimit_hostname', XOBJ_DTYPE_TXTBOX, null, false);
35
        $this->initVar('downlimit_date', XOBJ_DTYPE_INT, null, false, 10);
36
    }
37
}
38