PHP Class Papi_Admin_Menu, papi

Afficher le fichier Open project: wp-papi/papi

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

The construct.
public __construct ( )

admin_bar_menu() public méthode

Fill labels on admin bar.
public admin_bar_menu ( )

get_entry_type() protected méthode

Get current type class.
protected get_entry_type ( ) : Papi_Entry_Type
Résultat Papi_Entry_Type

override_labels() protected méthode

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 méthode

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

post_types_menu() public méthode

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

render_view() public méthode

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

setup_actions() protected méthode

Setup actions.
protected setup_actions ( )