Zed. The source code to build a world.

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
subpackage

SmartLine

author

Sébastien Santoro aka Dereckson dereckson@espace-win.org

copyright

2007 Sébastien Santoro aka Dereckson

license

http://www.opensource.org/licenses/bsd-license.php BSD

version
0.1
link
http://scherzo.dereckson.be/doc/zed
link
http://zed.dereckson.be/
link
http://bitbucket.org/dereckson/smartline
filesource

/////////////////////////////////////////////////////////////////////////////// // SECTION I - INITIALIZATION ///////////////////////////////////////////////////////////////////////////////

//Constants

The standard, regular output (like STDOUT on POSIX systems)

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

STDERR  = -1
STDOUT  = 1

Functions

SmartLineHandler()  : mixed
Error handler called during SmartLine command execution.

Constants

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

Tags
link

set_error_handler, PHP manual

link

Error handling examples, PHP manual


        
On this page

Search results