Class Error

Description

TAM AG CMS

  • author: DevilDev

Located in /error/Error.php (line 11)

Modules
   |
   --Error
Variable Summary
static Error $_instance
Method Summary
static Error getInstance ()
Error __construct ([BootAbstract $boot = null])
void closeSite ()
void show404 ([string $str = ''])
string showError (string $msg, [string $error_title = null], [ $code = 500])
void showErrorModule (string $str)
string showInfo (string $text, [string $title = null])
string showNotAllow ()
type showWarning (string $msg, [string $title = null], [bool $back = false])
Variables
static Error $_instance = null (line 18)

Singleton instance

  • access: protected
Methods
static method getInstance (line 29)

Returns an instance of Error

Singleton pattern implementation

  • return: Provides a fluent interface
  • access: public
static Error getInstance ()
Constructor __construct (line 39)

Module constructor

Error __construct ([BootAbstract $boot = null])
  • BootAbstract $boot
closeSite (line 143)
  • access: public
void closeSite ()
show404 (line 61)

Create html page 404

  • access: public
void show404 ([string $str = ''])
  • string $str: error message
showError (line 108)

Create html error message

  • return: html error
  • access: public
string showError (string $msg, [string $error_title = null], [ $code = 500])
  • string $msg: error message
  • string $error_title: error title
  • $code
showErrorModule (line 94)

Create html error if module not exists

  • access: public
void showErrorModule (string $str)
  • string $str: html error
showInfo (line 138)

Create html for information

  • return: html info page
  • access: public
string showInfo (string $text, [string $title = null])
  • string $text
  • string $title
showNotAllow (line 83)

Create error html if not allow

  • return: html
  • access: public
string showNotAllow ()
showWarning (line 123)

Create html message by warning

  • access: public
type showWarning (string $msg, [string $title = null], [bool $back = false])
  • string $msg
  • string $title
  • bool $back

Documentation generated on Fri, 19 Aug 2016 17:10:30 +0200 by phpDocumentor 1.4.3