- Class name: LinkCore
- Source: classes/Link.php line 27
- __construct
- addSortDetails
- getAdminLink
- getCMSCategoryLink
- getCMSLink
- getCatImageLink
- getCategoryLink
- getImageLink
- getLangLink
- getLanguageLink
- getManufacturerLink
- getMediaLink
- getModuleLink
- getPageLink
- getPaginationLink
- getProductDeletePictureLink
- getProductLink
- getSupplierLink
- goPage
protected boolean $allow
- Visibility: protected
- Source: classes/Link.php line 30.
public mixed $cache = array('page' => array())
- Visibility: public
- This property is static.
- Source: classes/Link.php line 32.
protected mixed $category_disable_rewrite = null
- Visibility: protected
- This property is static.
- Source: classes/Link.php line 39.
public mixed $protocol_content
- Visibility: public
- Source: classes/Link.php line 35.
public mixed $protocol_link
- Visibility: public
- Source: classes/Link.php line 34.
protected mixed $ssl_enable
- Visibility: protected
- Source: classes/Link.php line 37.
protected mixed $url
- Visibility: protected
- Source: classes/Link.php line 31.
mixed LinkCore::__construct($protocol_link, $protocol_content)
Constructor (initialization only)
- Visibility: public
- Source: classes/Link.php line 44
- $protocol_link mixed
- $protocol_content mixed
mixed LinkCore::addSortDetails($url, $orderby, $orderway)
- Visibility: public
- Source: classes/Link.php line 559
- $url mixed
- $orderby mixed
- $orderway mixed
\controller LinkCore::getAdminLink(string $controller, boolean $with_token)
Use controller name to create a link
- Visibility: public
- Source: classes/Link.php line 345
- $controller string
- $with_token boolean - include or not the token in the url
string LinkCore::getCMSCategoryLink(mixed $category, string $alias, integer $id_lang)
Create a link to a CMS category
- Visibility: public
- Source: classes/Link.php line 198
- $category mixed - CMSCategory object (can be an ID category, but deprecated)
- $alias string
- $id_lang integer
string LinkCore::getCMSLink(mixed $cms, string $alias, boolean $ssl, integer $id_lang)
Create a link to a CMS page
- Visibility: public
- Source: classes/Link.php line 227
- $cms mixed - CMS object (can be an ID CMS, but deprecated)
- $alias string
- $ssl boolean
- $id_lang integer
mixed LinkCore::getCatImageLink($name, $id_category, $type)
- Visibility: public
- Source: classes/Link.php line 429
- $name mixed
- $id_category mixed
- $type mixed
string LinkCore::getCategoryLink(mixed $category, string $alias, integer $id_lang, string $selected_filters)
Create a link to a category
- Visibility: public
- Source: classes/Link.php line 160
- $category mixed - Category object (can be an ID category, but deprecated)
- $alias string
- $id_lang integer
- $selected_filters string - Url parameter to autocheck filters of the module blocklayered
mixed LinkCore::getImageLink(string $name, string $ids, string $type)
Returns a link to a product image for display Note: the new image filesystem stores product images in subdirectories of img/p/
- Visibility: public
- Source: classes/Link.php line 361
- $name string - rewrite link of the image
- $ids string - id part of the image filename - can be "id_product-id_image" (legacy support, recommended) or "id_image" (new)
- $type string
mixed LinkCore::getLangLink($id_lang, \Context $context)
- Visibility: protected
- Source: classes/Link.php line 564
- $id_lang mixed
- $context Context
string LinkCore::getLanguageLink(integer $id_lang, \Context $context)
Create link after language change, for the change language block
- Visibility: public
- Source: classes/Link.php line 441
- $id_lang integer - Language ID
- $context Context
string LinkCore::getManufacturerLink(mixed $manufacturer, string $alias, integer $id_lang)
Create a link to a manufacturer
- Visibility: public
- Source: classes/Link.php line 291
- $manufacturer mixed - Manufacturer object (can be an ID supplier, but deprecated)
- $alias string
- $id_lang integer
mixed LinkCore::getMediaLink($filepath)
- Visibility: public
- Source: classes/Link.php line 390
- $filepath mixed
string LinkCore::getModuleLink(string $module, $controller, array $params, $ssl, integer $id_lang)
Create a link to a module
- Visibility: public
- Source: classes/Link.php line 319
- $module string - Module name
- $controller mixed
- $params array
- $ssl mixed
- $id_lang integer
string LinkCore::getPageLink(string $controller, boolean $ssl, integer $id_lang, string|array $request, boolean $request_url_encode)
Create a simple link
- Visibility: public
- Source: classes/Link.php line 406
- $controller string
- $ssl boolean
- $id_lang integer
- $request string|array
- $request_url_encode boolean - Use URL encode
mixed LinkCore::getPaginationLink(string $type, integer $id_object, boolean $nb, boolean $sort, boolean $pagination, boolean $array)
Get pagination link
- Visibility: public
- Source: classes/Link.php line 489
- $type string - Controller name
- $id_object integer
- $nb boolean - Show nb element per page attribute
- $sort boolean - Show sort attribute
- $pagination boolean - Show page number attribute
- $array boolean - If false return an url, if true return an array
string LinkCore::getProductDeletePictureLink(mixed $product, integer $id_picture)
Create a link to delete a product
- Visibility: public
- Source: classes/Link.php line 69
- $product mixed - ID of the product OR a Product object
- $id_picture integer - ID of the picture to delete
string LinkCore::getProductLink(mixed $product, string $alias, string $category, string $ean13, integer $id_lang, integer $id_shop, integer $ipa, $force_routes)
Create a link to a product
- Visibility: public
- Source: classes/Link.php line 87
- $product mixed - Product object (can be an ID product, but deprecated)
- $alias string
- $category string
- $ean13 string
- $id_lang integer
- $id_shop integer - (since 1.5.0) ID shop need to be used when we generate a product link for a product in a cart
- $ipa integer - ID product attribute
- $force_routes mixed
string LinkCore::getSupplierLink(mixed $supplier, string $alias, integer $id_lang)
Create a link to a supplier
- Visibility: public
- Source: classes/Link.php line 264
- $supplier mixed - Supplier object (can be an ID supplier, but deprecated)
- $alias string
- $id_lang integer
mixed LinkCore::goPage($url, $p)
- Visibility: public
- Source: classes/Link.php line 474
- $url mixed
- $p mixed