[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/3rdParty/PhpShell/ -> php-shell-cmd.php (sommaire)

the wrapper around the PHP_Shell class - load extensions - set default error-handler - add exec-hooks for the extensions

Poids: 171 lignes (6 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 8 fichiers
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/InlineHelp.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/LoadScript.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/Autoload.php
 framework/3rdParty/PhpShell/PHP/Shell.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/ExecutionTime.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/AutoloadDebug.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/VerbosePrint.php
 framework/3rdParty/PhpShell/PHP/Shell/Extensions/Colour.php

Définit 2 fonctions

  __shell_default_error_handler()
  __autoload()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

__shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx)   X-Ref
default error-handler

Instead of printing the NOTICE or WARNING from php we wan't the turn non-FATAL
messages into exceptions and handle them in our own way.

you can set your own error-handler by createing a function named
__shell_error_handler

param: integer $errno Error-Number
param: string $errstr Error-Message
param: string $errfile Filename where the error was raised
param: interger $errline Line-Number in the File
param: mixed $errctx ...

__autoload($classname)   X-Ref
default autoloader

If a class doesn't exist try to load it by guessing the filename
class PHP_Shell should be located in PHP/Shell.php.

you can set your own autoloader by defining __autoload() before including
this file

param: string $classname name of the class



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7