PHP Class Inpsyde\MultilingualPress\Module\Trasher\TypeSafeTrasherSettingRepository

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

Méthode Description
get ( integer $post_id ) : boolean Returns the trasher setting value for the post with the given ID, or the current post.
update ( integer $post_id, boolean $value ) : boolean Updates the trasher setting value for the post with the given ID.

Method Details

get() public méthode

Returns the trasher setting value for the post with the given ID, or the current post.
Since: 3.0.0
public get ( integer $post_id ) : boolean
$post_id integer Optional. Post ID. Defaults to 0.
Résultat boolean The trasher setting value for the post with the given ID, or the current post.

update() public méthode

Updates the trasher setting value for the post with the given ID.
Since: 3.0.0
public update ( integer $post_id, boolean $value ) : boolean
$post_id integer Post ID.
$value boolean Setting value to be set.
Résultat boolean Whether or not the trasher setting value was updated successfully.