Property | Type | Description | |
---|---|---|---|
$cacheDir | |||
$format | |||
$jsonAssoc | |||
$method | |||
$mode | |||
$params | |||
$realm | |||
$root | |||
$rootPath | |||
$url | @todo add type hint |
Property | Type | Description | |
---|---|---|---|
$cached | |||
$errorClasses | |||
$map |
Method | Description | |
---|---|---|
__construct ( string $mode = 'debug', $realm = 'Rest Server' ) | The constructor. | |
__destruct ( ) | ||
addClass ( $class, $basePath = '' ) | ||
addErrorClass ( $class ) | ||
getData ( ) | ||
getFormat ( ) | ||
getMethod ( ) | ||
getPath ( ) | ||
handle ( ) | ||
handleError ( $statusCode, $errorMessage = null ) | ||
refreshCache ( ) | ||
sendData ( $data ) | ||
setJsonAssoc ( $value ) | ||
setRootPath ( $path ) | ||
setStatus ( $code ) | ||
unauthorized ( $ask = false ) |
Method | Description | |
---|---|---|
findUrl ( ) | ||
generateMap ( $class, $basePath ) | ||
loadCache ( ) |
Method | Description | |
---|---|---|
xml_encode ( $mixed, $domElement = null, $DOMDocument = null ) |
public __construct ( string $mode = 'debug', $realm = 'Rest Server' ) | ||
$mode | string | The mode, either debug or production |