PHP Interface Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method 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 method

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.
return boolean The trasher setting value for the post with the given ID, or the current post.

update() public method

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.
return boolean Whether or not the trasher setting value was updated successfully.