PHP Класс Controllers\xAPI\BaseController

Наследование: extends Controllers\API\BaseController
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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