PHP 클래스 Controllers\xAPI\BaseController

상속: extends Controllers\API\BaseController
파일 보기 프로젝트 열기: learninglocker/learninglocker 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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 )

메소드 상세

__construct() 공개 메소드

Constructs a new xAPI controller.
public __construct ( )

checkVersion() 보호된 메소드

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

decodeValue() 보호된 메소드

protected decodeValue ( $value )

get() 공개 메소드

public get ( )

optionalValue() 보호된 메소드

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

requiredValue() 보호된 메소드

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

selectMethod() 공개 메소드

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

setMethod() 보호된 메소드

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

setParameters() 공개 메소드

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

validateValue() 보호된 메소드

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

validatedParam() 보호된 메소드

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

프로퍼티 상세

$lrs 보호되어 있는 프로퍼티

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

$method 보호되어 있는 프로퍼티

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

$params 보호되어 있는 프로퍼티

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