PHP Class CTTopMenuItem, community-theme-16

Inheritance: extends ObjectModel
Afficher le fichier Open project: PrestaShop/community-theme-16 Class Usage Examples

Méthodes publiques

Свойство Type Description
$active boolean
$class string
$definition array Model definition
$entity_id integer
$icon string
$name string
$no_follow boolean
$position integer
$title string
$tree_max_depth integer
$type integer
$url string

Méthodes publiques

Méthode Description
add ( boolean $autoDate = true, boolean $nullValues = false ) : boolean Inserts new menu item to the database
delete ( ) : boolean Clears menu cache on delete event
getMaxPosition ( integer $id_shop ) : integer Returns max position in the given shop
getMenuItems ( integer $id_lang, integer $id_shop ) : array Returns all menu items for a given shop
update ( boolean $nullValues = false ) : boolean Clears menu cached on update event

Method Details

add() public méthode

Inserts new menu item to the database
public add ( boolean $autoDate = true, boolean $nullValues = false ) : boolean
$autoDate boolean
$nullValues boolean
Résultat boolean

delete() public méthode

Clears menu cache on delete event
public delete ( ) : boolean
Résultat boolean

getMaxPosition() public static méthode

Returns max position in the given shop
public static getMaxPosition ( integer $id_shop ) : integer
$id_shop integer
Résultat integer

getMenuItems() public static méthode

Returns all menu items for a given shop
public static getMenuItems ( integer $id_lang, integer $id_shop ) : array
$id_lang integer
$id_shop integer
Résultat array

update() public méthode

Clears menu cached on update event
public update ( boolean $nullValues = false ) : boolean
$nullValues boolean
Résultat boolean

Property Details

$active public_oe property

public bool $active
Résultat boolean

$class public_oe property

public string $class
Résultat string

$definition public_oe static_oe property

Model definition
public static array $definition
Résultat array

$entity_id public_oe property

public int $entity_id
Résultat integer

$icon public_oe property

public string $icon
Résultat string

$name public_oe property

public string $name
Résultat string

$no_follow public_oe property

public bool $no_follow
Résultat boolean

$position public_oe property

public int $position
Résultat integer

$title public_oe property

public string $title
Résultat string

$tree_max_depth public_oe property

public int $tree_max_depth
Résultat integer

$type public_oe property

public int $type
Résultat integer

$url public_oe property

public string $url
Résultat string