Mvc\Model::appendMessage

public appendMessage (Phalcon\Mvc\Model\MessageInterface $message) Appends a customized message on the validation process use Phalcon\Mvc\Model; use Phalcon\Mvc\Model\Message as Message; class Robots extends Model { public function beforeSave() { if ($this->name == 'Peter') { $message = new Message("Sorry, but a robot cannot be named Peter"); $this->appendMessage($message); } } }

Db\Dialect\Postgresql

extends abstract class Phalcon\Db\Dialect implements Phalcon\Db\DialectInterface Source on GitHub Generates database specific SQL for the PostgreSQL RDBMS Methods public getColumnDefinition (Phalcon\Db\ColumnInterface $column) Gets the column name in PostgreSQL public addColumn (mixed $tableName, mixed $schemaName, Phalcon\Db\ColumnInterface $column) Generates SQL to add a column to a table public modifyColumn (mixed $tableName, mixed $schemaName, Phalcon\Db\ColumnInterface $column, [Phalcon\Db

Mvc\Model\MetaData\Memory::MODELS_DEFAULT_VALUES

integer MODELS_DEFAULT_VALUES

Mvc\RouterInterface::getActionName

abstract public getActionName () ...

Mvc\Model::setConnectionService

public setConnectionService (mixed $connectionService) Sets the DependencyInjection connection service name

Mvc\View\Simple::__set

public __set (mixed $key, mixed $value) Magic method to pass variables to the views $this->view->products = $products;

Mvc\Micro\Collection::patch

public Phalcon\Mvc\Micro\Collection patch (string $routePattern, callable $handler, [string $name]) Maps a route to a handler that only matches if the HTTP method is PATCH

Forms\Element::getMessages

public getMessages () Returns the messages that belongs to the element The element needs to be attached to a form

Mvc\Model::average

public static double average ([array $parameters]) Allows to calculate the average value on a column matching the specified conditions //What's the average price of robots? $average = Robots::average(array('column' => 'price')); echo "The average price is ", $average, "\n"; //What's the average price of mechanical robots? $average = Robots::average(array("type='mechanical'", 'column' => 'price')); echo "The average price of mechanical robots is ", $average, "\n";

Cache\Backend\Xcache::exists

public boolean exists ([string $keyName], [long $lifetime]) Checks if cache exists and it isn’t expired