File   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 11
dl 0
loc 17
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
namespace XoopsModules\Extcal;
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 https://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later}
18
 * @package      extcal
19
 * @since
20
 * @author       XOOPS Development Team,
21
 */
22
23
// require_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
24
require_once XOOPS_ROOT_PATH . '/class/uploader.php';
25
26
/**
27
 * Class File.
28
 */
29
class File extends \XoopsObject
30
{
31
    /**
32
     * File constructor.
33
     */
34
    public function __construct()
35
    {
36
        $this->initVar('file_id', \XOBJ_DTYPE_INT, null, false);
37
        $this->initVar('file_name', \XOBJ_DTYPE_TXTBOX, null, false, 255);
38
        $this->initVar('file_nicename', \XOBJ_DTYPE_TXTBOX, null, false, 255);
39
        $this->initVar('file_mimetype', \XOBJ_DTYPE_TXTBOX, null, false, 255);
40
        $this->initVar('file_size', \XOBJ_DTYPE_INT, null, false);
41
        $this->initVar('file_download', \XOBJ_DTYPE_INT, null, false);
42
        $this->initVar('file_date', \XOBJ_DTYPE_INT, null, false);
43
        $this->initVar('file_approved', \XOBJ_DTYPE_INT, null, false);
44
        $this->initVar('event_id', \XOBJ_DTYPE_INT, null, false);
45
        $this->initVar('uid', \XOBJ_DTYPE_INT, null, false);
46
    }
47
}
48