Commit | Line | Data |
---|---|---|
0b4cca74 AE |
1 | <?php |
2 | namespace wcf\acp\form; | |
cc1801c3 AE |
3 | use wcf\data\contact\option\ContactOption; |
4 | use wcf\data\contact\option\ContactOptionAction; | |
5 | use wcf\data\contact\option\ContactOptionEditor; | |
0b4cca74 AE |
6 | |
7 | /** | |
8 | * Shows the contact option add form. | |
9 | * | |
10 | * @author Alexander Ebert | |
11 | * @copyright 2001-2017 WoltLab GmbH | |
12 | * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | |
13 | * @package WoltLabSuite\Core\Acp\Form | |
14 | * @since 3.1 | |
15 | */ | |
16 | class ContactOptionAddForm extends AbstractCustomOptionForm { | |
17 | /** | |
18 | * @inheritDoc | |
19 | */ | |
20 | public $action = 'add'; | |
21 | ||
22 | /** | |
23 | * @inheritDoc | |
24 | */ | |
25 | public $activeMenuItem = 'wcf.acp.menu.link.contact.settings'; | |
26 | ||
27 | /** | |
28 | * @inheritDoc | |
29 | */ | |
30 | public $neededModules = ['MODULE_CONTACT_FORM']; | |
31 | ||
32 | /** | |
33 | * @inheritDoc | |
34 | */ | |
35 | public $neededPermissions = ['admin.contact.canManageContactForm']; | |
36 | ||
37 | /** | |
38 | * action class name | |
39 | * @var string | |
40 | */ | |
41 | public $actionClass = ContactOptionAction::class; | |
42 | ||
43 | /** | |
44 | * base class name | |
45 | * @var string | |
46 | */ | |
47 | public $baseClass = ContactOption::class; | |
48 | ||
49 | /** | |
50 | * editor class name | |
51 | * @var string | |
52 | */ | |
53 | public $editorClass = ContactOptionEditor::class; | |
54 | ||
55 | /** | |
56 | * @inheritDoc | |
57 | */ | |
58 | public function readParameters() { | |
59 | parent::readParameters(); | |
60 | ||
c308c947 AE |
61 | $this->getI18nValue('optionTitle')->setLanguageItem('wcf.contact.option', 'wcf.contact', 'com.woltlab.wcf'); |
62 | $this->getI18nValue('optionDescription')->setLanguageItem('wcf.contact.optionDescription', 'wcf.contact', 'com.woltlab.wcf'); | |
0b4cca74 AE |
63 | } |
64 | } |