File/Transfer/Adapter/Http.php
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
[email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_File_Transfer
- Version
- $Id$
\Zend_File_Transfer_Adapter_Http
Package: Zend_File_TransferFile transfer adapter class for the HTTP protocol
- Parent(s)
- \Zend_File_Transfer_Adapter_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
$_callbackApc = 'apc_fetch'
static
Default value'apc_fetch'
Details- Type
- n/a
$_callbackUploadProgress = 'uploadprogress_get_info'
static
Default value'uploadprogress_get_info'
Details- Type
- n/a
Methods
__construct(array $options = array()) : void
Constructor for Http File Transfers
ParametersName | Type | Description |
---|
$options | array | OPTIONAL Options to set |
---|
getProgress(string $id = null) : array | null
staticReturns the actual progress of file up-/downloads
ParametersName | Type | Description |
---|
$id | string | The upload to get the progress for |
---|
ReturnsType | Description |
---|
array | null | |
isFiltered(string | array $files = null) : bool
Checks if the file was already filtered
ParametersName | Type | Description |
---|
$files | string | array | (Optional) Files to check |
---|
Returns isReceived(string | array $files = null) : bool
Checks if the file was already received
ParametersName | Type | Description |
---|
$files | string | array | (Optional) Files to check |
---|
Returns isSent( $files = null) : bool
Checks if the file was already sent
ParametersName | Type | Description |
---|
$files | | |
---|
ReturnsThrows isUploaded( $files = null) : bool
Has a file been uploaded ?
ParametersName | Type | Description |
---|
$files | | |
---|
Returns isValid(string | array $files = null) : boolean
Checks if the files are valid
ParametersName | Type | Description |
---|
$files | string | array | (Optional) Files to check |
---|
ReturnsType | Description |
---|
boolean | True if all checks are valid |
receive(string | array $files = null) : bool
Receive the file from the client (Upload)
ParametersName | Type | Description |
---|
$files | string | array | (Optional) Files to receive |
---|
Returns send(string | array $options = null) : void
Send the file to the client (Download)
ParametersName | Type | Description |
---|
$options | string | array | Options for the file(s) to send |
---|
Throws setValidators( $validators, string | array $files = null) : \Zend_File_Transfer_Adapter
Sets a validator for the class, erasing all previous set
ParametersName | Type | Description |
---|
$validators | | |
---|
$files | string | array | Files to limit this validator to |
---|
Returns