PHP Class Papi_Admin_Menu, papi

Show file Open project: wp-papi/papi

Public Methods

Method Description
__construct ( ) The construct.
admin_bar_menu ( ) Fill labels on admin bar.
page_items_menu ( ) Page items menu.
post_types_menu ( ) Setup menu items for real post types.
render_view ( ) Menu callback that loads right view depending on what the page query string says.

Protected Methods

Method Description
get_entry_type ( ) : Papi_Entry_Type Get current type class.
override_labels ( Papi_Entry_Type $entry_type ) Override labels with labels from the entry type.
setup_actions ( ) Setup actions.

Method Details

__construct() public method

The construct.
public __construct ( )

admin_bar_menu() public method

Fill labels on admin bar.
public admin_bar_menu ( )

get_entry_type() protected method

Get current type class.
protected get_entry_type ( ) : Papi_Entry_Type
return Papi_Entry_Type

override_labels() protected method

Override labels with labels from the entry type.
protected override_labels ( Papi_Entry_Type $entry_type )
$entry_type Papi_Entry_Type

page_items_menu() public method

This function will register all entry types that has a fake post type. Like option types.
public page_items_menu ( )

post_types_menu() public method

Setup menu items for real post types.
public post_types_menu ( )

render_view() public method

Menu callback that loads right view depending on what the page query string says.
public render_view ( )

setup_actions() protected method

Setup actions.
protected setup_actions ( )