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.
Base class for all protocols supporting file transfers

__call(
string $method, array $options
)
:
mixed
Calls 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()
)
:
void
Creates 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_Adapter
Returns 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()
)
:
void
Sets 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 |