Base class for all protocols supporting file transfers

category Zend
package Zend_File_Transfer
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Calls all methods from the adapter

__call(string $method, array $options) : mixed

Parameters

$method

string

Method to call

$options

array

Options for this method

Returns

mixed

Creates a file processing handler

__construct(string $adapter = 'Http', boolean $direction = false, array $options = array()

Parameters

$adapter

string

Adapter to use

$direction

boolean

OPTIONAL False means Download, true means upload

$options

array

OPTIONAL Options to set for this adapter

Exceptions

\Zend_File_Transfer_Exception

Returns all set adapters

getAdapter(boolean $direction = null) : array | \Zend_File_Transfer_Adapter

Parameters

$direction

boolean

On null, all directions are returned On false, download direction is returned On true, upload direction is returned

Returns

array\Zend_File_Transfer_Adapter

Sets a new adapter

setAdapter(string $adapter, boolean $direction = false, array $options = array()

Parameters

$adapter

string

Adapter to use

$direction

boolean

OPTIONAL False means Download, true means upload

$options

array

OPTIONAL Options to set for this adapter

Exceptions

\Zend_File_Transfer_Exception

 Properties

 

Array holding all directions

$_adapter : array

Default

array()