PHP 클래스 Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\TranslationCompletedSettingUpdater

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor. Sets up the properties.
update_setting ( integer $post_id, WP_Post $post ) : boolean Updates the translation completed setting of the post with the given ID.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$post_repository Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository Untranslated posts repository object.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

update_setting() 공개 메소드

Updates the translation completed setting of the post with the given ID.
부터: 3.0.0
public update_setting ( integer $post_id, WP_Post $post ) : boolean
$post_id integer Post ID.
$post WP_Post Post object.
리턴 boolean Whether or not the translation completed setting was updated successfully.