Completed
Pull Request — master (#3)
by
unknown
01:52
created

XsitemapDummyObject   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
/*
3
 * ****************************************************************************
4
 * Module generated by TDMCreate from TDM "http://www.tdmxoops.net"
5
 * ****************************************************************************
6
 * xsitemap - MODULE FOR XOOPS CMS
7
 * Copyright (c) Urbanspaceman (http://www.takeaweb.it)
8
 *
9
 * You may not change or alter any portion of this comment or credits
10
 * of supporting developers from this source code or any supporting source code
11
 * which is considered copyrighted (c) material of the original comment or credit authors.
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
 * Module: xsitemap
18
 *
19
 * @package    module\xsitemap\class
20
 * @author     http://www.takeaweb.it Urbanspaceman
21
 * @copyright  http://www.takeaweb.it Urbanspaceman
22
 * @license    http://www.fsf.org/copyleft/gpl.html GNU public license
23
 * @since      1.00
24
 */
25
26
class XsitemapDummyObject extends XoopsObject
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
27
{
28
    /**
29
     * constructor
30
     */
31
    public function __construct(&$row, $id_name = 'cid', $pid_name = 'pid', $title_name = 'title')
32
    {
33
        parent::__construct();
34
        $this->initVar($id_name, XOBJ_DTYPE_INT, $row[$id_name]);
35
        $this->initVar($pid_name, XOBJ_DTYPE_INT, $row[$pid_name]);
36
        $this->initVar($title_name, XOBJ_DTYPE_TXTBOX, $row[$title_name]);
37
    }
38
}
39