Passed
Push — master ( 1b67ca...fcd6b4 )
by Michael
04:53 queued 02:47
created

Votedata::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
nc 1
nop 0
dl 0
loc 14
rs 9.9
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, Jan Pedersen (Mithrandir)
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 Votedata
30
 */
31
class Votedata extends \XoopsObject
32
{
33
    /**
34
     * Votedata constructor.
35
     */
36
    public function __construct()
37
    {
38
        $this->initVar('ratingid', XOBJ_DTYPE_INT, 0, false);
39
        $this->initVar('lid', XOBJ_DTYPE_INT, 0, false);
40
        $this->initVar('rating', XOBJ_DTYPE_INT, 0, false);
41
        $this->initVar('ratinguser', XOBJ_DTYPE_INT, 0, false);
42
        $this->initVar('ratinghostname', XOBJ_DTYPE_TXTBOX, '', false, 60);
43
        $this->initVar('ratingtimestamp', XOBJ_DTYPE_LTIME, 0, false);
44
        //not in table
45
        $this->initVar('dohtml', XOBJ_DTYPE_INT, 0, false);
46
        $this->initVar('doxcode', XOBJ_DTYPE_INT, 1, false);
47
        $this->initVar('dosmiley', XOBJ_DTYPE_INT, 1, false);
48
        $this->initVar('doimage', XOBJ_DTYPE_INT, 1, false);
49
        $this->initVar('dobr', XOBJ_DTYPE_INT, 1, false);
50
    }
51
52
}
53