PHP Класс Aoe_Scheduler_Model_ScheduleManager, Aoe_Scheduler

С версии: 2014-08-14
Автор: Fabrizio Branca
Показать файл Открыть проект

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

Метод Описание
cleanup ( ) : Mage_Cron_Model_Observer Clean up the history of tasks This override deals with custom states added in Aoe_Scheduler
deleteAll ( ) Delete all schedules
deleteDuplicates ( ) Delete duplicate crons
flushSchedules ( string $jobCode = null ) Flushed all future pending schedules.
generateSchedules ( ) Generate cron schedule.
generateSchedulesForJob ( Aoe_Scheduler_Model_Job $job ) Generate jobs for config information
getMeasuredCronInterval ( ) : array | boolean Create some statistics based on self::CACHE_KEY_SCHEDULER_LASTRUNS
getPendingSchedules ( array $whitelist = [], array $blacklist = [] ) : Mage_Cron_Model_Resource_Schedule_Collection Get pending schedules
getScheduleForAlwaysJob ( $jobCode, $reason = null ) : Aoe_Scheduler_Model_Schedule | false Get job for task marked as always
logRun ( ) Log run
skipMissedSchedules ( ) Mark missed schedule records by changing status

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

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

Clean up the history of tasks This override deals with custom states added in Aoe_Scheduler
public cleanup ( ) : Mage_Cron_Model_Observer
Результат Mage_Cron_Model_Observer

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

Delete all schedules
public deleteAll ( )

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

Delete duplicate crons
public deleteDuplicates ( )

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

Flushed all future pending schedules.
public flushSchedules ( string $jobCode = null )
$jobCode string

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

Rewrites the original method to remove duplicates afterwards (that exists because of a bug)
public generateSchedules ( )

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

Generate jobs for config information
public generateSchedulesForJob ( Aoe_Scheduler_Model_Job $job )
$job Aoe_Scheduler_Model_Job

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

Create some statistics based on self::CACHE_KEY_SCHEDULER_LASTRUNS
public getMeasuredCronInterval ( ) : array | boolean
Результат array | boolean

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

Get pending schedules
public getPendingSchedules ( array $whitelist = [], array $blacklist = [] ) : Mage_Cron_Model_Resource_Schedule_Collection
$whitelist array
$blacklist array
Результат Mage_Cron_Model_Resource_Schedule_Collection

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

(Instead of reusing existing one - which results in loosing the history - create a new one every time)
public getScheduleForAlwaysJob ( $jobCode, $reason = null ) : Aoe_Scheduler_Model_Schedule | false
$jobCode
Результат Aoe_Scheduler_Model_Schedule | false

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

Log run
public logRun ( )

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

Mark missed schedule records by changing status
public skipMissedSchedules ( )