MediaWiki
master
IntvalFilter.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Preferences
;
22
23
class
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
}
MediaWiki\Preferences\IntvalFilter
Definition
IntvalFilter.php:23
MediaWiki\Preferences\IntvalFilter\filterFromForm
filterFromForm( $value)
mixed
Definition
IntvalFilter.php:35
MediaWiki\Preferences\IntvalFilter\filterForForm
filterForForm( $value)
mixed
Definition
IntvalFilter.php:28
MediaWiki\Preferences\Filter
Base interface for user preference filters that work as a middleware between storage and interface.
Definition
Filter.php:27
MediaWiki\Preferences
Definition
DefaultPreferencesFactory.php:21
includes
preferences
IntvalFilter.php
Generated on Thu Sep 12 2024 02:24:37 for MediaWiki by
1.10.0