12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- defined('STATUSNET') || die();
- require_once INSTALLDIR . '/lib/util/form.php';
- class PluginEnableForm extends Form
- {
-
- public $plugin = null;
-
- public function __construct($out = null, $plugin = null)
- {
- parent::__construct($out);
- $this->plugin = $plugin;
- }
-
- public function id()
- {
- return 'plugin-enable-' . $this->plugin;
- }
-
- public function formClass()
- {
- return 'form_plugin_enable';
- }
-
- public function action()
- {
- return common_local_url(
- 'pluginenable',
- ['plugin' => $this->plugin]
- );
- }
-
- public function formActions()
- {
-
- $this->out->submit('submit', _m('plugin', 'Enable'));
- }
- }
|