PHP Class Mlp_Network_Site_Settings_Controller

Handle settings for the whole network.
Author: Inpsyde GmbH, toscho
Inheritance: implements Mlp_Updatable
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde_Property_List_Interface $plugin_data, Inpsyde\MultilingualPress\Common\Type\Setting $setting, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor. Set up the properties.
enqueue_stylesheet ( ) : void Load stylesheet.
update ( string $name ) : mixed | void
update_settings ( ) : void Combine all update actions.

Private Methods

Method Description
create_tab_content ( ) : void Inner markup for the tab.
delete_unset_relations ( $blog_id, $old_related, $new_related, Inpsyde\MultilingualPress\API\SiteRelations $relations, $changed ) : integer
get_blog_id ( ) : integer
get_new_related_blogs ( ) : array
get_new_relations ( $new_related, $old_related ) : array
show_update_message ( ) : void Admin notices.
update_flag ( integer $blog_id ) : boolean
update_language ( integer $blog_id ) : boolean
update_related_blogs ( integer $blog_id ) : integer

Method Details

__construct() public method

Constructor. Set up the properties.
public __construct ( Inpsyde_Property_List_Interface $plugin_data, Inpsyde\MultilingualPress\Common\Type\Setting $setting, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$plugin_data Inpsyde_Property_List_Interface Plugin data.
$setting Inpsyde\MultilingualPress\Common\Type\Setting Setting object.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

enqueue_stylesheet() public method

Load stylesheet.
public enqueue_stylesheet ( ) : void
return void

update() public method

public update ( string $name ) : mixed | void
$name string
return mixed | void Either a value, or void for actions.

update_settings() public method

Combine all update actions.
public update_settings ( ) : void
return void