| @@ 45-57 (lines=13) @@ | ||
| 42 | ||
| 43 | //Constructor |
|
| 44 | ||
| 45 | public function __construct() |
|
| 46 | { |
|
| 47 | $this->helper = Helper::getInstance(); |
|
| 48 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
| 49 | $this->initVar('attachment_id', XOBJ_DTYPE_INT, null, false); |
|
| 50 | $this->initVar('attachment_letter_id', XOBJ_DTYPE_INT, null, false); |
|
| 51 | $this->initVar('attachment_name', XOBJ_DTYPE_TXTBOX, null, false, 200); |
|
| 52 | $this->initVar('attachment_type', XOBJ_DTYPE_TXTBOX, null, false, 100); |
|
| 53 | $this->initVar('attachment_submitter', XOBJ_DTYPE_INT, null, false); |
|
| 54 | $this->initVar('attachment_created', XOBJ_DTYPE_INT, time(), false); |
|
| 55 | $this->initVar('attachment_size', XOBJ_DTYPE_INT, 0, false); |
|
| 56 | $this->initVar('attachment_mode', XOBJ_DTYPE_INT, _XNEWSLETTER_ATTACHMENTS_MODE_ASATTACHMENT, false); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @param bool $action |
|
| @@ 45-57 (lines=13) @@ | ||
| 42 | ||
| 43 | //Constructor |
|
| 44 | ||
| 45 | public function __construct() |
|
| 46 | { |
|
| 47 | $this->helper = Helper::getInstance(); |
|
| 48 | $this->db = \XoopsDatabaseFactory::getDatabaseConnection(); |
|
| 49 | $this->initVar('template_id', XOBJ_DTYPE_INT, null, false); |
|
| 50 | $this->initVar('template_title', XOBJ_DTYPE_TXTBOX, '', true, 100); |
|
| 51 | $this->initVar('template_description', XOBJ_DTYPE_TXTAREA, '', false); |
|
| 52 | $this->initVar('template_content', XOBJ_DTYPE_TXTAREA, '', true); |
|
| 53 | $this->initVar('template_online', XOBJ_DTYPE_INT, null, false); |
|
| 54 | $this->initVar('template_type', XOBJ_DTYPE_INT, null, false); |
|
| 55 | $this->initVar('template_submitter', XOBJ_DTYPE_INT, null, false); |
|
| 56 | $this->initVar('template_created', XOBJ_DTYPE_INT, time(), false); |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @param bool $action |
|