PHP Class Mlp_Redirect_Settings_Data

Author: Inpsyde GmbH, toscho
Inheritance: implements Mlp_Redirect_Settings_Data_Interface
Exibir arquivo Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, string $option_name = 'inpsyde_multilingual_redirect' ) Constructor.
get_checkbox_name ( ) : string Name attribute for the view's checkbox.
get_current_option_value ( ) : integer
save ( array $data ) : boolean Validate and save user input

Private Methods

Method Description
get_current_blog_id ( array $data, integer $default ) : integer
get_sent_value ( array $data ) : integer

Method Details

__construct() public method

Constructor.
public __construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce, string $option_name = 'inpsyde_multilingual_redirect' )
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.
$option_name string

get_checkbox_name() public method

Name attribute for the view's checkbox.
public get_checkbox_name ( ) : string
return string

get_current_option_value() public method

save() public method

Validate and save user input
public save ( array $data ) : boolean
$data array User input
return boolean