1 | <?php |
||
13 | class Url extends \Prefab |
||
14 | { |
||
15 | /** |
||
16 | * Build and return a URL |
||
17 | * converting 2nd argument $params to querystring if array |
||
18 | * |
||
19 | * @param string $url name of the url alias |
||
20 | * @param mixed $params url params as string or array |
||
21 | * @param boolean $https force it to be https? |
||
22 | * @return string |
||
23 | */ |
||
24 | public static function external(string $url, $params = null, bool $https = true): string |
||
48 | |||
49 | /** |
||
50 | * Return an f3 URL route by its alias or the given path |
||
51 | * converting 2nd argument $params to querystring if array |
||
52 | * |
||
53 | * @param string $url name of the url alias if beginning with @ or relative |
||
54 | * |
||
55 | * @param mixed $params url params as string or array |
||
56 | * @param boolean $full default true |
||
57 | * @return string |
||
58 | */ |
||
59 | public static function internal(string $url, $params = null, bool $full = true): string |
||
92 | |||
93 | } |
||
94 |