|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace XoopsModules\Xsitemap; |
|
4
|
|
|
|
|
5
|
|
|
/* |
|
6
|
|
|
* **************************************************************************** |
|
7
|
|
|
* Module generated by TDMCreate from TDM "http://www.tdmxoops.net" |
|
8
|
|
|
* **************************************************************************** |
|
9
|
|
|
* xsitemap - MODULE FOR XOOPS CMS |
|
10
|
|
|
* Copyright (c) Urbanspaceman (http://www.takeaweb.it) |
|
11
|
|
|
* |
|
12
|
|
|
* You may not change or alter any portion of this comment or credits |
|
13
|
|
|
* of supporting developers from this source code or any supporting source code |
|
14
|
|
|
* which is considered copyrighted (c) material of the original comment or credit authors. |
|
15
|
|
|
* This program is distributed in the hope that it will be useful, |
|
16
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|
18
|
|
|
*/ |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* Module: xsitemap |
|
22
|
|
|
* |
|
23
|
|
|
* @package module\Xsitemap\class |
|
24
|
|
|
* @author Urbanspaceman (http://www.takeaweb.it) |
|
25
|
|
|
* @copyright Urbanspaceman (http://www.takeaweb.it) |
|
26
|
|
|
* @license http://www.fsf.org/copyleft/gpl.html GNU public license |
|
27
|
|
|
* @since 1.00 |
|
28
|
|
|
*/ |
|
29
|
|
|
class DummyObject extends \XoopsObject |
|
30
|
|
|
{ |
|
31
|
|
|
/** |
|
32
|
|
|
* constructor |
|
33
|
|
|
* @param $row |
|
34
|
|
|
* @param string $id_name |
|
35
|
|
|
* @param string $pid_name |
|
36
|
|
|
* @param string $title_name |
|
37
|
|
|
*/ |
|
38
|
|
|
public function __construct($row, $id_name = 'cid', $pid_name = 'pid', $title_name = 'title') |
|
39
|
|
|
{ |
|
40
|
|
|
parent::__construct(); |
|
41
|
|
|
$this->initVar($id_name, \XOBJ_DTYPE_INT, $row[$id_name]); |
|
42
|
|
|
$this->initVar($pid_name, \XOBJ_DTYPE_INT, $row[$pid_name]); |
|
43
|
|
|
$this->initVar($title_name, \XOBJ_DTYPE_TXTBOX, $row[$title_name]); |
|
44
|
|
|
} |
|
45
|
|
|
} |
|
46
|
|
|
|