File/Transfer.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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_File_Transfer
- Version
- $Id: Transfer.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_File_Transfer
Base class for all protocols supporting file transfers
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

__call(string $method, array $options) : mixedCalls all methods from the adapter
| Name | Type | Description |
|---|---|---|
| $method | string | Method to call |
| $options | array | Options for this method |
| Type | Description |
|---|---|
| mixed |

__construct(string $adapter = 'Http', boolean $direction = false, array $options = array()) : voidCreates a file processing handler
| Name | Type | Description |
|---|---|---|
| $adapter | string | Adapter to use |
| $direction | boolean | OPTIONAL False means Download, true means upload |
| $options | array | OPTIONAL Options to set for this adapter |
| Exception | Description |
|---|---|
| \Zend_File_Transfer_Exception |

getAdapter(boolean $direction = null) : array | \Zend_File_Transfer_AdapterReturns all set adapters
| Name | Type | Description |
|---|---|---|
| $direction | boolean | On null, all directions are returned On false, download direction is returned On true, upload direction is returned |
| Type | Description |
|---|---|
| array | \Zend_File_Transfer_Adapter |

setAdapter(string $adapter, boolean $direction = false, array $options = array()) : voidSets a new adapter
| Name | Type | Description |
|---|---|---|
| $adapter | string | Adapter to use |
| $direction | boolean | OPTIONAL False means Download, true means upload |
| $options | array | OPTIONAL Options to set for this adapter |
| Exception | Description |
|---|---|
| \Zend_File_Transfer_Exception |