HTTP_Upload
[ class tree: HTTP_Upload ] [ index: HTTP_Upload ] [ all elements ]

Class: HTTP_Upload_Error

Source Location: /HTTP_Upload-1.0.0b4/HTTP/Upload/Error.php

Class Overview

PEAR
   |
   --HTTP_Upload_Error

Error Class for HTTP_Upload


Author(s):

Variables

Methods


Child classes:

HTTP_Upload_File
This class provides functions to work with the uploaded file
HTTP_Upload
This class provides an advanced file uploader system for file uploads made from html forms

Inherited Variables

Inherited Methods


Class Details

[line 25]
Error Class for HTTP_Upload


[ Top ]


Class Variables

$error_codes =

[line 42]

  • Access: protected

Type:   array


[ Top ]

$html =  false

[line 37]

Whether HTML entities shall be encoded automatically
  • Access: protected

Type:   boolean


[ Top ]

$lang =  'en'

[line 31]

Selected language for error messages
  • Access: protected

Type:   string


[ Top ]



Method Detail

HTTP_Upload_Error (Constructor)   [line 87]

HTTP_Upload_Error HTTP_Upload_Error( [ $lang = null], [ $html = false])

PHP4 Constructor

Parameters:

   $lang   — 
   $html   — 

[ Top ]

__construct (Constructor)   [line 51]

HTTP_Upload_Error __construct( [string $lang = null], [ $html = false])

PHP5 Constructor

Creates a new PEAR_Error

  • Access: public

Overridden in child classes as:

HTTP_Upload_File::__construct()
PHP5 Constructor
HTTP_Upload::__construct()
PHP5 Constructor

Parameters:

string   $lang   —  The language selected for error code messages
   $html   — 

[ Top ]

errorCode   [line 98]

string errorCode( string $e_code)

returns the error code
  • Return: Error message
  • Access: public

Parameters:

string   $e_code   —  type of error

[ Top ]

raiseError   [line 122]

object PEAR_Error raiseError( string $e_code)

Overwrites the PEAR::raiseError method
  • Return: a PEAR-Error object
  • Access: public

Parameters:

string   $e_code   —  type of error

[ Top ]

_loadLanguage   [line 135]

mixed _loadLanguage( string $lang)

Loads language strings into error codes variable
  • Return: PEAR_Error on error, boolean true if all went well
  • Access: protected

Parameters:

string   $lang   —  Language code (2-letter or pt_BR)

[ Top ]


Documentation generated on Wed, 18 Jan 2017 14:00:02 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.