PHP Class Pimcore\Model\Schedule\Maintenance\Job

Show file Open project: pimcore/pimcore Class Usage Examples

Public Properties

Property Type Description
$arguments array
$id string
$locked boolean
$method string
$object object

Public Methods

Method Description
__construct ( $id, $object, $method, $arguments = null )
execute ( ) : mixed execute job
getArguments ( ) : array
getId ( ) : string
getLockKey ( )
getMethod ( ) : string
getObject ( ) : object
isLocked ( ) : boolean
lock ( ) : void create lock file
setArguments ( array $args ) : void
setId ( string $id )
setMethod ( string $method ) : void
setObject ( object $object ) : void
unlock ( ) : void delete lock file

Method Details

__construct() public method

public __construct ( $id, $object, $method, $arguments = null )

execute() public method

execute job
public execute ( ) : mixed
return mixed

getArguments() public method

public getArguments ( ) : array
return array

getId() public method

public getId ( ) : string
return string

getLockKey() public method

public getLockKey ( )

getMethod() public method

public getMethod ( ) : string
return string

getObject() public method

public getObject ( ) : object
return object

isLocked() public method

public isLocked ( ) : boolean
return boolean

lock() public method

create lock file
public lock ( ) : void
return void

setArguments() public method

public setArguments ( array $args ) : void
$args array
return void

setId() public method

public setId ( string $id )
$id string

setMethod() public method

public setMethod ( string $method ) : void
$method string
return void

setObject() public method

public setObject ( object $object ) : void
$object object
return void

unlock() public method

delete lock file
public unlock ( ) : void
return void

Property Details

$arguments public property

public array $arguments
return array

$id public property

public string $id
return string

$locked public property

public bool $locked
return boolean

$method public property

public string $method
return string

$object public property

public object $object
return object