NewsStoryHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace XoopsModules\News;
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
 * @author         XOOPS Development Team
19
 */
20
21
//require_once XOOPS_ROOT_PATH . '/modules/news/class/xoopsstory.php';
22
require XOOPS_ROOT_PATH . '/include/comment_constants.php';
23
24
require_once \dirname(__DIR__) . '/preloads/autoloader.php';
25
26
/** @var Helper $helper */
27
$helper = Helper::getInstance();
28
$helper->loadLanguage('main');
29
30
/**
31
 * Class news_NewsStoryHandler
32
 */
33
class NewsStoryHandler extends \XoopsPersistableObjectHandler
34
{
35
    public function __construct(\XoopsDatabase $db = null)
36
    {
37
        parent::__construct($db, 'news_stories', NewsStory::class, 'storieid', 'title');
38
    }
39
}
40