PHP Class Pressbooks\Modules\ThemeOptions\ThemeOptions

显示文件 Open project: pressbooks/pressbooks Class Usage Examples

Public Methods

Method Description
__construct ( array $tabs ) Constructor.
getTabs ( ) Returns a filtered array of tabs that we should be loading.
init ( ) Instantiate the class and add loadTabs() to the admin_init hook.
loadTabs ( ) Register the settings on each tab, run upgrade() if needed.
render ( ) Render the theme options page and load the appropriate tab.

Method Details

__construct() public method

Constructor.
public __construct ( array $tabs )
$tabs array

getTabs() static public method

Returns a filtered array of tabs that we should be loading.
static public getTabs ( )

init() static public method

Instantiate the class and add loadTabs() to the admin_init hook.
static public init ( )

loadTabs() public method

Register the settings on each tab, run upgrade() if needed.
public loadTabs ( )

render() static public method

Render the theme options page and load the appropriate tab.
static public render ( )