Events\EventsAwareInterface

Source on GitHub Methods abstract public setEventsManager (Phalcon\Events\ManagerInterface $eventsManager) ... abstract public getEventsManager () ...

EscaperInterface

Source on GitHub Methods abstract public setEncoding (mixed $encoding) ... abstract public getEncoding () ... abstract public setHtmlQuoteType (mixed $quoteType) ... abstract public escapeHtml (mixed $text) ... abstract public escapeHtmlAttr (mixed $text) ... abstract public escapeCss (mixed $css) ... abstract public escapeJs (mixed $js) ... abstract public escapeUrl (mixed $url) ...

Mvc\Model::findFirst

public static static findFirst ([string | array $parameters]) Allows to query the first record that match the specified conditions //What's the first robot in robots table? $robot = Robots::findFirst(); echo "The robot name is ", $robot->name; //What's the first mechanical robot in robots table? $robot = Robots::findFirst("type='mechanical'"); echo "The first mechanical robot name is ", $robot->name; //Get first virtual robot ordered by name $robot = Robots::findFirst(array("type

Mvc\Model\MetaData\Redis::MODELS_AUTOMATIC_DEFAULT_UPDATE

integer MODELS_AUTOMATIC_DEFAULT_UPDATE

Mvc\Micro\Collection

implements Phalcon\Mvc\Micro\CollectionInterface Source on GitHub Groups Micro-Mvc handlers as controllers $app = new \Phalcon\Mvc\Micro(); $collection = new Collection(); $collection->setHandler(new PostsController()); $collection->get('/posts/edit/{id}', 'edit'); $app->mount($collection); Methods protected _addMap (string | array $method, string $routePattern, mixed $handler, string $name) Internal function to add a handler to the group public setPrefix (mixed $prefix) Sets

Mvc\Model\ResultInterface

Source on GitHub Methods abstract public setDirtyState (mixed $dirtyState) ...

Tag::getDocType

public static getDocType () Get the document type declaration of content

Mvc\Micro\CollectionInterface::getPrefix

abstract public getPrefix () ...

Tag::numericField

public static string numericField (array $parameters) Builds a HTML input[type=”number”] tag echo Phalcon\Tag::numericField(array("price", "min" => "1", "max" => "5"));

Validation\Validator\ExclusionIn

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Check if a value is not included into a list of values use Phalcon\Validation\Validator\ExclusionIn; $validator->add('status', new ExclusionIn([ 'message' => 'The status must not be A or B', 'domain' => ['A', 'B'] ])); $validator->add(['status', 'type'], new ExclusionIn([ 'message' => [ 'status' => 'The status must not be A or B',