PHP Class Controllers\xAPI\StatementStoreController

Datei anzeigen Open project: learninglocker/learninglocker

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

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

store() public method

Stores (POSTs) a newly created statement in storage.
public store ( $options ) : Response
return Response

update() public method

Updates (PUTs) Statement with the given id.
public update ( $options ) : Response
return Response