1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Soapbox; |
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 http://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
18
|
|
|
* @package |
19
|
|
|
* @since |
20
|
|
|
* @author XOOPS Development Team |
21
|
|
|
*/ |
22
|
|
|
|
23
|
|
|
use XoopsModules\Soapbox; |
24
|
|
|
|
25
|
|
|
// defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
26
|
|
|
//require_once XOOPS_ROOT_PATH . '/modules/soapbox/include/cleantags.php'; |
27
|
|
|
if (!defined('XOBJ_SOAPBOX_DTYPE_FLOAT')) { |
28
|
|
|
define('XOBJ_SOAPBOX_DTYPE_FLOAT', 21); |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Class Articles |
33
|
|
|
*/ |
34
|
|
|
class Articles extends \XoopsObject |
35
|
|
|
{ |
36
|
|
|
public $pre_offline; |
37
|
|
|
public $_sbcolumns; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Articles constructor. |
41
|
|
|
*/ |
42
|
|
|
public function __construct() |
43
|
|
|
{ |
44
|
|
|
$this->initVar('articleID', XOBJ_DTYPE_INT, 0, false); |
45
|
|
|
$this->initVar('columnID', XOBJ_DTYPE_INT, 0, false); |
46
|
|
|
$this->initVar('headline', XOBJ_DTYPE_TXTBOX, '', false, 255); |
47
|
|
|
$this->initVar('lead', XOBJ_DTYPE_OTHER, '', false); |
48
|
|
|
$this->initVar('bodytext', XOBJ_DTYPE_OTHER, '', false); |
49
|
|
|
$this->initVar('teaser', XOBJ_DTYPE_TXTAREA, '', false); |
50
|
|
|
$this->initVar('uid', XOBJ_DTYPE_INT, 0, false); |
51
|
|
|
$this->initVar('submit', XOBJ_DTYPE_INT, 1, false); |
52
|
|
|
$this->initVar('datesub', XOBJ_DTYPE_LTIME, time(), false); |
53
|
|
|
$this->initVar('counter', XOBJ_DTYPE_INT, 0, false); |
54
|
|
|
$this->initVar('weight', XOBJ_DTYPE_INT, 1, false); |
55
|
|
|
$this->initVar('html', XOBJ_DTYPE_INT, 1, false); |
56
|
|
|
$this->initVar('smiley', XOBJ_DTYPE_INT, 1, false); |
57
|
|
|
$this->initVar('xcodes', XOBJ_DTYPE_INT, 1, false); |
58
|
|
|
$this->initVar('breaks', XOBJ_DTYPE_INT, 1, false); |
59
|
|
|
$this->initVar('block', XOBJ_DTYPE_INT, 1, false); |
60
|
|
|
$this->initVar('artimage', XOBJ_DTYPE_TXTBOX, 'blank.png', false, 255); |
61
|
|
|
$this->initVar('votes', XOBJ_DTYPE_INT, 0, false); |
62
|
|
|
$this->initVar('rating', XOBJ_SOAPBOX_DTYPE_FLOAT, 0.0000, false); |
63
|
|
|
$this->initVar('commentable', XOBJ_DTYPE_INT, 0, false); |
64
|
|
|
$this->initVar('offline', XOBJ_DTYPE_INT, 0, false); |
65
|
|
|
$this->initVar('notifypub', XOBJ_DTYPE_INT, 0, false); |
66
|
|
|
|
67
|
|
|
$this->pre_offline = 1; |
68
|
|
|
$this->_sbcolumns = false; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
} |
72
|
|
|
|