Class Socialveo\Tasks\CronTask

InheritanceSocialveo\Tasks\CronTask » Phalcon\CLI\Task

Class CronTask

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$lockFile string Socialveo\Tasks\CronTask

Public Methods

Hide inherited methods

MethodDescriptionDefined By
mainAction() Runs defined background jobs Socialveo\Tasks\CronTask
onConstruct() Constructor handler Socialveo\Tasks\CronTask
unlock() Unlock file Socialveo\Tasks\CronTask

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
lock() Create lock file Socialveo\Tasks\CronTask

Property Details

$lockFile protected property
protected string $lockFile null

Method Details

lock() protected method

Create lock file

protected boolean lock ( )
mainAction() public method

Runs defined background jobs

public void mainAction ( array $params = [] )
$params array

Array of command line parameters passed into task

onConstruct() public method

Constructor handler

public void onConstruct ( )
unlock() public method

Unlock file

public boolean unlock ( )