1 | <?php |
||
20 | class T3Cli |
||
21 | extends \Aimeos\MW\View\Helper\Base |
||
22 | implements \Aimeos\MW\View\Helper\Url\Iface |
||
23 | { |
||
24 | private $baseurl; |
||
25 | private $prefix; |
||
26 | private $fixed; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Initializes the URL view helper. |
||
31 | * |
||
32 | * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers |
||
33 | * @param string $baseurl Base URL, e.g. http://localhost/index.php |
||
34 | * @param string $prefix Argument prefix, e.g. "ai" for "ai[key]=value" |
||
35 | * @param array $fixed Fixed parameters that should be added to each URL |
||
36 | */ |
||
37 | public function __construct( \Aimeos\MW\View\Iface $view, $baseurl, $prefix, array $fixed ) |
||
45 | |||
46 | |||
47 | /** |
||
48 | * Returns the URL assembled from the given arguments. |
||
49 | * |
||
50 | * @param string|null $target Route or page which should be the target of the link (if any) |
||
51 | * @param string|null $controller Name of the controller which should be part of the link (if any) |
||
52 | * @param string|null $action Name of the action which should be part of the link (if any) |
||
53 | * @param array $params Associative list of parameters that should be part of the URL |
||
54 | * @param array $trailing Trailing URL parts that are not relevant to identify the resource (for pretty URLs) |
||
55 | * @param array $config Additional configuration parameter per URL |
||
56 | * @return string Complete URL that can be used in the template |
||
57 | */ |
||
58 | public function transform( $target = null, $controller = null, $action = null, array $params = array(), array $trailing = array(), array $config = array() ) |
||
81 | |||
82 | |||
83 | /** |
||
84 | * Returns the sanitized configuration values. |
||
85 | * |
||
86 | * @param array $config Associative list of key/value pairs |
||
87 | * @return array Associative list of sanitized key/value pairs |
||
88 | */ |
||
89 | protected function getValues( array $config ) |
||
115 | } |
||
116 |