MediaWiki
1.34.0
PasswordDef.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Wikimedia\ParamValidator\TypeDef
;
4
5
use
Wikimedia\ParamValidator\ParamValidator
;
6
16
class
PasswordDef
extends
StringDef
{
17
18
public
function
normalizeSettings
( array $settings ) {
19
$settings[
ParamValidator::PARAM_SENSITIVE
] =
true
;
20
return
parent::normalizeSettings( $settings );
21
}
22
23
}
Wikimedia\ParamValidator\ParamValidator\PARAM_SENSITIVE
const PARAM_SENSITIVE
(bool) Indicate that the parameter's value should not be logged.
Definition:
ParamValidator.php:152
Wikimedia\ParamValidator\TypeDef\StringDef
Type definition for string types.
Definition:
StringDef.php:24
Wikimedia\ParamValidator\TypeDef\PasswordDef\normalizeSettings
normalizeSettings(array $settings)
Normalize a settings array.
Definition:
PasswordDef.php:18
Wikimedia\ParamValidator\TypeDef\PasswordDef
Type definition for "password" types.
Definition:
PasswordDef.php:16
Wikimedia\ParamValidator\TypeDef
Definition:
BooleanDef.php:3
Wikimedia\ParamValidator\ParamValidator
Service for formatting and validating API parameters.
Definition:
ParamValidator.php:38
includes
libs
ParamValidator
TypeDef
PasswordDef.php
Generated on Thu Dec 19 2019 14:54:30 for MediaWiki by
1.8.16