\TagCore

Summary

Methods
Properties
Constants
__construct()
add()
addTags()
getMainTags()
getProductTags()
getProducts()
setProducts()
deleteTagsForProduct()
$id_lang
$name
$definition
No constants found
No protected methods found
$webserviceParameters
N/A
No private methods found
No private properties found
N/A

Properties

$id_lang

$id_lang : integer

Type

integer — Language id

$name

$name : string

Type

string — Name

$definition

$definition : 

Type

$webserviceParameters

$webserviceParameters : 

Type

Methods

__construct()

__construct(  $id = null,   $name = null,   $id_lang = null) 

Parameters

$id
$name
$id_lang

add()

add(  $autodate = true,   $null_values = false) 

Parameters

$autodate
$null_values

addTags()

addTags(integer  $id_lang, integer  $id_product, string|array  $tag_list,   $separator = ',') : boolean

Add several tags in database and link it to a product

Parameters

integer $id_lang

Language id

integer $id_product

Product id to link tags with

string|array $tag_list

List of tags, as array or as a string with comas

$separator

Returns

boolean —

Operation success

getMainTags()

getMainTags(  $id_lang,   $nb = 10) 

Parameters

$id_lang
$nb

getProductTags()

getProductTags(  $id_product) 

Parameters

$id_product

getProducts()

getProducts(  $associated = true, \Context  $context = null) 

Parameters

$associated
\Context $context

setProducts()

setProducts(  $array) 

Parameters

$array

deleteTagsForProduct()

deleteTagsForProduct(  $id_product) 

Parameters

$id_product