| @@ 44-56 (lines=13) @@ | ||
| 41 | ||
| 42 | //Constructor |
|
| 43 | ||
| 44 | public function __construct() |
|
| 45 | { |
|
| 46 | $this->helper = Helper::getInstance(); |
|
| 47 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
| 48 | $this->initVar('mailinglist_id', XOBJ_DTYPE_INT, null, false); |
|
| 49 | $this->initVar('mailinglist_name', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 50 | $this->initVar('mailinglist_email', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 51 | $this->initVar('mailinglist_listname', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 52 | $this->initVar('mailinglist_subscribe', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 53 | $this->initVar('mailinglist_unsubscribe', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 54 | $this->initVar('mailinglist_submitter', XOBJ_DTYPE_INT, null, false); |
|
| 55 | $this->initVar('mailinglist_created', XOBJ_DTYPE_INT, time(), false); |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * @param bool $action |
|
| @@ 52-65 (lines=14) @@ | ||
| 49 | ||
| 50 | //Constructor |
|
| 51 | ||
| 52 | public function __construct() |
|
| 53 | { |
|
| 54 | $this->helper = Helper::getInstance(); |
|
| 55 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
| 56 | $this->initVar('protocol_id', XOBJ_DTYPE_INT, null, false); |
|
| 57 | $this->initVar('protocol_letter_id', XOBJ_DTYPE_INT, null, false); |
|
| 58 | $this->initVar('protocol_subscriber_id', XOBJ_DTYPE_INT, null, false); |
|
| 59 | $this->initVar('protocol_status', XOBJ_DTYPE_TXTBOX, '', false, 200); // old style |
|
| 60 | $this->initVar('protocol_success', XOBJ_DTYPE_OTHER, null, false); // boolean |
|
| 61 | $this->initVar('protocol_submitter', XOBJ_DTYPE_INT, null, false); |
|
| 62 | $this->initVar('protocol_created', XOBJ_DTYPE_INT, null, false); |
|
| 63 | $this->initVar('protocol_status_str_id', XOBJ_DTYPE_TXTBOX, '', false); // new from v1.3 |
|
| 64 | $this->initVar('protocol_status_vars', XOBJ_DTYPE_ARRAY, [], false); // new from v1.3 |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @param bool $action |
|