$cache
$cache :
getProductLink(mixed $product, string $alias = null, string $category = null, string $ean13 = null, integer $id_lang = null, integer $id_shop = null, integer $ipa, $force_routes = false, $relative_protocol = false) : string
Create a link to a product
mixed | $product | Product object (can be an ID product, but deprecated) |
string | $alias | |
string | $category | |
string | $ean13 | |
integer | $id_lang | |
integer | $id_shop | (since 1.5.0) ID shop need to be used when we generate a product link for a product in a cart |
integer | $ipa | ID product attribute |
$force_routes | ||
$relative_protocol |
getCategoryLink(mixed $category, string $alias = null, integer $id_lang = null, string $selected_filters = null, $id_shop = null, $relative_protocol = false) : string
Create a link to a category
mixed | $category | Category object (can be an ID category, but deprecated) |
string | $alias | |
integer | $id_lang | |
string | $selected_filters | Url parameter to autocheck filters of the module blocklayered |
$id_shop | ||
$relative_protocol |
getCMSLink(mixed $cms, string $alias = null, boolean $ssl = null, integer $id_lang = null, $id_shop = null, $relative_protocol = false) : string
Create a link to a CMS page
mixed | $cms | CMS object (can be an ID CMS, but deprecated) |
string | $alias | |
boolean | $ssl | |
integer | $id_lang | |
$id_shop | ||
$relative_protocol |
getSupplierLink(mixed $supplier, string $alias = null, integer $id_lang = null, $id_shop = null, $relative_protocol = false) : string
Create a link to a supplier
mixed | $supplier | Supplier object (can be an ID supplier, but deprecated) |
string | $alias | |
integer | $id_lang | |
$id_shop | ||
$relative_protocol |
getManufacturerLink(mixed $manufacturer, string $alias = null, integer $id_lang = null, $id_shop = null, $relative_protocol = false) : string
Create a link to a manufacturer
mixed | $manufacturer | Manufacturer object (can be an ID supplier, but deprecated) |
string | $alias | |
integer | $id_lang | |
$id_shop | ||
$relative_protocol |
getModuleLink(string $module, $controller = 'default', array $params = array(), $ssl = null, integer $id_lang = null, $id_shop = null, $relative_protocol = false) : string
Create a link to a module
string | $module | Module name |
$controller | ||
array | $params | |
$ssl | ||
integer | $id_lang | |
$id_shop | ||
$relative_protocol |
getImageLink(string $name, string $ids, string $type = null)
Returns a link to a product image for display Note: the new image filesystem stores product images in subdirectories of img/p/
string | $name | rewrite link of the image |
string | $ids | id part of the image filename - can be "id_product-id_image" (legacy support, recommended) or "id_image" (new) |
string | $type |
getPageLink(string $controller, boolean $ssl = null, integer $id_lang = null, string|array $request = null, boolean $request_url_encode = false, $id_shop = null, $relative_protocol = false) : string
Create a simple link
string | $controller | |
boolean | $ssl | |
integer | $id_lang | |
string|array | $request | |
boolean | $request_url_encode | Use URL encode |
$id_shop | ||
$relative_protocol |
Page link
getPaginationLink(string $type, integer $id_object, boolean $nb = false, boolean $sort = false, boolean $pagination = false, boolean $array = false)
Get pagination link
string | $type | Controller name |
integer | $id_object | |
boolean | $nb | Show nb element per page attribute |
boolean | $sort | Show sort attribute |
boolean | $pagination | Show page number attribute |
boolean | $array | If false return an url, if true return an array |