Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
File transfer adapter class for the HTTP protocol
$_callbackApc = 'apc_fetch'
$_callbackUploadProgress = 'uploadprogress_get_info'
__construct(
array $options
=
array
)
:
Constructor for Http File Transfers
_prepareFiles(
)
:
array
Prepare the $_FILES array to match the internal syntax of one file per entry
clearValidators(
)
:
Zend_File_Transfer_Adapter_Abstract
Remove an individual validator
getProgress(
string $id
=
null
)
:
array|null
Returns the actual progress of file up-/downloads
isApcAvailable(
)
:
boolean
Checks the APC extension for progress information
isFiltered(
string|array $files
=
null
)
:
bool
Checks if the file was already filtered
isReceived(
string|array $files
=
null
)
:
bool
Checks if the file was already received
isSent(
$files
=
null
)
:
bool
Checks if the file was already sent
isUploadProgressAvailable(
)
:
boolean
Checks the UploadProgress extension for progress information
isUploaded(
$files
=
null
)
:
bool
Has a file been uploaded ?
isValid(
string|array $files
=
null
)
:
boolean
Checks if the files are valid
receive(
string|array $files
=
null
)
:
bool
Receive the file from the client (Upload)
removeValidator(
string $name
)
:
Zend_File_Transfer_Adapter_Abstract
Remove an individual validator
send(
string|array $options
=
null
)
:
void
Send the file to the client (Download)
setValidators(
$validators, string|array $files
=
null
)
:
Zend_File_Transfer_Adapter
Sets a validator for the class, erasing all previous set