PHP Класс VideoPress_Scheduler, jetpack

С версии: 1.3
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$crons array A list of all of the crons that are to be activated, along with their interval timings.

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

Метод Описание
activate_all_crons ( ) Activates widget update cron task.
activate_cron ( string $cron_name ) : boolean Activate a single cron
activate_crons_on_jetpack_activation ( string $plugin_file_name ) Only activate the crons if it is Jetpack that was activated.
add_30_minute_cron_interval ( array $current_schedules ) : array Adds 30 minute running interval to the cron schedules.
check_cron ( string $cron_name ) : integer | boolean Is the given cron job currently active?
deactivate_all_crons ( ) Deactivates any crons associated with the VideoPress module.
deactivate_cron ( $cron_name ) : boolean Deactivates any crons associated with the VideoPress module.
get_crons ( ) : array Get a list of all of the crons that are available.
init ( ) : VideoPress_Scheduler Initialize the VideoPress_Scheduler and get back a singleton instance.
is_cron_valid ( string $cron_name ) : boolean Check that the given cron job name is valid.

Приватные методы

Метод Описание
__construct ( ) Private VideoPress_Scheduler constructor.

Описание методов

activate_all_crons() публичный Метод

Activates widget update cron task.
public activate_all_crons ( )

activate_cron() публичный Метод

Activate a single cron
public activate_cron ( string $cron_name ) : boolean
$cron_name string
Результат boolean

activate_crons_on_jetpack_activation() публичный Метод

Only activate the crons if it is Jetpack that was activated.
public activate_crons_on_jetpack_activation ( string $plugin_file_name )
$plugin_file_name string

add_30_minute_cron_interval() публичный Метод

Adds 30 minute running interval to the cron schedules.
public add_30_minute_cron_interval ( array $current_schedules ) : array
$current_schedules array Currently defined schedules list.
Результат array

check_cron() публичный Метод

If so, return when it will next run,
public check_cron ( string $cron_name ) : integer | boolean
$cron_name string
Результат integer | boolean Timestamp of the next run time OR false.

deactivate_all_crons() публичный Метод

.

deactivate_cron() публичный Метод

Deactivates any crons associated with the VideoPress module.
public deactivate_cron ( $cron_name ) : boolean
Результат boolean

get_crons() публичный Метод

Get a list of all of the crons that are available.
public get_crons ( ) : array
Результат array

init() публичный статический Метод

Initialize the VideoPress_Scheduler and get back a singleton instance.
public static init ( ) : VideoPress_Scheduler
Результат VideoPress_Scheduler

is_cron_valid() публичный Метод

Check that the given cron job name is valid.
public is_cron_valid ( string $cron_name ) : boolean
$cron_name string
Результат boolean

Описание свойств

$crons защищенное свойство

A list of all of the crons that are to be activated, along with their interval timings.
protected array $crons
Результат array