PHP 클래스 CTTopMenuItem, community-theme-16

상속: extends ObjectModel
파일 보기 프로젝트 열기: PrestaShop/community-theme-16 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
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

메소드 상세

add() 공개 메소드

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

delete() 공개 메소드

Clears menu cache on delete event
public delete ( ) : boolean
리턴 boolean

getMaxPosition() 공개 정적인 메소드

Returns max position in the given shop
public static getMaxPosition ( integer $id_shop ) : integer
$id_shop integer
리턴 integer

getMenuItems() 공개 정적인 메소드

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

update() 공개 메소드

Clears menu cached on update event
public update ( boolean $nullValues = false ) : boolean
$nullValues boolean
리턴 boolean

프로퍼티 상세

$active 공개적으로 프로퍼티

public bool $active
리턴 boolean

$class 공개적으로 프로퍼티

public string $class
리턴 string

$definition 공개적으로 정적으로 프로퍼티

Model definition
public static array $definition
리턴 array

$entity_id 공개적으로 프로퍼티

public int $entity_id
리턴 integer

$icon 공개적으로 프로퍼티

public string $icon
리턴 string

$name 공개적으로 프로퍼티

public string $name
리턴 string

$no_follow 공개적으로 프로퍼티

public bool $no_follow
리턴 boolean

$position 공개적으로 프로퍼티

public int $position
리턴 integer

$title 공개적으로 프로퍼티

public string $title
리턴 string

$tree_max_depth 공개적으로 프로퍼티

public int $tree_max_depth
리턴 integer

$type 공개적으로 프로퍼티

public int $type
리턴 integer

$url 공개적으로 프로퍼티

public string $url
리턴 string