nchart_enforce_type [line 56]
void nchart_enforce_type(
object $obj, string $type
)
|
|
Ensures that $obj is of the type specified by $type. If it is not, it kills the script execution and reports the error.
Parameters:
|
object |
$obj: |
The object to type check. |
|
string |
$type: |
The type name. |
nchart_error [line 86]
void nchart_error(
[string $msg = ""], [bool $trace = true]
)
|
|
Kills script execution and outputs an error message and debug trace.
Parameters:
|
string |
$msg: |
The error message. |
|
bool |
$trace: |
Sets if the trace should be output. |