|
1
|
|
|
<?php declare(strict_types=1); |
|
2
|
|
|
|
|
3
|
|
|
namespace XoopsModules\News; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* **************************************************************************** |
|
7
|
|
|
* - Developers TEAM TDM Xoops - (https://xoops.org) |
|
8
|
|
|
* **************************************************************************** |
|
9
|
|
|
* NEWS - MODULE FOR XOOPS |
|
10
|
|
|
* Copyright (c) 2007 - 2011 |
|
11
|
|
|
* TXMod Xoops (https://www.txmodxoops.org) |
|
12
|
|
|
* |
|
13
|
|
|
* This program is free software; you can redistribute it and/or modify |
|
14
|
|
|
* it under the terms of the GNU General Public License as published by |
|
15
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
|
16
|
|
|
* (at your option) any later version. |
|
17
|
|
|
* |
|
18
|
|
|
* You may not change or alter any portion of this comment or credits |
|
19
|
|
|
* of supporting developers from this source code or any supporting |
|
20
|
|
|
* source code which is considered copyrighted (c) material of the |
|
21
|
|
|
* original comment or credit authors. |
|
22
|
|
|
* |
|
23
|
|
|
* This program is distributed in the hope that it will be useful, |
|
24
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
25
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
26
|
|
|
* GNU General Public License for more details. |
|
27
|
|
|
* |
|
28
|
|
|
* ------------------------------------------------------------------------ |
|
29
|
|
|
* |
|
30
|
|
|
* @copyright TXMod Xoops (https://www.txmodxoops.org) |
|
31
|
|
|
* @license GPL see LICENSE |
|
32
|
|
|
* @author TXMod Xoops ([email protected]) |
|
33
|
|
|
* |
|
34
|
|
|
* Version : 1.67 Tue 2012/02/13 22:29:36 : Timgno Exp $ |
|
35
|
|
|
* **************************************************************************** |
|
36
|
|
|
*/ |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Class news_stories |
|
40
|
|
|
*/ |
|
41
|
|
|
class NewsStories extends \XoopsObject |
|
42
|
|
|
{ |
|
43
|
|
|
public $storyid; |
|
44
|
|
|
public $uid; |
|
45
|
|
|
public $title; |
|
46
|
|
|
public $created; |
|
47
|
|
|
public $published; |
|
48
|
|
|
public $expired; |
|
49
|
|
|
public $hostname; |
|
50
|
|
|
public $nohtml; |
|
51
|
|
|
public $nosmiley; |
|
52
|
|
|
public $hometext; |
|
53
|
|
|
public $bodytext; |
|
54
|
|
|
public $keywords; |
|
55
|
|
|
public $description; |
|
56
|
|
|
public $counter; |
|
57
|
|
|
public $topicid; |
|
58
|
|
|
public $ihome; |
|
59
|
|
|
public $notifypub; |
|
60
|
|
|
public $story_type; |
|
61
|
|
|
public $topicdisplay; |
|
62
|
|
|
public $topicalign; |
|
63
|
|
|
public $comments; |
|
64
|
|
|
public $rating; |
|
65
|
|
|
public $votes; |
|
66
|
|
|
public $picture; |
|
67
|
|
|
public $pictureinfo; |
|
68
|
|
|
public $subtitle; |
|
69
|
|
|
|
|
70
|
|
|
//Constructor |
|
71
|
|
|
|
|
72
|
|
|
public function __construct() |
|
73
|
|
|
{ |
|
74
|
|
|
parent::__construct(); |
|
75
|
|
|
$this->initVar('storyid', \XOBJ_DTYPE_INT, null, false, 8); |
|
76
|
|
|
$this->initVar('uid', \XOBJ_DTYPE_INT, null, false, 5); |
|
77
|
|
|
$this->initVar('title', \XOBJ_DTYPE_TXTBOX, null, false); |
|
78
|
|
|
$this->initVar('created', \XOBJ_DTYPE_INT, null, false, 10); |
|
79
|
|
|
$this->initVar('published', \XOBJ_DTYPE_INT, null, false, 10); |
|
80
|
|
|
$this->initVar('expired', \XOBJ_DTYPE_INT, null, false, 10); |
|
81
|
|
|
$this->initVar('hostname', \XOBJ_DTYPE_TXTBOX, null, false, 150); |
|
82
|
|
|
$this->initVar('nohtml', \XOBJ_DTYPE_INT, null, false, 1); |
|
83
|
|
|
$this->initVar('nosmiley', \XOBJ_DTYPE_INT, null, false, 1); |
|
84
|
|
|
$this->initVar('hometext', \XOBJ_DTYPE_TXTAREA, null, false); |
|
85
|
|
|
$this->initVar('bodytext', \XOBJ_DTYPE_TXTAREA, null, false); |
|
86
|
|
|
$this->initVar('keywords', \XOBJ_DTYPE_TXTBOX, null, false, 255); |
|
87
|
|
|
$this->initVar('description', \XOBJ_DTYPE_TXTBOX, null, false, 255); |
|
88
|
|
|
$this->initVar('counter', \XOBJ_DTYPE_INT, null, false, 8); |
|
89
|
|
|
$this->initVar('topicid', \XOBJ_DTYPE_INT, null, false, 4); |
|
90
|
|
|
$this->initVar('ihome', \XOBJ_DTYPE_INT, null, false, 1); |
|
91
|
|
|
$this->initVar('notifypub', \XOBJ_DTYPE_INT, null, false, 1); |
|
92
|
|
|
$this->initVar('story_type', \XOBJ_DTYPE_TXTBOX, null, false); |
|
93
|
|
|
$this->initVar('topicdisplay', \XOBJ_DTYPE_INT, null, false, 1); |
|
94
|
|
|
$this->initVar('topicalign', \XOBJ_DTYPE_TXTBOX, null, false, 1); |
|
95
|
|
|
$this->initVar('comments', \XOBJ_DTYPE_INT, null, false, 5); |
|
96
|
|
|
$this->initVar('rating', \XOBJ_DTYPE_DECIMAL, null, false, 6, 4); |
|
97
|
|
|
$this->initVar('votes', \XOBJ_DTYPE_INT, null, false, 11); |
|
98
|
|
|
$this->initVar('picture', \XOBJ_DTYPE_TXTBOX, null, false, 50); |
|
99
|
|
|
$this->initVar('pictureinfo', \XOBJ_DTYPE_TXTBOX, null, false, 255); |
|
100
|
|
|
$this->initVar('subtitle', \XOBJ_DTYPE_TXTBOX, null, false, 255); |
|
101
|
|
|
} |
|
102
|
|
|
} |
|
103
|
|
|
|