Plugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace XoopsModules\Rssfit;
6
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
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
 */
16
17
/**
18
 * @copyright    XOOPS Project (https://xoops.org)
19
 * @license      GNU GPL 2 or later (https://www.gnu.org/licenses/gpl-2.0.html)
20
 * @package      RSSFit - Extendable XML news feed generator
21
 * @author       NS Tai (aka tuff) <http://www.brandycoke.com>
22
 * @author       XOOPS Development Team
23
 */
24
if (!\defined('RSSFIT_ROOT_PATH')) {
25
    exit();
26
}
27
28
/**
29
 * Class Plugin
30
 * @package XoopsModules\Rssfit
31
 */
32
class Plugin extends \XoopsObject
33
{
34
    public function __construct()
35
    {
36
        parent::__construct();
37
        //  key, data_type, value, req, max, opt
38
        $this->initVar('rssf_conf_id', \XOBJ_DTYPE_INT, 0);
39
        $this->initVar('rssf_filename', \XOBJ_DTYPE_TXTBOX, '');
40
        $this->initVar('rssf_activated', \XOBJ_DTYPE_INT, 0);
41
        $this->initVar('rssf_grab', \XOBJ_DTYPE_INT, 0, true);
42
        $this->initVar('rssf_order', \XOBJ_DTYPE_INT, 0);
43
        $this->initVar('subfeed', \XOBJ_DTYPE_INT, 0);
44
        $this->initVar('sub_entries', \XOBJ_DTYPE_INT, 0);
45
        $this->initVar('sub_link', \XOBJ_DTYPE_TXTBOX, '');
46
        $this->initVar('sub_title', \XOBJ_DTYPE_TXTBOX, '');
47
        $this->initVar('sub_desc', \XOBJ_DTYPE_TXTBOX, '');
48
        $this->initVar('img_url', \XOBJ_DTYPE_TXTBOX, '');
49
        $this->initVar('img_link', \XOBJ_DTYPE_TXTBOX, '');
50
        $this->initVar('img_title', \XOBJ_DTYPE_TXTBOX, '');
51
    }
52
}
53