PHP Class Inpsyde\MultilingualPress\Common\Setting\User\SecureUserSettingUpdater

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Common\Setting\User\UserSettingUpdater
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( string $meta_key, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce = null ) Constructor. Sets up the properties.
update ( integer $user_id ) : boolean Updates the setting with the data in the request for the user with the given ID.

Private Methods

Method Description
get_value ( ) : string Returns the value included in the request.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( string $meta_key, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce = null )
$meta_key string User meta key.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Optional. Nonce object. Defaults to null.

update() public method

Updates the setting with the data in the request for the user with the given ID.
Since: 3.0.0
public update ( integer $user_id ) : boolean
$user_id integer User ID.
return boolean Whether or not the user setting was updated successfully.