PHP 클래스 Inpsyde\MultilingualPress\Common\Setting\User\SecureUserSettingUpdater

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Common\Setting\User\UserSettingUpdater
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__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.