Last change
on this file was 888, checked in by chronos, 2 years ago |
- Modified: Updated Common package to latest version.
- Modified: Fixes related to PHP 8.x.
|
File size:
873 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class ModuleAoWoW extends Module
|
---|
4 | {
|
---|
5 | function __construct(System $System)
|
---|
6 | {
|
---|
7 | parent::__construct($System);
|
---|
8 | $this->Name = 'AoWoW';
|
---|
9 | $this->Version = '1.0';
|
---|
10 | $this->Creator = 'Chronos';
|
---|
11 | $this->License = 'GNU/GPL';
|
---|
12 | $this->Description = 'wowhead-like web search interface';
|
---|
13 | $this->Dependencies = array();
|
---|
14 | }
|
---|
15 |
|
---|
16 | function DoStart(): void
|
---|
17 | {
|
---|
18 | Core::Cast($this->System)->RegisterMenuItem(array(
|
---|
19 | 'Title' => 'AoWoW',
|
---|
20 | 'Hint' => 'Vyhledávací databáze podobná WoWHead s překlady',
|
---|
21 | 'Link' => $this->System->Link('/aowow/'),
|
---|
22 | 'Permission' => LICENCE_ANONYMOUS,
|
---|
23 | 'Icon' => '',
|
---|
24 | ));
|
---|
25 | if (array_key_exists('Search', $this->System->ModuleManager->Modules))
|
---|
26 | $this->System->ModuleManager->Modules['Search']->RegisterSearch('aowow',
|
---|
27 | T('AoWoW'), array(), '', $this->System->Link('/aowow/?search='));
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.