|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace XoopsModules\Publisher; |
|
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
|
|
|
use Xoops\Core\Kernel\XoopsObject; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Publisher class |
|
19
|
|
|
* |
|
20
|
|
|
* @copyright The XUUPS Project http://sourceforge.net/projects/xuups/ |
|
21
|
|
|
* @license GNU GPL V2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
|
22
|
|
|
* @package Publisher |
|
23
|
|
|
* @since 1.0 |
|
24
|
|
|
* @author trabis <[email protected]> |
|
25
|
|
|
* @version $Id$ |
|
26
|
|
|
*/ |
|
27
|
|
|
require_once \dirname(__DIR__) . '/include/common.php'; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* Class Rating |
|
31
|
|
|
* @package XoopsModules\Publisher |
|
32
|
|
|
*/ |
|
33
|
|
|
class Rating extends XoopsObject |
|
34
|
|
|
{ |
|
35
|
|
|
/** |
|
36
|
|
|
* constructor |
|
37
|
|
|
*/ |
|
38
|
|
|
public function __construct() |
|
39
|
|
|
{ |
|
40
|
|
|
$this->initVar('ratingid', \XOBJ_DTYPE_INT, null, false); |
|
41
|
|
|
$this->initVar('itemid', \XOBJ_DTYPE_INT, null, false); |
|
42
|
|
|
$this->initVar('uid', \XOBJ_DTYPE_INT, null, false); |
|
43
|
|
|
$this->initVar('rate', \XOBJ_DTYPE_INT, null, false); |
|
44
|
|
|
$this->initVar('ip', \XOBJ_DTYPE_TXTAREA, null, false); |
|
45
|
|
|
$this->initVar('date', \XOBJ_DTYPE_INT, null, false); |
|
46
|
|
|
} |
|
47
|
|
|
} |
|
48
|
|
|
|