[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Page protection Copyright © 2005 Brion Vibber <[email protected]> https://www.mediawiki.org/
File Size: | 628 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
ProtectionForm:: (10 methods):
__construct()
loadData()
getExpiry()
execute()
show()
save()
buildForm()
buildSelector()
getOptionLabel()
showLogExtract()
Class: ProtectionForm - X-Ref
Handles the page protection UI and backend__construct( Article $article ) X-Ref |
loadData() X-Ref |
Loads the current state of protection into the object. |
getExpiry( $action ) X-Ref |
Get the expiry time for a given action, by combining the relevant inputs. param: string $action return: string 14-char timestamp or "infinity", or false if the input was invalid |
execute() X-Ref |
Main entry point for action=protect and action=unprotect |
show( $err = null ) X-Ref |
Show the input form with optional error message param: string $err Error message or null if there's no error |
save() X-Ref |
Save submitted protection form return: bool Success |
buildForm() X-Ref |
Build the input form return: string HTML form |
buildSelector( $action, $selected ) X-Ref |
Build protection level selector param: string $action Action to protect param: string $selected Current protection level return: string HTML fragment |
getOptionLabel( $permission ) X-Ref |
Prepare the label for a protection selector option param: string $permission Permission required return: string |
showLogExtract( &$out ) X-Ref |
Show protection long extracts for this page param: OutputPage $out |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |