12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- if (!defined('STATUSNET')) {
- exit(1);
- }
- class GrantRoleForm extends ProfileActionForm
- {
- function __construct($role, $label, $writer, $profile, $r2args)
- {
- parent::__construct($writer, $profile, $r2args);
- $this->role = $role;
- $this->label = $label;
- }
-
- function target()
- {
- return 'grantrole';
- }
-
- function title()
- {
- return $this->label;
- }
- function formData()
- {
- parent::formData();
- $this->out->hidden('role', $this->role);
- }
-
- function description()
- {
-
- return sprintf(_('Grant this user the "%s" role'), $this->label);
- }
- }
|