Cache\Frontend\Base64

implements Phalcon\Cache\FrontendInterface Source on GitHub Allows to cache data converting/deconverting them to base64. This adapter uses the base64_encode/base64_decode PHP’s functions <?php // Cache the files for 2 days using a Base64 frontend $frontCache = new \Phalcon\Cache\Frontend\Base64(array( "lifetime" => 172800 )); //Create a MongoDB cache $cache = new \Phalcon\Cache\Backend\Mongo($frontCache, array( 'server' => "mongodb://localhost", 'db' => 'caches'

Mvc\Collection\Behavior\SoftDelete

extends abstract class Phalcon\Mvc\Collection\Behavior implements Phalcon\Mvc\Collection\BehaviorInterface Source on GitHub Instead of permanently delete a record it marks the record as deleted changing the value of a flag column Methods public notify (mixed $type, Phalcon\Mvc\CollectionInterface $model) Listens for notifications from the models manager public __construct ([array $options]) inherited from Phalcon\Mvc\Collection\Behavior Phalcon\Mvc\Collection\Behavior protected mustTakeAction

Validation\MessageInterface

Source on GitHub Methods abstract public setType (mixed $type) ... abstract public getType () ... abstract public setMessage (mixed $message) ... abstract public getMessage () ... abstract public setField (mixed $field) ... abstract public getField () ... abstract public __toString () ... abstract public static __set_state (array $message) ...

Validation::getEntity

public object getEntity () Returns the bound entity

Annotations\Adapter

implements Phalcon\Annotations\AdapterInterface Source on GitHub This is the base class for Phalcon\Annotations adapters Methods public setReader (Phalcon\Annotations\ReaderInterface $reader) Sets the annotations parser public getReader () Returns the annotation reader public get (string | object $className) Parses or retrieves all the annotations found in a class public getMethods (mixed $className) Returns the annotations found in all the class’ methods public getMethod (mixed $className, mix

Forms\Manager

Source on GitHub Methods public Phalcon\Forms\Form create ([string $name], [object $entity]) Creates a form registering it in the forms manager public get (mixed $name) Returns a form by its name public has (mixed $name) Checks if a form is registered in the forms manager public set (mixed $name, Phalcon\Forms\Form $form) Registers a form in the Forms Manager

Mvc\Dispatcher::EXCEPTION_HANDLER_NOT_FOUND

integer EXCEPTION_HANDLER_NOT_FOUND

Acl\AdapterInterface::setDefaultAction

abstract public setDefaultAction (mixed $defaultAccess) ...

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\Url::getStatic

public getStatic ([mixed $uri]) Generates a URL for a static resource // Generate a URL for a static resource echo $url->getStatic("img/logo.png"); // Generate a URL for a static predefined route echo $url->getStatic(array('for' => 'logo-cdn'));