ErrorList Class


Description

Class that load the error list.

Class Variables

  • Boolean debug_active: If TRUE, the debug is active, inactive otherwise.
  • Array errors: List of error's.
  • Array uris: List of error's URIs.
  • Array descriptions: List of error's descriptions.

Methods

PUBLIC ErrorList __construct([$dir = ""])

ErrorList class Constructor

  • String dir: The directory where the configuration files are located

PRIVATE error($string): void

Function that shows the errors in the error_log if $debug_active is TRUE.

  • String string: String showed in the error_log.

PUBLIC hasError($error): void

Function that returns TRUE if the exist the error code send in the parameter.

  • String error: Error code defined in the OAuth2 protocol.

PUBLIC hasURI($error): void

Function that returns TRUE if the exist the URI of the error code send in the parameter.

  • String error: Error code defined in the OAuth2 protocol.

PUBLIC hasDescription($error): void

Function that returns TRUE if the exist the Description of the error code send in the parameter.

  • String error: Error code defined in the OAuth2 protocol.

PUBLIC getDescription($error): void

Function that returns the Description of the error code send in the parameter.

  • String error: Error code defined in the OAuth2 protocol.

PUBLIC getURI($error): void

Function that returns the URI of the error code send in the parameter.

  • String error: Error code defined in the OAuth2 protocol.

PRIVATE loadErrors($file): string

Auxiliar function that loads the errors from the file.

  • String file: file where the errors are defined