PHP Class Jobby\Helper

Show file Open project: hellogerard/jobby Class Usage Examples

Public Methods

Method Description
__construct ( Swift_Mailer $mailer = null )
acquireLock ( string $lockFile )
escape ( string $input ) : string
getApplicationEnv ( ) : string | null
getHost ( ) : string
getLockLifetime ( string $lockFile ) : integer
getPlatform ( ) : integer
getSystemNullDevice ( )
getTempDir ( ) : string
releaseLock ( string $lockFile )
sendMail ( string $job, array $config, string $message ) : Swift_Message

Private Methods

Method Description
getCurrentMailer ( array $config ) : Swift_Mailer

Method Details

__construct() public method

public __construct ( Swift_Mailer $mailer = null )
$mailer Swift_Mailer

acquireLock() public method

public acquireLock ( string $lockFile )
$lockFile string

escape() public method

public escape ( string $input ) : string
$input string
return string

getApplicationEnv() public method

public getApplicationEnv ( ) : string | null
return string | null

getHost() public method

public getHost ( ) : string
return string

getLockLifetime() public method

public getLockLifetime ( string $lockFile ) : integer
$lockFile string
return integer

getPlatform() public method

public getPlatform ( ) : integer
return integer

getSystemNullDevice() public method

public getSystemNullDevice ( )

getTempDir() public method

public getTempDir ( ) : string
return string

releaseLock() public method

public releaseLock ( string $lockFile )
$lockFile string

sendMail() public method

public sendMail ( string $job, array $config, string $message ) : Swift_Message
$job string
$config array
$message string
return Swift_Message