1 | <?php |
||
16 | class YouTubePlugin extends BasePlugin |
||
17 | { |
||
18 | /** |
||
19 | * Get plugin name. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getName() |
||
27 | |||
28 | /** |
||
29 | * Get plugin version. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getVersion() |
||
37 | |||
38 | /** |
||
39 | * Get plugin developer. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getDeveloper() |
||
47 | |||
48 | /** |
||
49 | * Get plugin developer url. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getDeveloperUrl() |
||
57 | |||
58 | /** |
||
59 | * Add user to task manager table. |
||
60 | * |
||
61 | * @param array $attributes |
||
62 | * @param string|null $source |
||
63 | */ |
||
64 | public function modifyTaskManagerTableAttributes(array &$attributes, $source) |
||
70 | |||
71 | /** |
||
72 | * Get task manager table attribute html. |
||
73 | * |
||
74 | * @param BaseElementModel $element |
||
75 | * @param string $attribute |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getTaskManagerTableAttributeHtml(BaseElementModel $element, $attribute) |
||
93 | |||
94 | /** |
||
95 | * Define plugin settings. |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function defineSettings() |
||
105 | |||
106 | /** |
||
107 | * Get settings html. |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getSettingsHtml() |
||
150 | |||
151 | /** |
||
152 | * Remove tokens on uninstall. |
||
153 | */ |
||
154 | public function onBeforeUninstall() |
||
160 | |||
161 | /** |
||
162 | * Initialize plugin. |
||
163 | */ |
||
164 | public function init() |
||
172 | } |
||
173 |