1 | <?php |
||
10 | class HashmapFilter |
||
11 | { |
||
12 | /** |
||
13 | * Filter a value through a hash map |
||
14 | * |
||
15 | * @param string $attrValue Original value |
||
16 | * @param array $map Associative array |
||
17 | * @param bool $strict Whether this map is strict (values with no match are invalid) |
||
18 | * @return mixed Filtered value, or FALSE if invalid |
||
19 | */ |
||
20 | 4 | public static function filter($attrValue, array $map, $strict) |
|
29 | } |