PHP Class Controllers\xAPI\BaseController

Inheritance: extends Controllers\API\BaseController
Datei anzeigen Open project: learninglocker/learninglocker Class Usage Examples

Protected Properties

Property 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.

Public Methods

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

Protected Methods

Method 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 method

Constructs a new xAPI controller.
public __construct ( )

checkVersion() protected method

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

decodeValue() protected method

protected decodeValue ( $value )

get() public method

public get ( )

optionalValue() protected method

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

requiredValue() protected method

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

selectMethod() public method

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

setMethod() protected method

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

setParameters() public method

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

validateValue() protected method

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

validatedParam() protected method

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