Passed
Push — master ( fd2af9...93b609 )
by Michael
16:23 queued 02:10
created

TDMDownloadstdmdownloads_modfielddataHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * TDMDownload
4
 *
5
 * You may not change or alter any portion of this comment or credits
6
 * of supporting developers from this source code or any supporting source code
7
 * which is considered copyrighted (c) material of the original comment or credit authors.
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
 *
12
 * @copyright   Gregory Mage (Aka Mage)
13
 * @license     GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14
 * @author      Gregory Mage (Aka Mage)
15
 */
16
17
if (!defined("XOOPS_ROOT_PATH")) {
18
    die("XOOPS root path not defined");
19
}
20
class TDMDownloads_modfielddata extends XoopsObject
21
{
22
// constructor
23
    public function __construct()
24
    {
25
        $this->initVar("modiddata",XOBJ_DTYPE_INT,null,false,11);
26
        $this->initVar("fid",XOBJ_DTYPE_INT,null,false,11);
27
        $this->initVar("lid",XOBJ_DTYPE_INT,null,false,11);
28
        $this->initVar("moddata",XOBJ_DTYPE_TXTAREA, null, false);
29
        $this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);
30
    }
31
    public function TDMDownloads_modfielddata()
32
    {
33
        $this->__construct();
34
    }
35
}
36
37
class TDMDownloadstdmdownloads_modfielddataHandler extends XoopsPersistableObjectHandler
38
{
39
    public function __construct(&$db)
40
    {
41
        parent::__construct($db, "tdmdownloads_modfielddata", 'tdmdownloads_modfielddata', 'modiddata', 'moddata');
42
    }
43
}
44