Mvc\Router\Route::beforeMatch

public beforeMatch (mixed $callback) Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched $router->add('/login', array( 'module' => 'admin', 'controller' => 'session' ))->beforeMatch(function ($uri, $route) { // Check if the request was made with Ajax if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'xmlhttprequest') { return false; } re

Mvc\Model\ManagerInterface::getHasMany

abstract public getHasMany (Phalcon\Mvc\ModelInterface $model) ...

Mvc\Router::getMatches

public getMatches () Returns the sub expressions in the regular expression matched

Mvc\Model\MetaData::readMetaDataIndex

final public readMetaDataIndex (Phalcon\Mvc\ModelInterface $model, mixed $index) Reads meta-data for certain model print_r($metaData->readMetaDataIndex(new Robots(), 0);

Db\Dialect\Postgresql::describeColumns

public describeColumns (mixed $table, [mixed $schema]) Generates SQL describing a table print_r($dialect->describeColumns("posts"));

Forms\Element\File

extends abstract class Phalcon\Forms\Element implements Phalcon\Forms\ElementInterface Source on GitHub Component INPUT[type=file] for forms Methods public render ([array $attributes]) Renders the element widget returning html public __construct (string $name, [array $attributes]) inherited from Phalcon\Forms\Element Phalcon\Forms\Element constructor public setForm (Phalcon\Forms\Form $form) inherited from Phalcon\Forms\Element Sets the parent form to the element public getForm () inherited f

Events\ManagerInterface

Source on GitHub Methods abstract public attach (mixed $eventType, mixed $handler) ... abstract public detach (mixed $eventType, mixed $handler) ... abstract public detachAll ([mixed $type]) ... abstract public fire (mixed $eventType, mixed $source, [mixed $data]) ... abstract public getListeners (mixed $type) ...

Forms\Element\Hidden

extends abstract class Phalcon\Forms\Element implements Phalcon\Forms\ElementInterface Source on GitHub Component INPUT[type=hidden] for forms Methods public render ([array $attributes]) Renders the element widget returning html public __construct (string $name, [array $attributes]) inherited from Phalcon\Forms\Element Phalcon\Forms\Element constructor public setForm (Phalcon\Forms\Form $form) inherited from Phalcon\Forms\Element Sets the parent form to the element public getForm () inherited

Mvc\Model\MetaData\Redis::MODELS_ATTRIBUTES

integer MODELS_ATTRIBUTES

Db::FETCH_NUM

integer FETCH_NUM