Mvc\Model\Row::toArray

public array toArray () Returns the instance as an array representation

Db\Profiler::reset

public reset () Resets the profiler, cleaning up all the profiles

Cache\Backend\Redis::delete

public delete (int | string $keyName) Deletes a value from the cache by its key

Flash::setAutomaticHtml

public setAutomaticHtml (mixed $automaticHtml) Set if the output must be implicitly formatted with HTML

Mvc\ModelInterface::getSource

abstract public getSource () ...

Validating Models

Validating Data Integrity Phalcon\Mvc\Model provides several events to validate data and implement business rules. The special “validation” event allows us to call built-in validators over the record. Phalcon exposes a few built-in validators that can be used at this stage of validation. The following example shows how to use it: namespace Store\Toys; use Phalcon\Mvc\Model; use Phalcon\Validation; use Phalcon\Validation\Validator\Uniqueness; use Phalcon\Validation\Validator\InclusionIn; class

Crypt::encrypt

public encrypt (mixed $text, [mixed $key]) Encrypts a text $encrypted = $crypt->encrypt("Ultra-secret text", "encrypt password");

Mvc\ModelInterface::getReadConnection

abstract public getReadConnection () ...

Db\Adapter\Pdo::prepare

public prepare (mixed $sqlStatement) Returns a PDO prepared statement to be executed with ‘executePrepared’ use Phalcon\Db\Column; $statement = $db->prepare('SELECT * FROM robots WHERE name = :name'); $result = $connection->executePrepared($statement, ['name' => 'Voltron'], ['name' => Column::BIND_PARAM_INT]);

Db\Adapter::getDialectType

public getDialectType () Name of the dialect used