PHP 클래스 Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingUpdater

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

공개 메소드들

메소드 설명
__construct ( Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository $setting_repository, Inpsyde\MultilingualPress\API\ContentRelations $content_relations, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor. Sets up the properties.
update_settings ( integer $post_id, WP_Post $post ) : integer Updates the trasher setting of the post with the given ID as well as all related posts.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository $setting_repository, Inpsyde\MultilingualPress\API\ContentRelations $content_relations, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$setting_repository Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository Trasher setting repository object.
$content_relations Inpsyde\MultilingualPress\API\ContentRelations Content relations API object.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

update_settings() 공개 메소드

Updates the trasher setting of the post with the given ID as well as all related posts.
부터: 3.0.0
public update_settings ( integer $post_id, WP_Post $post ) : integer
$post_id integer Post ID.
$post WP_Post Post object.
리턴 integer The number of posts updated.