1 | <?php |
||
25 | class Url implements UrlRenderer |
||
26 | { |
||
27 | /** |
||
28 | * private int The type of the URIs |
||
29 | */ |
||
30 | private $type; |
||
31 | |||
32 | /** |
||
33 | * Creates instance |
||
34 | * |
||
35 | * @param int $type The type of the URIs |
||
36 | */ |
||
37 | 5 | public function __construct($type) |
|
41 | |||
42 | /** |
||
43 | * Gets the URI based on the type |
||
44 | * |
||
45 | * @param string $identifier The identifier used for which to get the URI |
||
46 | * |
||
47 | * @return string The URI |
||
48 | */ |
||
49 | 4 | public function get($identifier) |
|
57 | |||
58 | /** |
||
59 | * Gets the URI based on the rewrite scheme |
||
60 | * |
||
61 | * @param string $identifier The identifier used for which to get the URI |
||
62 | * |
||
63 | * @return string The URI |
||
64 | */ |
||
65 | 2 | private function getRewriteUrl($identifier) |
|
73 | |||
74 | /** |
||
75 | * Gets the URI based on query strings |
||
76 | * |
||
77 | * @param string $identifier The identifier used for which to get the URI |
||
78 | * |
||
79 | * @return string The URI |
||
80 | */ |
||
81 | 2 | private function getQueryStringUrl($identifier) |
|
89 | } |
||
90 |