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

__construct(
array $options
=
array()
)
:
void
Constructor for Http File Transfers
Name | Type | Description |
---|---|---|
$options | array | OPTIONAL Options to set |

_prepareFiles(
)
:
array
Prepare the $_FILES array to match the internal syntax of one file per entry
Type | Description |
---|---|
array |

clearValidators(
)
:
\Zend_File_Transfer_Adapter_Abstract
Remove an individual validator
Type | Description |
---|---|
\Zend_File_Transfer_Adapter_Abstract |

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

isApcAvailable(
)
:
boolean
Checks the APC extension for progress information
Type | Description |
---|---|
boolean |

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

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

isSent(
$files
=
null
)
:
bool
Checks if the file was already sent
Name | Type | Description |
---|---|---|
$files |
Type | Description |
---|---|
bool |
Exception | Description |
---|---|
\Zend_File_Transfer_Exception | Not implemented |

isUploadProgressAvailable(
)
:
boolean
Checks the UploadProgress extension for progress information
Type | Description |
---|---|
boolean |

isUploaded(
$files
=
null
)
:
bool
Has a file been uploaded ?
Name | Type | Description |
---|---|---|
$files |
Type | Description |
---|---|
bool |

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

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

removeValidator(
string $name
)
:
\Zend_File_Transfer_Adapter_Abstract
Remove an individual validator
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\Zend_File_Transfer_Adapter_Abstract |

send(
string|array $options
=
null
)
:
void
Send the file to the client (Download)
Name | Type | Description |
---|---|---|
$options | string|array | Options for the file(s) to send |
Exception | Description |
---|---|
\Zend_File_Transfer_Exception | Not implemented |