PHP Class Controllers\xAPI\BaseController

Inheritance: extends Controllers\API\BaseController
Afficher le fichier Open project: learninglocker/learninglocker Class Usage Examples

Protected Properties

Свойство Type Description
$lrs Defines properties to be set by the constructor.
$method Defines properties to be set by the constructor.
$params Defines properties to be set by the constructor.

Méthodes publiques

Méthode Description
__construct ( ) Constructs a new xAPI controller.
get ( )
selectMethod ( ) : mixed Selects a method to be called.
setParameters ( ) Get all of the input and files for the request and store them in params.

Méthodes protégées

Méthode Description
checkVersion ( ) Checks the request header for correct xAPI version.
decodeValue ( $value )
optionalValue ( $name, $value, $type )
requiredValue ( $name, $value, $type )
setMethod ( ) Sets the method (to support CORS).
validateValue ( $name, $value, $type )
validatedParam ( $type, $param, $default = null )

Method Details

__construct() public méthode

Constructs a new xAPI controller.
public __construct ( )

checkVersion() protected méthode

Checks the request header for correct xAPI version.
protected checkVersion ( )

decodeValue() protected méthode

protected decodeValue ( $value )

get() public méthode

public get ( )

optionalValue() protected méthode

protected optionalValue ( $name, $value, $type )

requiredValue() protected méthode

protected requiredValue ( $name, $value, $type )

selectMethod() public méthode

Selects a method to be called.
public selectMethod ( ) : mixed
Résultat mixed Result of the method.

setMethod() protected méthode

Sets the method (to support CORS).
protected setMethod ( )

setParameters() public méthode

Get all of the input and files for the request and store them in params.
public setParameters ( )

validateValue() protected méthode

protected validateValue ( $name, $value, $type )

validatedParam() protected méthode

protected validatedParam ( $type, $param, $default = null )

Property Details

$lrs protected_oe property

Defines properties to be set by the constructor.
protected $lrs

$method protected_oe property

Defines properties to be set by the constructor.
protected $method

$params protected_oe property

Defines properties to be set by the constructor.
protected $params