Class AdminPageFramework_NetworkAdmin
The factory class to be extended to creates network admin pages.
The user defines their own class by extending this class with the
setUp()
method overridden to define admin pages.
Abstract
Package: AdminPageFramework\Factory\NetworkAdmin
Since: 3.1.0
Extends: AdminPageFramework
Remark: This class stems from several abstract classes.
Located at factory/network_admin_page/AdminPageFramework_NetworkAdmin.php
Package: AdminPageFramework\Factory\NetworkAdmin
Since: 3.1.0
Extends: AdminPageFramework
Remark: This class stems from several abstract classes.
Located at factory/network_admin_page/AdminPageFramework_NetworkAdmin.php
Methods summary
public
|
#
__construct( string $sOptionKey = null, string $sCallerPath = null, string $sCapability = 'manage_network', string $sTextDomain = 'admin-page-framework' )
Registers necessary callbacks ans sets up internal components including properties. Examplenew MyNetworkAdminPageClass( 'my_custom_option_key', __FILE__ ); Parameters
Returns
returns nothing. Since
3.1.0
See
http://codex.wordpress.org/Roles_and_Capabilities
http://codex.wordpress.org/I18n_for_WordPress_Developers#Text_Domains Overrides |
public static
mixed
|
#
getOption( string $sOptionKey, string $asKey = null , mixed $vDefault = null )
Retrieves the saved option value from the given option key and the dimensional array key representation. Example$aData = AdminPageFramework::getOption( 'APF' ); $aSection = AdminPageFramework::getOption( 'APF', 'my_section' ); $sText = AdminPageFramework::getOption( 'APF', array( 'my_section', 'my_text_field' ), 'foo' ); $sColor = AdminPageFramework::getOption( 'APF', 'my_color_field', '#FFF' ); Parameters
Returnsmixed If the field ID is not specified. Since
3.1.0
Overrides |