Total Complexity | 1 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class HTML_QuickForm_Rule_InternalUrl extends HTML_QuickForm_Rule |
||
11 | { |
||
12 | /** |
||
13 | * Validates internal url. |
||
14 | * We cheat a little by using the adding the domain as prefix to use the domain validation process of filter_var(). |
||
15 | * |
||
16 | * @param string $url |
||
17 | * |
||
18 | * @return bool returns true if valid, false otherwise |
||
19 | */ |
||
20 | public function validate($url, $options) |
||
25 |