@@ 45-55 (lines=11) @@ | ||
42 | ||
43 | //Constructor |
|
44 | ||
45 | public function __construct() |
|
46 | { |
|
47 | $this->helper = Helper::getInstance(); |
|
48 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
49 | $this->initVar('catsubscr_id', XOBJ_DTYPE_INT, null, false); |
|
50 | $this->initVar('catsubscr_catid', XOBJ_DTYPE_INT, null, false); |
|
51 | $this->initVar('catsubscr_subscrid', XOBJ_DTYPE_INT, null, false); |
|
52 | $this->initVar('catsubscr_quited', XOBJ_DTYPE_INT, 0, false); |
|
53 | $this->initVar('catsubscr_submitter', XOBJ_DTYPE_INT, null, false); |
|
54 | $this->initVar('catsubscr_created', XOBJ_DTYPE_INT, time(), false); |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param bool $action |
@@ 41-52 (lines=12) @@ | ||
38 | ||
39 | //Constructor |
|
40 | ||
41 | public function __construct() |
|
42 | { |
|
43 | $this->helper = Helper::getInstance(); |
|
44 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
45 | parent::__construct(); |
|
46 | $this->initVar('task_id', XOBJ_DTYPE_INT, null, false); |
|
47 | $this->initVar('task_letter_id', XOBJ_DTYPE_INT, null, false); |
|
48 | $this->initVar('task_subscr_id', XOBJ_DTYPE_INT, null, false); |
|
49 | $this->initVar('task_starttime', XOBJ_DTYPE_INT, null, false); |
|
50 | $this->initVar('task_submitter', XOBJ_DTYPE_INT, null, false); |
|
51 | $this->initVar('task_created', XOBJ_DTYPE_INT, time(), false); |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @param bool $action |