PHP Класс Endpoint_REST, atk4

Наследование: extends AbstractModel
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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.

Описание методов

_input() защищенный Метод

Filtering input data.
protected _input ( array $data, boolean $filter = true ) : array
$data array
$filter boolean
Результат array

_model() защищенный Метод

Method returns new instance of the model we will operate on. Instead of using this method, you can use $this->model instead.
protected _model ( ) : Model
Результат Model

delete() публичный Метод

[delete description].
public delete ( ) : boolean
Результат boolean

get() публичный Метод

[get description].
public get ( ) : array
Результат array

head() публичный Метод

see get().
public head ( ) : array
Результат array

init() публичный Метод

init.
public init ( )

outputMany() защищенный Метод

Generic outptu filtering method for multiple records of data.
protected outputMany ( object | array $data ) : array
$data object | array
Результат array

outputOne() защищенный Метод

Generic method for returning single record item of data, which can be used for filtering or cleaning up.
protected outputOne ( object | array $data ) : array
$data object | array
Результат array

patch() публичный Метод

See put().
public patch ( array $data ) : array
$data array
Результат array

post() публичный Метод

Create a new entry in the collection. The new entry's URI is assigned automatically and is usually returned by the operation.
public post ( array $data ) : array
$data array POST Data
Результат array

put() публичный Метод

Replace the addressed member of the collection, or if it doesn't exist, create it.
public put ( array $data ) : array
$data array
Результат array

put_post() публичный Метод

As you extend this class and redefine methods, you should properly use POST or PUT. See http://stackoverflow.com/a/2691891/204819
public put_post ( array $data ) : array
$data array
Результат array

Описание свойств

$allow_add публичное свойство

public $allow_add

$allow_delete публичное свойство

public $allow_delete

$allow_edit публичное свойство

public $allow_edit

$allow_list публичное свойство

public $allow_list

$allow_list_one публичное свойство

public $allow_list_one

$authenticate публичное свойство

authenticated user
public $authenticate

$doc_url публичное свойство

@codingStandardsIgnoreEnd
public $doc_url

$id_field публичное свойство

public $id_field

$model_class публичное свойство

public $model_class

$user публичное свойство

public $user

$user_id_field публичное свойство

public $user_id_field