1 | <?php |
||
18 | class url |
||
19 | { |
||
20 | /** |
||
21 | * Returns a new URL object with easy access to the components (scheme, host, port, path, etc) and |
||
22 | * the query parameters in the url. It parses these according to PHP's own rules. If the URL is |
||
23 | * incompatible with PHP, use \arc\url\safeUrl() instead. |
||
24 | * @param string $url |
||
25 | * @return \arc\url\Url The parsed url object |
||
26 | */ |
||
27 | 42 | public static function url($url) |
|
31 | |||
32 | /** |
||
33 | * Returns a new URL object with easy access to the components (scheme, host, port, path, etc) |
||
34 | * It will parse the query string without PHP centric assumptions. You can have the same parameter |
||
35 | * present multiple times and it will automatically turn into an array. You can use parameters without |
||
36 | * a value, these will become array values with a numbered index. |
||
37 | * @param string $url |
||
38 | * @return \arc\url\Url The url object |
||
39 | */ |
||
40 | 16 | public static function safeUrl($url) |
|
44 | } |
||
45 |