Mvc\Micro::getService

public object getService (string $serviceName) Obtains a service from the DI

Queue\Beanstalk::DEFAULT_TTR

integer DEFAULT_TTR

Mvc\Model::getWriteConnection

public getWriteConnection () Gets the connection used to write data to the model

Mvc\Collection::createIfNotExist

public createIfNotExist (array $criteria) Creates a document based on the values in the attributes, if not found by criteria Preferred way to avoid duplication is to create index on attribute $robot = new Robot(); $robot->name = “MyRobot”; $robot->type = “Droid”; //create only if robot with same name and type does not exist $robot->createIfNotExist( array( “name”, “type” ) );

Db\AdapterInterface::getRealSQLStatement

abstract public getRealSQLStatement () ...

Logger\Formatter::interpolate

public interpolate (string $message, [array $context]) Interpolates context values into the message placeholders

Mvc\Model\Criteria::cache

public cache (array $cache) Sets the cache options in the criteria This method replaces all previously set cache options

Mvc\View::getPartial

public getPartial (mixed $partialPath, [mixed $params]) Renders a partial view // Retrieve the contents of a partial echo $this->getPartial('shared/footer'); // Retrieve the contents of a partial with arguments echo $this->getPartial('shared/footer', ['content' => $html]);

Validation\Validator\Email::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Mvc\View::cache

public cache ([mixed $options]) Cache the actual view render to certain level $this->view->cache(['key' => 'my-key', 'lifetime' => 86400]);