1 | <?php |
||
10 | class MapFilter |
||
11 | { |
||
12 | /** |
||
13 | * Filter a mapped value |
||
14 | * |
||
15 | * NOTE: if there's no match, the original value is returned |
||
16 | * |
||
17 | * @param string $attrValue Original value |
||
18 | * @param array $map List in the form [[<regexp>, <value>]] |
||
19 | * @return mixed Filtered value, or FALSE if invalid |
||
20 | */ |
||
21 | 3 | public static function filter($attrValue, array $map) |
|
33 | } |