PMA\libraries\config\Validator::validateUpperBound PHP Метод

validateUpperBound() публичный статический Метод

Validates upper bound for numeric inputs
public static validateUpperBound ( string $path, array $values, integer $max_value ) : array
$path string path to config
$values array config values
$max_value integer maximal allowed value
Результат array
    public static function validateUpperBound($path, $values, $max_value)
    {
        $result = $values[$path] <= $max_value;
        return array($path => $result ? '' : sprintf(__('Value must be equal or lower than %s!'), $max_value));
    }