Свойство | Тип | Описание | |
---|---|---|---|
$allow_add | |||
$allow_delete | |||
$allow_edit | |||
$allow_list | |||
$allow_list_one | |||
$authenticate | authenticated user | ||
$doc_url | @codingStandardsIgnoreEnd | ||
$id_field | |||
$model_class | |||
$user | |||
$user_id_field |
Метод | Описание | |
---|---|---|
delete ( ) : boolean | [delete description]. | |
get ( ) : array | [get description]. | |
head ( ) : array | see get(). | |
init ( ) | init. | |
patch ( array $data ) : array | See put(). | |
post ( array $data ) : array | Create a new entry in the collection. The new entry's URI is assigned automatically and is usually returned by the operation. | |
put ( array $data ) : array | Replace the addressed member of the collection, or if it doesn't exist, create it. | |
put_post ( array $data ) : array | Because it's not really defined which of the two is used for updating the resource, Agile Toolkit will support put_post identically. Both of the requests are idempotent. |
Метод | Описание | |
---|---|---|
_input ( array $data, boolean $filter = true ) : array | Filtering input data. | |
_model ( ) : Model | Method returns new instance of the model we will operate on. Instead of using this method, you can use $this->model instead. | |
outputMany ( object | array $data ) : array | Generic outptu filtering method for multiple records of data. | |
outputOne ( object | array $data ) : array | Generic method for returning single record item of data, which can be used for filtering or cleaning up. |
protected _model ( ) : Model | ||
Результат | Model |