PHP 인터페이스 Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press 0 사용 예제들

공개 메소드들

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

메소드 상세

get() 공개 메소드

Returns the trasher setting value for the post with the given ID, or the current post.
부터: 3.0.0
public get ( integer $post_id ) : boolean
$post_id integer Optional. Post ID. Defaults to 0.
리턴 boolean The trasher setting value for the post with the given ID, or the current post.

update() 공개 메소드

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