public setUserOptions (array $options) Sets options for the element
extends class Phalcon\Mvc\Model\Exception implements Throwable Source on GitHub This exception is generated when a model fails to save a record Phalcon\Mvc\Model must be set up to have this behavior Methods public __construct (Model $model, Message[] $validationMessages) Phalcon\Mvc\Model\ValidationFailed constructor public getModel () Returns the model that generated the messages public getMessages () Returns the complete group of messages produced in the validation final private Exception __c
abstract public appendMessage (Phalcon\Mvc\Model\MessageInterface $message) ...
abstract public static find ([mixed $parameters]) ...
In this tutorial, we will explain how to create a simple application that provides a RESTful API using the different HTTP methods: GET to retrieve and search data POST to add data PUT to update data DELETE to delete data Defining the API The API consists of the following methods: Method URL Action GET /api/robots Retrieves all robots GET /api/robots/search/Astro Searches for robots with ‘Astro’ in their name GET /api/robots/2 Retrieves robots based on primary key POST /api/robots Adds a new r
abstract public save ([mixed $file], [mixed $quality]) ...
public static __set_state (array $message) Magic __set_state helps to re-build messages variable exporting
public nquery (mixed $msgid1, mixed $msgid2, mixed $count, [mixed $placeholders], [mixed $domain]) The plural version of gettext(). Some languages have more than one form for plural messages dependent on the count.
public setDefaultNamespace (mixed $namespaceName) Sets the name of the default namespace
public registerFiles (array $files, [mixed $merge]) Registers files that are “non-classes” hence need a “require”. This is very useful for including files that only have functions
Page 314 of 382