Page
abstract class Page extends Singleton
A class to abstract and automate the process of building Pages.
Properties
| static protected Singleton[] | $_instances | from Singleton |
Methods
Add action for creating submenu page.
Maybe initialize singleton instance and return the instance.
A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.
The function which will be called to add the page to the menu.
The page slug for registering settings, adding menu items, etc.
The page name/title for display.
The menu name/title for display.
The capability required for the page to be displayed to the user.
Return the submenu ID for use with the WordPress $submenu global.
Return the Sections associated with this Settings Page.
See if the Settings Page exists in the WP global $submenu.
Details
at line 78
protected
__construct()
Add action for creating submenu page.
in
Singleton at line 42
final static Singleton
instance(mixed $args = null)
Maybe initialize singleton instance and return the instance.
in
Singleton at line 63
final static array
get_instances()
Return a copy of the instances array.
in
Singleton at line 72
final protected ReflectionClass
get_class_reflection()
A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.
at line 31
abstract static protected
add_menu_item()
The function which will be called to add the page to the menu.
at line 38
abstract static string
page_option_group()
The page slug for registering settings, adding menu items, etc.
at line 45
abstract static string
page_title()
The page name/title for display.
at line 52
abstract static string
menu_title()
The menu name/title for display.
at line 59
abstract static string
page_capability()
The capability required for the page to be displayed to the user.
at line 66
abstract static string
submenu_id()
Return the submenu ID for use with the WordPress $submenu global.
at line 73
final static Settings_Section[]
get_sections()
Return the Sections associated with this Settings Page.
at line 92
final static bool
menu_item_exists()
See if the Settings Page exists in the WP global $submenu.