]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/YammerImport/lib/yammerauthinitform.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / YammerImport / lib / yammerauthinitform.php
1 <?php
2
3 class YammerAuthInitForm extends Form
4 {
5     /**
6      * ID of the form
7      *
8      * @return int ID of the form
9      */
10
11     function id()
12     {
13         return 'yammer-auth-init-form';
14     }
15
16
17     /**
18      * class of the form
19      *
20      * @return string of the form class
21      */
22
23     function formClass()
24     {
25         return 'form_yammer_auth_init form_settings';
26     }
27
28
29     /**
30      * Action of the form
31      *
32      * @return string URL of the action
33      */
34
35     function action()
36     {
37         return common_local_url('yammeradminpanel');
38     }
39
40
41     /**
42      * Legend of the Form
43      *
44      * @return void
45      */
46     function formLegend()
47     {
48         // TRANS: Form legend.
49         $this->out->element('legend', null, _m('Connect to Yammer'));
50     }
51
52     /**
53      * Data elements of the form
54      *
55      * @return void
56      */
57
58     function formData()
59     {
60         $this->out->hidden('subaction', 'authinit');
61
62         $this->out->elementStart('fieldset');
63         // TRANS: Button text for starting Yammer authentication.
64         $this->out->submit('submit', _m('BUTTON','Start authentication'),
65                            // TRANS: Button title for starting Yammer authentication.
66                            'submit', null, _m('Request authorization to connect to a Yammer account.'));
67         // TRANS: Button text for starting changing a Yammer API key.
68         $this->out->submit('change-apikey', _m('BUTTON','Change API key'));
69         $this->out->elementEnd('fieldset');
70     }
71
72     /**
73      * Action elements
74      *
75      * @return void
76      */
77
78     function formActions()
79     {
80     }
81 }