@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class AccountsHandler |
|
37 | */ |
|
38 | class AccountsHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_accounts', Accounts::class, 'accounts_id', 'accounts_name'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class Bmh |
|
37 | */ |
|
38 | class BmhHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_bmh', Bmh::class, 'bmh_id', 'bmh_rule_no'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class CatHandler |
|
37 | */ |
|
38 | class CatHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_cat', Cat::class, 'cat_id', 'cat_name'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class CatsubscrHandler |
|
37 | */ |
|
38 | class CatsubscrHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_catsubscr', Catsubscr::class, 'catsubscr_id', 'catsubscr_catid'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class ImportHandler |
|
37 | */ |
|
38 | class ImportHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_import', Import::class, 'import_id', 'import_email'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class LetterHandler |
|
37 | */ |
|
38 | class LetterHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_letter', Letter::class, 'letter_id', 'letter_title'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class Mailinglist |
|
37 | */ |
|
38 | class MailinglistHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_mailinglist', Mailinglist::class, 'mailinglist_id', 'mailinglist_email'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class ProtocolHandler |
|
37 | */ |
|
38 | class ProtocolHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_protocol', Protocol::class, 'protocol_id', 'protocol_letter_id'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |
@@ 34-56 (lines=23) @@ | ||
31 | /** |
|
32 | * Class TaskHandler |
|
33 | */ |
|
34 | class TaskHandler extends \XoopsPersistableObjectHandler |
|
35 | { |
|
36 | /** |
|
37 | * @var Helper |
|
38 | * @access public |
|
39 | */ |
|
40 | public $helper = null; |
|
41 | ||
42 | /** |
|
43 | * @param null|\XoopsDatabase $db |
|
44 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
45 | */ |
|
46 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
47 | { |
|
48 | parent::__construct($db, 'xnewsletter_task', Task::class, 'task_id', 'task_letter_id'); |
|
49 | /** @var Helper $this->helper */ |
|
50 | if (null === $helper) { |
|
51 | $this->helper = Helper::getInstance(); |
|
52 | } else { |
|
53 | $this->helper = $helper; |
|
54 | } |
|
55 | } |
|
56 | } |
|
57 |
@@ 38-60 (lines=23) @@ | ||
35 | /** |
|
36 | * Class TemplateHandler |
|
37 | */ |
|
38 | class TemplateHandler extends \XoopsPersistableObjectHandler |
|
39 | { |
|
40 | /** |
|
41 | * @var Helper |
|
42 | * @access public |
|
43 | */ |
|
44 | public $helper = null; |
|
45 | ||
46 | /** |
|
47 | * @param null|\XoopsDatabase $db |
|
48 | * @param \XoopsModules\Xnewsletter\Helper|null $helper |
|
49 | */ |
|
50 | public function __construct(\XoopsDatabase $db = null, Helper $helper = null) |
|
51 | { |
|
52 | parent::__construct($db, 'xnewsletter_template', Template::class, 'template_id', 'template_title'); |
|
53 | /** @var Helper $this->helper */ |
|
54 | if (null === $helper) { |
|
55 | $this->helper = Helper::getInstance(); |
|
56 | } else { |
|
57 | $this->helper = $helper; |
|
58 | } |
|
59 | } |
|
60 | } |
|
61 |