BADINPUT
in package
BADINPUT
Display various error messages when input has gone wrong and, if necessary, redirect and close the script
If an $object and $method are provided, it is expected that that method will exit the script tidily itself and will provide a means to print $error. Otherwise, $closeType calls the CLOSExxx object to exit (this is the default).
Table of Contents
Properties
- $closeType : mixed
- string
Methods
- __construct() : mixed
- BADINPUT
- close() : mixed
- Close and exit the current script operation.
Properties
$closeType
string
public
mixed
$closeType
= \FALSE
Methods
__construct()
BADINPUT
public
__construct() : mixed
close()
Close and exit the current script operation.
public
close(string $error[, object &$object = false ][, mixed $method = false ]) : mixed
Parameters
- $error : string
-
Error message
- $object : object = false
-
Reference to object. Default is FALSE
- $method : mixed = false
-
If string, method in $object. If array, 1st element is method in $object followed by other messages to pass to the method. Default is FALSE