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 license@zend.com 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()) : voidConstructor for Http File Transfers
Parameters| Name | Type | Description |
|---|
| $options | array | OPTIONAL Options to set |
|---|



getProgress(string $id = null) : array | nullstaticReturns the actual progress of file up-/downloads
Parameters| Name | Type | Description |
|---|
| $id | string | The upload to get the progress for |
|---|
Returns| Type | Description |
|---|
| array | null | |



isFiltered(string | array $files = null) : boolChecks if the file was already filtered
Parameters| Name | Type | Description |
|---|
| $files | string | array | (Optional) Files to check |
|---|
Returns 


isReceived(string | array $files = null) : boolChecks if the file was already received
Parameters| Name | Type | Description |
|---|
| $files | string | array | (Optional) Files to check |
|---|
Returns 


isSent( $files = null) : boolChecks if the file was already sent
Parameters| Name | Type | Description |
|---|
| $files | | |
|---|
ReturnsThrows 


isUploaded( $files = null) : boolHas a file been uploaded ?
Parameters| Name | Type | Description |
|---|
| $files | | |
|---|
Returns 


isValid(string | array $files = null) : booleanChecks if the files are valid
Parameters| Name | Type | Description |
|---|
| $files | string | array | (Optional) Files to check |
|---|
Returns| Type | Description |
|---|
| boolean | True if all checks are valid |



receive(string | array $files = null) : boolReceive the file from the client (Upload)
Parameters| Name | Type | Description |
|---|
| $files | string | array | (Optional) Files to receive |
|---|
Returns 


send(string | array $options = null) : voidSend the file to the client (Download)
Parameters| Name | Type | Description |
|---|
| $options | string | array | Options for the file(s) to send |
|---|
Throws 


setValidators( $validators, string | array $files = null) : \Zend_File_Transfer_AdapterSets a validator for the class, erasing all previous set
Parameters| Name | Type | Description |
|---|
| $validators | | |
|---|
| $files | string | array | Files to limit this validator to |
|---|
Returns