| 1 | <?php |
||
| 11 | final class Url |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Filter an url |
||
| 15 | * |
||
| 16 | * Filters value as URL (according to » http://www.faqs.org/rfcs/rfc2396) |
||
| 17 | * |
||
| 18 | * The return value is the url, as expected by the \DominionEnterprises\Filterer class. |
||
| 19 | * By default, nulls are not allowed. |
||
| 20 | * |
||
| 21 | * @param mixed $value The value to filter. |
||
| 22 | * @param bool $allowNull True to allow nulls through, and false (default) if nulls should not be allowed. |
||
| 23 | * |
||
| 24 | * @return string The passed in $value. |
||
| 25 | * |
||
| 26 | * @throws \Exception if the value did not pass validation. |
||
| 27 | * @throws \InvalidArgumentException if one of the parameters was not correctly typed. |
||
| 28 | */ |
||
| 29 | public static function filter($value, $allowNull = false) |
||
| 50 | } |
||
| 51 |