PHP Class Controllers\xAPI\StatementStoreController

Afficher le fichier Open project: learninglocker/learninglocker

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

store() public méthode

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

update() public méthode

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