|
1
|
|
|
<?php declare(strict_types=1); |
|
2
|
|
|
|
|
3
|
|
|
namespace XoopsModules\News; |
|
4
|
|
|
|
|
5
|
|
|
use XoopsObject; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* **************************************************************************** |
|
9
|
|
|
* - Developers TEAM TDM Xoops - (https://xoops.org) |
|
10
|
|
|
* **************************************************************************** |
|
11
|
|
|
* NEWS - MODULE FOR XOOPS |
|
12
|
|
|
* Copyright (c) 2007 - 2011 |
|
13
|
|
|
* TXMod Xoops (https://www.txmodxoops.org) |
|
14
|
|
|
* |
|
15
|
|
|
* This program is free software; you can redistribute it and/or modify |
|
16
|
|
|
* it under the terms of the GNU General Public License as published by |
|
17
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
|
18
|
|
|
* (at your option) any later version. |
|
19
|
|
|
* |
|
20
|
|
|
* You may not change or alter any portion of this comment or credits |
|
21
|
|
|
* of supporting developers from this source code or any supporting |
|
22
|
|
|
* source code which is considered copyrighted (c) material of the |
|
23
|
|
|
* original comment or credit authors. |
|
24
|
|
|
* |
|
25
|
|
|
* This program is distributed in the hope that it will be useful, |
|
26
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
27
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
28
|
|
|
* GNU General Public License for more details. |
|
29
|
|
|
* |
|
30
|
|
|
* ------------------------------------------------------------------------ |
|
31
|
|
|
* |
|
32
|
|
|
* @copyright TXMod Xoops (https://www.txmodxoops.org) |
|
33
|
|
|
* @license GPL see LICENSE |
|
34
|
|
|
* @author TXMod Xoops ([email protected]) |
|
35
|
|
|
* |
|
36
|
|
|
* Version : 1.67 Tue 2012/02/13 22:29:36 : Timgno Exp $ |
|
37
|
|
|
* **************************************************************************** |
|
38
|
|
|
*/ |
|
39
|
|
|
|
|
40
|
|
|
/** |
|
41
|
|
|
* Class Topics |
|
42
|
|
|
*/ |
|
43
|
|
|
class NewsTopics extends XoopsObject |
|
44
|
|
|
{ |
|
45
|
|
|
public $topic_id; |
|
46
|
|
|
public $topic_pid; |
|
47
|
|
|
public $topic_title; |
|
48
|
|
|
public $topic_imgurl; |
|
49
|
|
|
public $menu; |
|
50
|
|
|
public $topic_frontpage; |
|
51
|
|
|
public $topic_rssurl; |
|
52
|
|
|
public $topic_description; |
|
53
|
|
|
public $topic_color; |
|
54
|
|
|
|
|
55
|
|
|
//Constructor |
|
56
|
|
|
|
|
57
|
|
|
public function __construct() |
|
58
|
|
|
{ |
|
59
|
|
|
parent::__construct(); |
|
60
|
|
|
$this->initVar('topic_id', \XOBJ_DTYPE_INT, null, false, 4); |
|
61
|
|
|
$this->initVar('topic_pid', \XOBJ_DTYPE_INT, null, false, 4); |
|
62
|
|
|
$this->initVar('topic_title', \XOBJ_DTYPE_TXTBOX, null, false); |
|
63
|
|
|
$this->initVar('topic_imgurl', \XOBJ_DTYPE_TXTBOX, null, false); |
|
64
|
|
|
$this->initVar('menu', \XOBJ_DTYPE_INT, null, false, 1); |
|
65
|
|
|
$this->initVar('topic_frontpage', \XOBJ_DTYPE_INT, null, false, 1); |
|
66
|
|
|
$this->initVar('topic_rssurl', \XOBJ_DTYPE_TXTBOX, null, false); |
|
67
|
|
|
$this->initVar('topic_description', \XOBJ_DTYPE_TXTAREA, null, false); |
|
68
|
|
|
$this->initVar('topic_color', \XOBJ_DTYPE_TXTBOX, null, false); |
|
69
|
|
|
} |
|
70
|
|
|
} |
|
71
|
|
|
|