Subversion Repositories eFlore/Applications.cel

Rev

Rev 418 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 418 Rev 3473
Line 144... Line 144...
144
     * @param string $error_class  (optional) which class to use for
144
     * @param string $error_class  (optional) which class to use for
145
     *        error objects, defaults to PEAR_Error.
145
     *        error objects, defaults to PEAR_Error.
146
     * @access public
146
     * @access public
147
     * @return void
147
     * @return void
148
     */
148
     */
149
    function PEAR($error_class = null)
149
    function __construct($error_class = null)
150
    {
150
    {
151
        $classname = get_class($this);
151
        $classname = get_class($this);
152
        if ($this->_debug) {
152
        if ($this->_debug) {
153
            print "PEAR constructor called, class=$classname\n";
153
            print "PEAR constructor called, class=$classname\n";
154
        }
154
        }
Line 722... Line 722...
722
     * @param string $userinfo (optional) additional user/debug info
722
     * @param string $userinfo (optional) additional user/debug info
723
     *
723
     *
724
     * @access public
724
     * @access public
725
     *
725
     *
726
     */
726
     */
727
    function PEAR_Error($message = 'unknown error', $code = null,
727
    function __construct($message = 'unknown error', $code = null,
728
                        $mode = null, $options = null, $userinfo = null)
728
                        $mode = null, $options = null, $userinfo = null)
729
    {
729
    {
730
        if ($mode === null) {
730
        if ($mode === null) {
731
            $mode = PEAR_ERROR_RETURN;
731
            $mode = PEAR_ERROR_RETURN;
732
        }
732
        }