Cache\Multiple

Source on GitHub Allows to read to chained backend adapters writing to multiple backends use Phalcon\Cache\Frontend\Data as DataFrontend, Phalcon\Cache\Multiple, Phalcon\Cache\Backend\Apc as ApcCache, Phalcon\Cache\Backend\Memcache as MemcacheCache, Phalcon\Cache\Backend\File as FileCache; $ultraFastFrontend = new DataFrontend(array( "lifetime" => 3600 )); $fastFrontend = new DataFrontend(array( "lifetime" => 86400 )); $slowFront

Mvc\Model\Validator\Inclusionin

extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Phalcon\Mvc\Model\Validator\InclusionIn Check if a value is included into a list of values use Phalcon\Mvc\Model\Validator\InclusionIn as InclusionInValidator; class Subscriptors extends \Phalcon\Mvc\Model { public function validation() { $this->validate(new InclusionInValidator(array( "field" => 'status', 'domain

Tag\Select

Source on GitHub Generates a SELECT html tag using a static array of values or a Phalcon\Mvc\Model resultset Methods public static selectField (array $parameters, [array $data]) Generates a SELECT tag private static _optionsFromResultset (Phalcon\Mvc\Model\Resultset $resultset, array $using, mixed $value, string $closeOption) Generate the OPTION tags based on a resultset private static _optionsFromArray (array $data, mixed $value, string $closeOption) Generate the OPTION tags based on an array

Mvc\Model\Manager::getRelationRecords

public Phalcon\Mvc\Model\Resultset\Simple | Phalcon\Mvc\Model\Resultset\Simple | int | false getRelationRecords (Phalcon\Mvc\Model\RelationInterface $relation, mixed $method, Phalcon\Mvc\ModelInterface $record, [mixed $parameters]) Helper method to query records based on a relation definition

Mvc\View\Engine::getContent

public getContent () Returns cached output on another view stage

Mvc\Model\Transaction\Manager::setRollbackPendent

public setRollbackPendent (mixed $rollbackPendent) Set if the transaction manager must register a shutdown function to clean up pendent transactions

Config

implements ArrayAccess, Countable Source on GitHub Phalcon\Config is designed to simplify the access to, and the use of, configuration data within applications. It provides a nested object property based user interface for accessing this configuration data within application code. $config = new \Phalcon\Config(array( "database" => array( "adapter" => "Mysql", "host" => "localhost", "username" => "scott", "password" => "cheetah",

Http\Cookie

implements Phalcon\Http\CookieInterface, Phalcon\Di\InjectionAwareInterface Source on GitHub Provide OO wrappers to manage a HTTP cookie Methods public __construct (string $name, [mixed $value], [int $expire], [string $path], [boolean $secure], [string $domain], [boolean $httpOnly]) Phalcon\Http\Cookie constructor public setDI (Phalcon\DiInterface $dependencyInjector) Sets the dependency injector public getDI () Returns the internal dependency injector public Phalcon\Http\Cookie setValue (strin

Mvc\Model\Query::TYPE_UPDATE

integer TYPE_UPDATE

Http\Response\Cookies::getDI

public getDI () Returns the internal dependency injector