PHP Class AdminCTTopMenuItemController, community-theme-16

Inheritance: extends ModuleAdminController
Show file Open project: PrestaShop/community-theme-16

Protected Properties

Property Type Description
$menuItemTypes array

Public Methods

Method Description
__construct ( ) AdminCTTopMenuItemController constructor.
ajaxProcessUpdatePositions ( ) Updates positions submitted via Ajax
getList ( integer $id_lang, string | null $order_by = null, string | null $order_way = null, integer $start, integer | null $limit = null, integer | boolean $id_lang_shop = false ) Fetches the object list to be displayed by renderList This overrides formats ID fields to be more user friendly.
initProcess ( ) Adds no_follow toggle action to process routing
processNoFollow ( ) Processes toggling no_follow values through admin list
renderForm ( ) : string Renders menu item add/edit form
renderList ( ) : false | string Renders a list of menu item objects.
renderOptions ( ) : string Renders options panel

Protected Methods

Method Description
initOptionFields ( )
processUpdateOptions ( ) Clears menu cache on updating menu options

Method Details

__construct() public method

AdminCTTopMenuItemController constructor.
public __construct ( )

ajaxProcessUpdatePositions() public method

Updates positions submitted via Ajax

getList() public method

Fetches the object list to be displayed by renderList This overrides formats ID fields to be more user friendly.
public getList ( integer $id_lang, string | null $order_by = null, string | null $order_way = null, integer $start, integer | null $limit = null, integer | boolean $id_lang_shop = false )
$id_lang integer
$order_by string | null
$order_way string | null
$start integer
$limit integer | null
$id_lang_shop integer | boolean

initOptionFields() protected method

protected initOptionFields ( )

initProcess() public method

Adds no_follow toggle action to process routing
public initProcess ( )

processNoFollow() public method

Processes toggling no_follow values through admin list
public processNoFollow ( )

processUpdateOptions() protected method

Clears menu cache on updating menu options
protected processUpdateOptions ( )

renderForm() public method

Renders menu item add/edit form
public renderForm ( ) : string
return string

renderList() public method

Position column is only visible in the shop context
public renderList ( ) : false | string
return false | string

renderOptions() public method

Renders options panel
public renderOptions ( ) : string
return string

Property Details

$menuItemTypes protected property

protected array $menuItemTypes
return array