Generic Class that can be extended for creating admin screens for plugins.
Extend and initiate this class for every admin page created.
Located in /includes/kb-admin.php (line 18)
Capability at which this page can be shown.
Over-ride these variables to create a new page class.
Takes care of the capability check at both the menu display as well as at the page load.
Icon to be added in the menu.
Over-ride these variables to create a new page class.
Menu title
Over-ride these variables to create a new page class. If this is set a menu entry will be created for this page instance. Otherwise no menu entry will be created.
Page title
Over-ride these variables to create a new page class.
Parent Menu
Over-ride these variables to create a new page class. If not set and a menu title is provided, a top-level element is created--otherwise a submenu element is created.
Position in the menu
Over-ride these variables to create a new page class. Used only if the menu title is provided.
Store slug used for the page.
Over-ride these variables to create a new page class.
The constructor, conditionally initializes the requirements for the plugin.
Instead of having to check whether the correct page has been loaded externally, this function only initializes required scripts and styles on the appropriate plugin pages.
Add menus and determine the hook.
Extend this function to actually display the contents of the page. Should echo the data to be displayed.
Output minimal boiler-plate HTML to make the page behave.
Returns true if the current page is the one added by this class.
Override to customize the screen--screen options, etc.
Override to modify the help message.
Add a page to be loaded for the specified slug. Do not over-ride.
Only used for instances without a menu page. This code is based off the internals of add_menu_page.
Set the title of a page defined without any entry in the menu.
Wrapper for conditionally loading resources
Override to load resources as required
Runs only if the page corresponding to this class is called.
Also runs a security check on the caps of the user.
Documentation generated on Thu, 29 Sep 2011 01:44:45 +0530 by phpDocumentor 1.4.3