MediaWiki fundraising/REL1_35
|
Public Member Functions | |
__construct () | |
Get these objects using "new" with no parameters. | |
getForm () | |
Required method for returning the full HTML for a form. | |
getResources () | |
getStyleModules () | |
All the things that need to be loaded in the head with link tags for styling server-rendered html. | |
setGateway (GatewayType $gateway) | |
setGatewayPage (GatewayPage $gatewayPage) | |
Protected Member Functions | |
getNoCacheAction () | |
Determine the 'no cache' form action. | |
sanitizePath ( $absolutePath) | |
Given an absolute file path, returns path relative to extension base dir. | |
Protected Attributes | |
GatewayAdapter | $gateway |
GatewayPage | $gatewayPage |
string | $scriptPath |
Gateway_Form::__construct | ( | ) |
|
abstract |
Required method for returning the full HTML for a form.
Code invoking forms will expect this method to be set. Requiring only this method allows for flexible form generation inside of child classes while also providing a unified method for returning the full HTML for a form.
Reimplemented in Gateway_Form_Mustache, and MustacheErrorForm.
|
protected |
Determine the 'no cache' form action.
This mostly exists to ensure that the form does not try to use AJAX to overwrite certain hidden form params that are normally overwritten for cached versions of the form.
Definition at line 56 of file Form.php.
References $title, wfAppendQuery(), wfCgiToArray(), and wfParseUrl().
Referenced by Gateway_Form_Mustache\getData().
Gateway_Form::getResources | ( | ) |
Reimplemented in Gateway_Form_Mustache, and MustacheErrorForm.
Gateway_Form::getStyleModules | ( | ) |
All the things that need to be loaded in the head with link tags for styling server-rendered html.
Reimplemented in Gateway_Form_Mustache, and MustacheErrorForm.
|
protected |
Given an absolute file path, returns path relative to extension base dir.
string | $absolutePath |
Definition at line 111 of file Form.php.
Referenced by Gateway_Form_Mustache\getData().
Gateway_Form::setGateway | ( | GatewayType | $gateway | ) |
Reimplemented in Gateway_Form_Mustache.
Definition at line 39 of file Form.php.
References $gateway.
Gateway_Form::setGatewayPage | ( | GatewayPage | $gatewayPage | ) |
Definition at line 43 of file Form.php.
References $gatewayPage, and SpecialPage\getContext().
|
protected |
Definition at line 8 of file Form.php.
Referenced by setGateway(), and Gateway_Form_Mustache\setGateway().
|
protected |
Definition at line 13 of file Form.php.
Referenced by setGatewayPage().
|
protected |
Definition at line 20 of file Form.php.
Referenced by Gateway_Form_Mustache\getData().