PHP 클래스 Apple_Actions\Index\Push

상속: extends Apple_Actions\API_Action
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Settings $settings, integer $id ) Constructor.
perform ( boolean $doing_async = false, $user_id = null ) : boolean Perform the push action.

비공개 메소드들

메소드 설명
clean_workspace ( ) Clean up the workspace.
generate_article ( ) Use the export action to get an instance of the Exporter. Use that to manually generate the workspace for upload, then clean it up.
get ( ) Get the post using the API data.
is_post_in_sync ( ) : boolean Check if the post is in sync before updating in Apple News.
process_errors ( array $errors ) Processes errors, halts publishing if needed.
push ( integer $user_id = null ) Push the post using the API data.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Settings $settings, integer $id )
$settings Settings
$id integer

perform() 공개 메소드

Perform the push action.
public perform ( boolean $doing_async = false, $user_id = null ) : boolean
$doing_async boolean
리턴 boolean