27 public function validate( $name, $value, array $settings, array $options ) {
28 if ( $value ===
'max' ) {
29 if ( $options[
'parse-limit'] ??
true ) {
30 $value = $this->callbacks->useHighLimits( $options )
37 return parent::validate( $name, $value, $settings, $options );
48 return parent::normalizeSettings( $settings );
51 public function checkSettings(
string $name, $settings, array $options, array $ret ) : array {
52 $ret = parent::
checkSettings( $name, $settings, $options, $ret );
58 'PARAM_ISMULTI cannot be used for limit-type parameters';
61 if ( ( $settings[self::PARAM_MIN] ?? 0 ) < 0 ) {
62 $ret[
'issues'][] =
'PARAM_MIN must be greater than or equal to 0';
64 if ( !isset( $settings[self::PARAM_MAX] ) ) {
65 $ret[
'issues'][] =
'PARAM_MAX must be set';
71 public function getHelpInfo( $name, array $settings, array $options ) {
72 $info = parent::getHelpInfo( $name, $settings, $options );