1 | <?php |
||
17 | class Mail extends Module |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | */ |
||
23 | public function __construct() |
||
27 | |||
28 | /** |
||
29 | * Implements hook "library.list" |
||
30 | * @param array $libraries |
||
31 | */ |
||
32 | public function hookLibraryList(array &$libraries) |
||
51 | |||
52 | /** |
||
53 | * Implements hook "route.list" |
||
54 | * @param array $routes |
||
55 | */ |
||
56 | public function hookRouteList(array &$routes) |
||
65 | |||
66 | /** |
||
67 | * Implements hook "mail.send" |
||
68 | * @param array $to |
||
69 | * @param string $subject |
||
70 | * @param string $message |
||
71 | * @param array $options |
||
72 | * @param mixed $result |
||
73 | */ |
||
74 | public function hookMailSend($to, $subject, $message, $options, &$result) |
||
88 | |||
89 | /** |
||
90 | * Returns PHPMailer instance |
||
91 | * @return \PHPMailer |
||
92 | * @throws \InvalidArgumentException |
||
93 | */ |
||
94 | protected function getMailerInstance() |
||
104 | |||
105 | /** |
||
106 | * Send an E-mail |
||
107 | * @param array $to |
||
108 | * @param string $subject |
||
109 | * @param string $message |
||
110 | * @param array $options |
||
111 | * @param array $settings |
||
112 | * @return boolean|string |
||
113 | */ |
||
114 | public function send($to, $subject, $message, $options, $settings) |
||
158 | |||
159 | /** |
||
160 | * Implements hook "module.enable.after" |
||
161 | */ |
||
162 | public function hookModuleEnableAfter() |
||
166 | |||
167 | /** |
||
168 | * Implements hook "module.disable.after" |
||
169 | */ |
||
170 | public function hookModuleDisableAfter() |
||
174 | |||
175 | /** |
||
176 | * Implements hook "module.install.after" |
||
177 | */ |
||
178 | public function hookModuleInstallAfter() |
||
182 | |||
183 | /** |
||
184 | * Implements hook "module.uninstall.after" |
||
185 | */ |
||
186 | public function hookModuleUninstallAfter() |
||
190 | |||
191 | } |
||
192 |