1 | <?php |
||
39 | class HubSpot extends Plugin |
||
40 | { |
||
41 | use LoggerTrait; |
||
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | protected static function getLogFileName(): string |
||
50 | |||
51 | 3 | /** |
|
52 | * @inheritdoc |
||
53 | 3 | */ |
|
54 | public function init() |
||
120 | |||
121 | 21 | /** |
|
122 | * @inheritdoc |
||
123 | 21 | */ |
|
124 | public function getCpNavItem() |
||
138 | |||
139 | /** |
||
140 | * @inheritdoc |
||
141 | * @return SettingsModel |
||
142 | */ |
||
143 | public function createSettingsModel() |
||
147 | |||
148 | /** |
||
149 | * @inheritdoc |
||
150 | * @throws \Twig_Error_Loader |
||
151 | * @throws \yii\base\Exception |
||
152 | */ |
||
153 | public function settingsHtml() |
||
159 | |||
160 | /******************************************* |
||
161 | * SERVICES |
||
162 | *******************************************/ |
||
163 | |||
164 | /** |
||
165 | 3 | * @noinspection PhpDocMissingThrowsInspection |
|
166 | * @return services\Cache |
||
167 | */ |
||
168 | public function getCache(): services\Cache |
||
174 | |||
175 | /** |
||
176 | 3 | * @noinspection PhpDocMissingThrowsInspection |
|
177 | * @return services\Connections |
||
178 | */ |
||
179 | public function getConnections(): services\Connections |
||
185 | |||
186 | /** |
||
187 | 3 | * @noinspection PhpDocMissingThrowsInspection |
|
188 | * @return Logger |
||
189 | */ |
||
190 | public function getPsrLogger(): Logger |
||
196 | |||
197 | |||
198 | 3 | /******************************************* |
|
199 | * TRANSLATE |
||
200 | *******************************************/ |
||
201 | |||
202 | 3 | /** |
|
203 | * Translates a message to the specified language. |
||
204 | * |
||
205 | * This is a shortcut method of [[\Craft::t()]]. |
||
206 | * * |
||
207 | * @param string $message the message to be translated. |
||
208 | * @param array $params the parameters that will be used to replace the corresponding placeholders in the message. |
||
209 | 3 | * @param string $language the language code (e.g. `en-US`, `en`). If this is null, the current |
|
210 | * [[\yii\base\Application::language|application language]] will be used. |
||
211 | * @return string the translated message. |
||
212 | */ |
||
213 | 3 | public static function t($message, $params = [], $language = null) |
|
217 | |||
218 | |||
219 | /******************************************* |
||
220 | * MODULES |
||
221 | *******************************************/ |
||
222 | |||
223 | /** |
||
224 | * @noinspection PhpDocMissingThrowsInspection |
||
225 | 3 | * @return cp\Cp |
|
226 | */ |
||
227 | public function getCp(): cp\Cp |
||
233 | |||
234 | |||
235 | /******************************************* |
||
236 | * EVENTS |
||
237 | *******************************************/ |
||
238 | |||
239 | /** |
||
240 | * @param RegisterUrlRulesEvent $event |
||
241 | */ |
||
242 | public static function onRegisterCpUrlRules(RegisterUrlRulesEvent $event) |
||
262 | } |
||
263 |