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

TDMDownloads_fielddata::TDMDownloads_fielddata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
eloc 1
cc 1
nc 1
nop 0
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_fielddata extends XoopsObject
21
{
22
// constructor
23
    public function __construct()
24
    {
25
        $this->initVar("iddata",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("data",XOBJ_DTYPE_TXTBOX, null, false);
29
        $this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);
30
    }
31
    public function TDMDownloads_fielddata()
32
    {
33
        $this->__construct();
34
    }
35
}
36
37
class TDMDownloadstdmdownloads_fielddataHandler extends XoopsPersistableObjectHandler
38
{
39
    public function __construct(&$db)
40
    {
41
        parent::__construct($db, "tdmdownloads_fielddata", 'tdmdownloads_fielddata', 'iddata', 'data');
42
    }
43
}
44