Registry::count

final public count () Checks how many elements are in the register

Registry

implements ArrayAccess, Countable, Iterator, Traversable Source on GitHub A registry is a container for storing objects and values in the application space. By storing the value in a registry, the same object is always available throughout your application. $registry = new \Phalcon\Registry(); // Set value $registry->something = 'something'; // or $registry['something'] = 'something'; // Get value $value = $registry->something; // or $valu

Reading Configurations

Phalcon\Config is a component used to convert configuration files of various formats (using adapters) into PHP objects for use in an application. Native Arrays The first example shows how to convert native arrays into Phalcon\Config objects. This option offers the best performance since no files are read during this request. use Phalcon\Config; $settings = [ "database" => [ "adapter" => "Mysql", "host" => "localhost", "username" => "scott",

Queue\Beanstalk\Job::__wakeup

public __wakeup () Checks if the job has been modified after unserializing the object

Queue\Beanstalk\Job::touch

public touch () The touch command allows a worker to request more time to work on a job. This is useful for jobs that potentially take a long time, but you still want the benefits of a TTR pulling a job away from an unresponsive worker. A worker may periodically tell the server that it’s still alive and processing a job (e.g. it may do this on DEADLINE_SOON). The command postpones the auto release of a reserved job until TTR seconds from when the command is issued.

Queue\Beanstalk\Job::stats

public stats () Gives statistical information about the specified job if it exists.

Queue\Beanstalk\Job::release

public release ([mixed $priority], [mixed $delay]) The release command puts a reserved job back into the ready queue (and marks its state as “ready”) to be run by any client. It is normally used when the job fails because of a transitory error.

Queue\Beanstalk\Job::kick

public kick () Move the job to the ready queue if it is delayed or buried.

Queue\Beanstalk\Job::getId

public getId ()

Queue\Beanstalk\Job::getBody

public getBody ()