PHP Класс Inpsyde\MultilingualPress\Common\Setting\User\SecureUserSettingUpdater

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Common\Setting\User\UserSettingUpdater
Показать файл Открыть проект

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
get_value ( ) : string Returns the value included in the request.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 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() публичный метод

Updates the setting with the data in the request for the user with the given ID.
С версии: 3.0.0
public update ( integer $user_id ) : boolean
$user_id integer User ID.
Результат boolean Whether or not the user setting was updated successfully.