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

Since: 3.0.0
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

Méthode Description
__construct ( Inpsyde\MultilingualPress\Common\Setting\User\UserSettingViewModel $model, boolean $check_user = true ) Constructor. Sets up the properties.
render ( WP_User $user ) : boolean Renders the user setting markup.

Method Details

__construct() public méthode

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Common\Setting\User\UserSettingViewModel $model, boolean $check_user = true )
$model Inpsyde\MultilingualPress\Common\Setting\User\UserSettingViewModel View model object.
$check_user boolean Optional. Only render for users capable of editing? Defaults to true.

render() public méthode

Renders the user setting markup.
Since: 3.0.0
public render ( WP_User $user ) : boolean
$user WP_User User object.
Résultat boolean Whether or not the user setting markup was rendered successfully.