PHP Class Mlp_Network_Site_Settings

Author: Inpsyde GmbH, toscho
ファイルを表示 Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Mlp_Network_Site_Settings_Properties $config, Mlp_Updatable $watcher ) Constructor.
reorder_output ( string $content ) : string Changes the page content, adds navigation tab.
start_buffer ( ) : void Starts output buffering and call "render_callback".

Private Methods

Method Description
get_heading_level ( ) : string Returns the heading level wrt. the current WordPress version.
get_nav_link ( ) : string Creates the HTML for the navigation link.
is_active_page ( ) : boolean Checks if the global pagenow matches the tab identifier.
set_pagenow ( ) : void Changes the global pagenow to prevent wrong classes on the tab navigation.

Method Details

__construct() public method

Constructor.
public __construct ( Mlp_Network_Site_Settings_Properties $config, Mlp_Updatable $watcher )
$config Mlp_Network_Site_Settings_Properties
$watcher Mlp_Updatable

reorder_output() public method

Changes the page content, adds navigation tab.
public reorder_output ( string $content ) : string
$content string Complete content of the page 'wp-admin/network/site-settings.php'.
return string

start_buffer() public method

Starts output buffering and call "render_callback".
public start_buffer ( ) : void
return void