MediaWiki master
IntvalFilter.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Preferences;
22
23class IntvalFilter implements Filter {
24
28 public function filterForForm( $value ) {
29 return $value;
30 }
31
35 public function filterFromForm( $value ) {
36 return intval( $value );
37 }
38}
Base interface for user preference filters that work as a middleware between storage and interface.
Definition Filter.php:27