PHP 클래스 Aoe_Scheduler_Helper_Data, Aoe_Scheduler

저자: Fabrizio Branca
상속: extends Mage_Core_Helper_Abstract
파일 보기 프로젝트 열기: aoepeople/aoe_scheduler

보호된 프로퍼티들

프로퍼티 타입 설명
$groupsToJobsMap

공개 메소드들

메소드 설명
addGroupJobs ( array $jobs, array $groups )
checkCachePrefix ( ) : boolean Check if the cache prefix from the database matches the cache prefix from the local.xml file
dateDiff ( $time1, $time2 = null ) : integer Diff between to times;
decorateStatus ( $status ) : string Decorate status values
decorateTime ( string $value, boolean $echoToday = false, string $dateFormat = null ) : string Decorate time values
decorateTimeFrameCallBack ( string $value ) : string Wrapper for decorateTime to be used a frame_callback to avoid that additional parameters conflict with the method's optional ones
getCallBack ( $runModel ) : array Get callback from runModel
getConfiguredUser ( ) : string | null Return the configured cron user
getDbCachePrefix ( )
getGroupsToJobsMap ( $forceRebuild = false )
getLastExecutionTime ( $jobCode ) : boolean Get last execution time
getLastHeartbeat ( ) Get last heartbeat
getLastRunUser ( ) : string | null Get the last user who ran a schedule from core variables
getRunningUser ( ) : string Return the current system user running this process
getShouldKillOnWrongUser ( ) : boolean Should processes not running the configured user be killed?
getShowUserCronMessage ( ) : boolean Should we warn the user if the schedule is being run as the wrong user?
isDisabled ( $jobCode ) : boolean Check if job code is disabled in configuration
matchesIncludeExclude ( $jobCode, array $include, array $exclude ) : mixed Check if a job matches the group include/exclude lists
runningAsConfiguredUser ( boolean $useRunningUser = true ) : boolean Check the configuration value for which user the cron should be run as, and check if it matches the actual user.
sendErrorMail ( Aoe_Scheduler_Model_Schedule $schedule, $error ) : void Send error mail
trimExplode ( $delim, string $string, boolean $removeEmptyValues = false ) : array Explodes a string and trims all values for whitespace in the ends.
validateCronExpression ( $cronExpression ) : boolean Validate cron expression

메소드 상세

addGroupJobs() 공개 메소드

public addGroupJobs ( array $jobs, array $groups )
$jobs array
$groups array

checkCachePrefix() 공개 메소드

Check if the cache prefix from the database matches the cache prefix from the local.xml file
public checkCachePrefix ( ) : boolean
리턴 boolean

dateDiff() 공개 메소드

Diff between to times;
public dateDiff ( $time1, $time2 = null ) : integer
$time1
$time2
리턴 integer

decorateStatus() 공개 메소드

Decorate status values
public decorateStatus ( $status ) : string
$status
리턴 string

decorateTime() 공개 메소드

Decorate time values
public decorateTime ( string $value, boolean $echoToday = false, string $dateFormat = null ) : string
$value string
$echoToday boolean if true "Today" will be added
$dateFormat string make sure Y-m-d is in it, if you want to have it replaced
리턴 string

decorateTimeFrameCallBack() 공개 메소드

Wrapper for decorateTime to be used a frame_callback to avoid that additional parameters conflict with the method's optional ones
public decorateTimeFrameCallBack ( string $value ) : string
$value string
리턴 string

getCallBack() 공개 메소드

Get callback from runModel
public getCallBack ( $runModel ) : array
$runModel
리턴 array

getConfiguredUser() 공개 메소드

Return the configured cron user
public getConfiguredUser ( ) : string | null
리턴 string | null

getDbCachePrefix() 공개 메소드

public getDbCachePrefix ( )

getGroupsToJobsMap() 공개 메소드

public getGroupsToJobsMap ( $forceRebuild = false )

getLastExecutionTime() 공개 메소드

Get last execution time
public getLastExecutionTime ( $jobCode ) : boolean
$jobCode
리턴 boolean

getLastHeartbeat() 공개 메소드

Get last heartbeat
public getLastHeartbeat ( )

getLastRunUser() 공개 메소드

Get the last user who ran a schedule from core variables
public getLastRunUser ( ) : string | null
리턴 string | null

getRunningUser() 공개 메소드

Return the current system user running this process
public getRunningUser ( ) : string
리턴 string

getShouldKillOnWrongUser() 공개 메소드

Should processes not running the configured user be killed?

getShowUserCronMessage() 공개 메소드

Should we warn the user if the schedule is being run as the wrong user?
public getShowUserCronMessage ( ) : boolean
리턴 boolean

isDisabled() 공개 메소드

Check if job code is disabled in configuration
public isDisabled ( $jobCode ) : boolean
$jobCode
리턴 boolean

matchesIncludeExclude() 공개 메소드

Check if a job matches the group include/exclude lists
public matchesIncludeExclude ( $jobCode, array $include, array $exclude ) : mixed
$jobCode
$include array
$exclude array
리턴 mixed

runningAsConfiguredUser() 공개 메소드

Skip if the warning should be ignored.
public runningAsConfiguredUser ( boolean $useRunningUser = true ) : boolean
$useRunningUser boolean If true, use the user running the web server, otherwise use the last run user from core_variable storage
리턴 boolean

sendErrorMail() 공개 메소드

Send error mail
public sendErrorMail ( Aoe_Scheduler_Model_Schedule $schedule, $error ) : void
$schedule Aoe_Scheduler_Model_Schedule
$error
리턴 void

trimExplode() 공개 메소드

If $onlyNonEmptyValues is set, then all blank ('') values are removed.
또한 보기: t3lib_div::trimExplode() in TYPO3
public trimExplode ( $delim, string $string, boolean $removeEmptyValues = false ) : array
$delim
$string string
$removeEmptyValues boolean If set, all empty values will be removed in output
리턴 array Exploded values

validateCronExpression() 공개 메소드

Validate cron expression
public validateCronExpression ( $cronExpression ) : boolean
$cronExpression
리턴 boolean

프로퍼티 상세

$groupsToJobsMap 보호되어 있는 프로퍼티

protected $groupsToJobsMap