cvs: php4 /pear PEAR.php

From: Date: Sun, 26 May 2002 12:50:36 +0000
Subject: cvs: php4 /pear PEAR.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4089@lists.php.net to get a copy of this message
ssb Sun May 26 08:50:36 2002 EDT Modified files: /php4/pear PEAR.php Log: * phpdoc fixes (un-break the broken) Index: php4/pear/PEAR.php diff -u php4/pear/PEAR.php:1.38 php4/pear/PEAR.php:1.39 --- php4/pear/PEAR.php:1.38 Fri Apr 19 09:58:25 2002 +++ php4/pear/PEAR.php Sun May 26 08:50:36 2002 @@ -18,7 +18,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: PEAR.php,v 1.38 2002/04/19 13:58:25 ssb Exp $ +// $Id: PEAR.php,v 1.39 2002/05/26 12:50:36 ssb Exp $ // define('PEAR_ERROR_RETURN', 1); @@ -127,8 +127,8 @@ * $_PEAR_destructor_object_list for destructor emulation if a * destructor object exists. * - * @param string (optional) which class to use for error objects, - * defaults to PEAR_Error. + * @param string $error_class (optional) which class to use for + * error objects, defaults to PEAR_Error. * @access public * @return void */ @@ -183,8 +183,8 @@ * You MUST use a reference, or they will not persist! * * @access public - * @param string The calling classname, to prevent clashes - * @param string The variable to retrieve. + * @param string $class The calling classname, to prevent clashes + * @param string $var The variable to retrieve. * @return mixed A reference to the variable. If not set it will be * auto initialised to NULL. */ @@ -202,8 +202,8 @@ * classes. * * @access public - * @param mixed The function name (or array of class/method) to call - * @param mixed The arguments to pass to the function + * @param mixed $func The function name (or array of class/method) to call + * @param mixed $args The arguments to pass to the function * @return void */ function registerShutdownFunc($func, $args = array()) @@ -217,7 +217,7 @@ /** * Tell whether a value is a PEAR error. * - * @param mixed the value to test + * @param mixed $data the value to test * @access public * @return bool true if parameter is an error */ @@ -237,12 +237,12 @@ * PEAR objects. If called in an object, setErrorHandling sets * the default behaviour for that object. * - * @param int + * @param int $mode * One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE or * PEAR_ERROR_CALLBACK. * - * @param mixed + * @param mixed $options * When $mode is PEAR_ERROR_TRIGGER, this is the error level (one * of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). * @@ -318,7 +318,7 @@ * * Note that this method can not be called statically * - * @param mixed a single error code or an array of error codes to expect + * @param mixed $code a single error code or an array of error codes to expect * * @return int the new depth of the "expected errors" stack * @access public @@ -356,16 +356,16 @@ * handling applied. If the $mode and $options parameters are not * specified, the object's defaults are used. * - * @param mixed a text error message or a PEAR error object + * @param mixed $message a text error message or a PEAR error object * - * @param int a numeric error code (it is up to your class + * @param int $code a numeric error code (it is up to your class * to define these if you want to use codes) * - * @param int One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, + * @param int $mode One of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, * PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE or * PEAR_ERROR_CALLBACK. * - * @param mixed If $mode is PEAR_ERROR_TRIGGER, this parameter + * @param mixed $options If $mode is PEAR_ERROR_TRIGGER, this parameter * specifies the PHP-internal error level (one of * E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). * If $mode is PEAR_ERROR_CALLBACK, this @@ -373,13 +373,13 @@ * method. In other error modes this parameter * is ignored. * - * @param string If you need to pass along for example debug + * @param string $userinfo If you need to pass along for example debug * information, this parameter is meant for that. * - * @param string The returned error object will be instantiated - * from this class, if specified. + * @param string $error_class The returned error object will be + * instantiated from this class, if specified. * - * @param bool If true, raiseError will only pass error codes, + * @param bool $skipmsg If true, raiseError will only pass error codes, * the error message parameter will be dropped. * * @access public @@ -445,8 +445,8 @@ * you can easily override the actual error handler for some code and restore * it later with popErrorHandling. * - * @param mixed (same as setErrorHandling) - * @param mixed (same as setErrorHandling) + * @param mixed $mode (same as setErrorHandling) + * @param mixed $options (same as setErrorHandling) * * @return bool Always true * @@ -557,17 +557,19 @@ /** * PEAR_Error constructor * - * @param string message + * @param string $message message * - * @param int (optional) error code + * @param int $code (optional) error code * - * @param int (optional) error mode, one of: PEAR_ERROR_RETURN, + * @param int $mode (optional) error mode, one of: PEAR_ERROR_RETURN, * PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER or * PEAR_ERROR_CALLBACK * - * @param mixed (optional) error level, _OR_ in the case of + * @param mixed $options (optional) error level, _OR_ in the case of * PEAR_ERROR_CALLBACK, the callback function or object/method * tuple. + * + * @param string $userinfo (optional) additional user/debug info * * @access public *

« previous php.pear.cvs (#4089) next »