Core::arbitFileUploadErrorException
Class arbitFileUploadErrorException
Exception thrown on file upload errors Exception thrown on file upload errors
Exception
|
--arbitException
|
--arbitFileUploadErrorException
Author(s):
|
Version:
|
$Revision: 1523 $ |
|
License:
|
GPL |
Member Variables
|
protected array |
$fileUploadErrors
= array( UPLOAD_ERR_INI_SIZE => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.', UPLOAD_ERR_FORM_SIZE => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.', UPLOAD_ERR_PARTIAL => 'The uploaded file was only partially uploaded.', UPLOAD_ERR_NO_FILE => 'No file was uploaded.', UPLOAD_ERR_NO_TMP_DIR => 'Missing a temporary folder.', UPLOAD_ERR_CANT_WRITE => 'Failed to write file to disk.', UPLOAD_ERR_EXTENSION => 'File upload stopped by extension.', )
Mapping of file upload error constants to descriptive texts
Mapping of file upload error constants to descriptive texts |
Inherited Member Variables
Method Summary
|
public void |
__construct(
$errorConstant
)
Construct exception from item identifier |
Inherited Methods
|
From arbitException
|
|
public void |
arbitException::__construct()
Construct exception message
Construct exception message of a string with placeholders and the properties array, where the properties are the values, which will replace the placeholders when the exception is echo'd. |
|
protected string |
arbitException::buildMessage()
Build exception message
Replace all placeholders in exception message. has been "borrowed" from ezcTranslations, as this will used for the translation, so that we are using the exact same replacement strategy. |
|
public string |
arbitException::getText()
Get message |
|
public array |
arbitException::getTextValues()
Get properties
Get text properties containing the values, which should replace the placeholders in the message. |
Methods
__construct
void
__construct(
int
$errorConstant
)
Construct exception from item identifier Construct exception from item identifier
Parameters:
| Name |
Type |
Description |
$errorConstant |
int |
|
Redefinition of:
| Method |
Description |
arbitException::__construct() |
Construct exception message
Construct exception message of a string with placeholders and the properties array, where the properties are the values, which will replace the placeholders when the exception is echo'd.
|
|