Phalcon Developer Tools on Linux

These steps will guide you through the process of installing Phalcon Developer Tools for Linux. Prerequisites The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installation section for instructions. Download You can download a cross platform package containing the developer tools from the Download section. Also you can clone it from Github. Open a terminal and type the command below: git clone git://github.com/phalcon/phalcon-devtools.gi

Mvc\Model\Behavior\Timestampable::notify

public notify (mixed $type, Phalcon\Mvc\ModelInterface $model) Listens for notifications from the models manager

Cache\Backend\Mongo

extends abstract class Phalcon\Cache\Backend implements Phalcon\Cache\BackendInterface Source on GitHub Allows to cache output fragments, PHP data or raw data to a MongoDb backend use Phalcon\Cache\Backend\Mongo; use Phalcon\Cache\Frontend\Base64; // Cache data for 2 days $frontCache = new Base64([ 'lifetime' => 172800 ]); // Create a MongoDB cache $cache = new Mongo($frontCache, [ 'server' => "mongodb://localhost", 'db' => 'caches', 'collection' => 'imag

Db\Index

implements Phalcon\Db\IndexInterface Source on GitHub Allows to define indexes to be used on tables. Indexes are a common way to enhance database performance. An index allows the database server to find and retrieve specific rows much faster than it could do without an index Methods public getName () Index name public getColumns () Index columns public getType () Index type public __construct (mixed $name, array $columns, [mixed $type]) Phalcon\Db\Index constructor public static __set_state (ar

Mvc\ViewInterface

implements Phalcon\Mvc\ViewBaseInterface Source on GitHub Methods abstract public setLayoutsDir (mixed $layoutsDir) ... abstract public getLayoutsDir () ... abstract public setPartialsDir (mixed $partialsDir) ... abstract public getPartialsDir () ... abstract public setBasePath (mixed $basePath) ... abstract public getBasePath () ... abstract public setRenderLevel (mixed $level) ... abstract public setMainView (mixed $viewPath) ... abstract public getMainView () ... abstract public setLayout (m

Session\Adapter\Libmemcached::gc

public gc ()

Mvc\Model\Manager::existsHasOne

public existsHasOne (mixed $modelName, mixed $modelRelation) Checks whether a model has a hasOne relation with another model

Cache\Frontend\Json

implements Phalcon\Cache\FrontendInterface Source on GitHub Allows to cache data converting/deconverting them to JSON. This adapter uses the json_encode/json_decode PHP’s functions As the data is encoded in JSON other systems accessing the same backend could process them <?php // Cache the data for 2 days $frontCache = new \Phalcon\Cache\Frontend\Json(array( "lifetime" => 172800 )); //Create the Cache setting memcached connection options $cache = new \Phalcon\Cache\Backend\Memc

Mvc\Model::cloneResultMapHydrate

public static mixed cloneResultMapHydrate (array $data, array $columnMap, int $hydrationMode) Returns an hydrated result based on the data and the column map

Mvc\Model\Transaction::setRollbackOnAbort

public setRollbackOnAbort (mixed $rollbackOnAbort) Sets flag to rollback on abort the HTTP connection