Zend_File_Transfer_Adapter_AbstractAbstract class for file transfers (Downloads and Uploads)
Located in /File/Transfer/Adapter/Abstract.php (line 30)
| Class | Description |
|---|---|
Zend_File_Transfer_Adapter_Http
|
File transfer adapter class for the HTTP protocol |
Zend_File_Transfer_Adapter_Abstract
addFile
(string|array $file, [string|array $validator = null], [string|array $filter = null])
Zend_File_Transfer_Adapter
addFilter
(string|array $filter, [string|array $options = null], [string|array $files = null])
Zend_File_Transfer_Adapter_Abstract
addPrefixPath
(string $prefix, string $path, [string $type = null])
Zend_File_Transfer_Adapter_Abstract
addType
(string|array $type, [string|array $validator = null], [string|array $filter = null])
Zend_File_Transfer_Adapter
addValidator
(string|array $validator, [boolean $breakChainOnFailure = false], [string|array $options = null], [string|array $files = null])
Zend_File_Transfer_Adapter
setFilters
( $filters, [string|array $files = null], string|array $filter)
Zend_File_Transfer_Adapter
setValidators
( $validators, [string|array $files = null], string|array $validator)
array
$_break
= array() (line 44)
Internal list of breaks
array
$_files
= array() (line 101)
Internal list of files
This array looks like this: array(form => array( - Form is the name within the form or, if not set the filename name, - Original name of this file type, - Mime type of this file size, - Filesize in bytes tmp_name, - Internalally temporary filename for uploaded files error, - Error which has occured destination, - New destination for this file validators, - Set validator names for this file files - Set file names for this file ))
array
$_filters
= array() (line 51)
Internal list of filters
array
$_loaders
= array() (line 58)
Plugin loaders for filter and validation chains
array
$_messages
= array() (line 65)
Internal list of messages
mixed
$_options
= array(Available options for file transfers
string
$_tmpDir
(line 107)
TMP directory
Zend_Translate
$_translator
(line 70)
bool
$_translatorDisabled
= false (line 77)
Is translation disabled?
array
$_validators
= array() (line 83)
Internal list of validators
static getProgress (line 172)
Retrieve progress of transfer
static _toByteString (line 1326)
Returns the formatted size
addFile (line 987)
Adds one or more files
addFilter (line 749)
Adds a new filter for this class
addFilters (line 777)
Add Multiple filters at once
addPrefixPath (line 256)
Add prefix path for plugin loader
If no $type specified, assumes it is a base path for both filters and validators, and sets each according to the following rules:
addPrefixPaths (line 288)
Add many prefix paths at once
addType (line 1014)
Adds one or more type of files
addValidator (line 333)
Adds a new validator for this class
addValidators (line 379)
Add Multiple validators at once
clearValidators (line 542)
Remove all validators
getDestination (line 1067)
Retrieve destination directory value
getErrors (line 726)
Retrieve error codes
getFile (line 930)
Returns all set files
getFileInfo (line 973)
Retrieve additional internal file informations for files
getFileName (line 943)
Retrieves the filename of transferred files.
getFileSize (line 1200)
Returns the real filesize of the file
getFilter (line 844)
Retrieve individual filter
getFilters (line 859)
Returns all set filters
getHash (line 1166)
Returns the hash for a given file
getMessages (line 716)
Returns found validation messages
getMimeType (line 1253)
Returns the real mimetype of the file Uses fileinfo, when not available mime_magic and as last fallback a manual given mimetype
getOptions (line 597)
Returns set options for adapters or files
getPluginLoader (line 210)
Retrieve plugin loader for validator or filter chain
Instantiates with default rules if none available for that type. Use 'filter' or 'validate' for $type.
getTranslator (line 1127)
Retrieve localization translator object
getType (line 999)
Returns all set types
getValidator (line 470)
Retrieve individual validator
getValidators (line 484)
Returns all set validators
hasErrors (line 736)
Are there errors registered?
hasFilter (line 833)
Determine if a given filter has already been registered
hasValidator (line 459)
Determine if a given validator has already been registered
isFiltered (line 165)
Has the file been filtered ?
isReceived (line 149)
Is file received?
isSent (line 141)
Is file sent?
isUploaded (line 157)
Has a file been uploaded ?
isValid (line 617)
Checks if the files are valid
receive (line 133)
Receive file
removeFilter (line 888)
Remove an individual filter
removeValidator (line 513)
Remove an individual validator
send (line 125)
Send file
setDestination (line 1029)
Sets a new destination for the given files
setDisableTranslator (line 1142)
Indicate whether or not translation should be disabled
setFilters (line 821)
Sets a filter for the class, erasing all previous set
setOptions (line 559)
Sets Options for adapters
setPluginLoader (line 186)
Set plugin loader to use for validator or filter chain
setValidators (line 447)
Sets a validator for the class, erasing all previous set
translatorIsDisabled (line 1153)
Is translation disabled?
_detectFileSize (line 1232)
Internal method to detect the size of a file
_detectMimeType (line 1281)
Internal method to detect the mime type of a file
_filter (line 1342)
Internal function to filter all given files
_getFiles (line 1456)
Returns found files based on internal file array and given files
_getFilterIdentifier (line 1549)
Retrieve internal identifier for a named filter
_getTmpDir (line 1374)
Determine system TMP directory and detect if we have read access
_getValidatorIdentifier (line 1528)
Retrieve internal identifier for a named validator
_isPathWriteable (line 1427)
Tries to detect if we can read and write to the given path
Documentation generated on Mon, 21 Jun 2010 15:05:42 -0400 by phpDocumentor 1.4.3