PHP Class Microweber\Providers\MenuManager

Show file Open project: microweber/microweber

Public Properties

Property Type Description
$app
$no_cache Boolean that indicates the usage of cache while making queries.
$tables

Public Methods

Method Description
__construct ( $app = null )
get_menu ( $params = false )
get_menu_items ( $params = false )
get_menus ( $params = false )
is_in_menu ( $menu_id = false, $content_id = false )
menu_create ( $data_to_save )
menu_delete ( $id = false )
menu_item_delete ( $id = false )
menu_item_get ( $id )
menu_item_save ( $data_to_save )
menu_items_reorder ( $data )
menu_tree ( $menu_id, $maxdepth = false )
set_table_names ( array | boolean $tables = false ) Sets the database table names to use by the class.

Method Details

__construct() public method

public __construct ( $app = null )

get_menu() public method

public get_menu ( $params = false )

get_menu_items() public method

public get_menu_items ( $params = false )

get_menus() public method

public get_menus ( $params = false )

is_in_menu() public method

public is_in_menu ( $menu_id = false, $content_id = false )

menu_create() public method

public menu_create ( $data_to_save )

menu_delete() public method

public menu_delete ( $id = false )

menu_item_delete() public method

public menu_item_delete ( $id = false )

menu_item_get() public method

public menu_item_get ( $id )

menu_item_save() public method

public menu_item_save ( $data_to_save )

menu_items_reorder() public method

public menu_items_reorder ( $data )

menu_tree() public method

public menu_tree ( $menu_id, $maxdepth = false )

set_table_names() public method

Sets the database table names to use by the class.
public set_table_names ( array | boolean $tables = false )
$tables array | boolean

Property Details

$app public property

public $app

$no_cache public property

Boolean that indicates the usage of cache while making queries.
public $no_cache

$tables public property

public $tables