SmartLine.php
SmartLine 0.1
Zed. The immensity of stars. The HyperShip. The people.
(c) 2010, Dereckson, some rights reserved. Released under BSD license.
0.1 2007-07-28 01:36 [DcK] Initial release 2010-07-02 00:39 [Dck] Documentation
Tags
Table of Contents
Classes
- SmartLineCommand
- The SmartLine command base class.
- SmartLine
- This class represents a SmartLine instance
- ShowCommandsSmartLineCommand
- The standard command "showcommands"
- HelpSmartLineCommand
- The standard command "help"
Constants
Functions
- SmartLineHandler() : mixed
- Error handler called during SmartLine command execution.
Constants
STDERR
public
mixed
STDERR
= -1
STDOUT
public
mixed
STDOUT
= 1
Functions
SmartLineHandler()
Error handler called during SmartLine command execution.
SmartLineHandler(int $level, string $error, string $file, int $line) : mixed
Any error occurring during command execution will be set in STDERR.
To get an array with all the errors:
$errors = $yourSmartLine->gets_all(STDERR)
Or to prints all the error:
$yourSmartLine->prints_all(STDERR)
Or to pops (gets and deletes) only the last error:
$lastError = $yourSmartLine->gets(STDERR)
Parameters
- $level : int
-
The PHP error level
- $error : string
-
The error description
- $file : string
-
The script where the error occurred
- $line : int
-
The line where the error occurred