PHP Класс Controllers\xAPI\StatementStoreController

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Locker\Repository\Statement\Repository $statement_repo ) Constructs a new StatementStoreController.
store ( $options ) : Response Stores (POSTs) a newly created statement in storage.
update ( $options ) : Response Updates (PUTs) Statement with the given id.

Приватные методы

Метод Описание
createStatements ( $options, callable $modifier = null ) : AssocArray Creates statements from the content of the request.
getAuthority ( $client )
getCORSHeaders ( ) : [String Gets the CORS headers.
getParts ( ) : ['content' Deals with multipart requests.

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

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

Constructs a new StatementStoreController.
public __construct ( Locker\Repository\Statement\Repository $statement_repo )
$statement_repo Locker\Repository\Statement\Repository

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

Stores (POSTs) a newly created statement in storage.
public store ( $options ) : Response
Результат Response

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

Updates (PUTs) Statement with the given id.
public update ( $options ) : Response
Результат Response