PHP Класс Apple_Actions\Index\Push

Наследование: extends Apple_Actions\API_Action
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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