lib/ezutils/classes/ezhttpfile.php

Show: inherited
Table of Contents

File containing the eZHTTPFile class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
lib  
Version
4.6.0  

\eZHTTPFile

Package: lib

File containing the eZHTTPFile class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Constants

Constant  UPLOADEDFILE_OK = 0
Constant  UPLOADEDFILE_DOES_NOT_EXIST = -1
Constant  UPLOADEDFILE_EXCEEDS_PHP_LIMIT = -2
Constant  UPLOADEDFILE_EXCEEDS_MAX_SIZE = -3
Constant  UPLOADEDFILE_MISSING_TMP_DIR = -4
Constant  UPLOADEDFILE_CANT_WRITE = -5
Constant  UPLOADEDFILE_UNKNOWN_ERROR = -6

Properties

Propertypublic  $Filename= ''
Details
Type
n/a
Propertypublic  $HTTPName= ''
Details
Type
n/a
Propertypublic  $IsTemporary= ''
Details
Type
n/a
Propertypublic  $MimeCategory= ''
Details
Type
n/a
Propertypublic  $MimePart= ''
Details
Type
n/a
Propertypublic  $OriginalFilename= ''
Details
Type
n/a
Propertypublic  $Size= ''
Details
Type
n/a
Propertypublic  $Type= ''
Details
Type
n/a

Methods

methodpublicattribute(  $attr ) : void

Parameters
Name Type Description
$attr
methodpublicattributes( ) : void

methodpubliccanFetch( string $httpName, bool | int $maxSize = false ) : bool | int
static

Returns whether a file can be fetched.

Parameters
Name Type Description
$httpName string

Name of the file.

$maxSize bool | int

Whether a maximum file size applies or size in bytes of the maximum allowed.

Returns
Type Description
bool | int true if the HTTP file $httpName can be fetched. If $maxSize is given, the function returns eZHTTPFile::UPLOADEDFILE_OK if the file can be fetched, eZHTTPFile::UPLOADEDFILE_DOES_NOT_EXIST if there has been no file uploaded, eZHTTPFile::UPLOADEDFILE_EXCEEDS_PHP_LIMIT if the file was uploaded but size exceeds the upload_max_size limit (set in the PHP configuration), eZHTTPFile::UPLOADEDFILE_EXCEEDS_MAX_SIZE if the file was uploaded but size exceeds $maxSize or MAX_FILE_SIZE variable in the form. eZHTTPFile::UPLOADEDFILE_MISSING_TMP_DIR if the temporary directory is missing eZHTTPFile::UPLOADEDFILE_CANT_WRITE if the file can't be written eZHTTPFile::UPLOADEDFILE_UNKNOWN_ERROR if an unknown error occured
methodpubliceZHTTPFile(  $http_name,  $variable ) : void

Parameters
Name Type Description
$http_name
$variable
methodpublicfetch(  $http_name ) : void
static

Parameters
Name Type Description
$http_name
methodpublichasAttribute(  $attr ) : void

Parameters
Name Type Description
$attr
methodpublicsetMimeType(  $mime ) : void

Parameters
Name Type Description
$mime
methodpublicstorageDir(  $sub_dir = false ) : void

Parameters
Name Type Description
$sub_dir
methodpublicstore(  $sub_dir = false,  $suffix = false,  $mimeData = false ) : void

Parameters
Name Type Description
$sub_dir
$suffix
$mimeData
Documentation was generated by DocBlox 0.18.1.