Properties

$name

$name : string

Type

string — Name

$active

$active : boolean

Type

boolean — Active Scene

$zones

$zones : array

Type

array — Zone for image map

$categories

$categories : array

Type

array — list of category where this scene is available

$products

$products : array

Type

array — Products

$definition

$definition : 

Type

$feature_active

$feature_active : 

Type

Methods

__construct()

__construct(  $id = null,   $id_lang = null,   $lite_result = true,   $hide_scene_position = false) 

Parameters

$id
$id_lang
$lite_result
$hide_scene_position

update()

update(  $null_values = false) 

Parameters

$null_values

add()

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

Parameters

$autodate
$null_values

delete()

delete() 

deleteImage()

deleteImage(  $force_delete = false) 

Parameters

$force_delete

addCategories()

addCategories(  $categories) 

Parameters

$categories

deleteCategories()

deleteCategories() 

updateCategories()

updateCategories() 

addZoneProducts()

addZoneProducts(  $zones) 

Parameters

$zones

deleteZoneProducts()

deleteZoneProducts() 

updateZoneProducts()

updateZoneProducts() 

getScenes()

getScenes(  $id_category,   $id_lang = null,   $only_active = true,   $lite_result = true,   $hide_scene_position = true, \Context  $context = null) : array

Get all scenes of a category

Parameters

$id_category
$id_lang
$only_active
$lite_result
$hide_scene_position
\Context $context

Returns

array —

Products

getProducts()

getProducts(  $only_active = true,   $id_lang = null,   $lite_result = true, \Context  $context = null) : array

Get all products of this scene

Parameters

$only_active
$id_lang
$lite_result
\Context $context

Returns

array —

Products

getIndexedCategories()

getIndexedCategories(integer  $id_scene) : array

Get categories where scene is indexed

Parameters

integer $id_scene

Scene id

Returns

array —

Categories where scene is indexed

hideScenePosition()

hideScenePosition(string  $name) : string

Hide scene prefix used for position

Parameters

string $name

Scene name

Returns

string —

Name without position

isFeatureActive()

isFeatureActive() : boolean

This method is allow to know if a feature is used or active

Returns

boolean