Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_File_Transfer Class Reference

Public Member Functions

 __construct ($adapter= 'Http', $direction=false, $options=array())
 Creates a file processing handler.
 
 setAdapter ($adapter, $direction=false, $options=array())
 Sets a new adapter.
 
 getAdapter ($direction=null)
 Returns all set adapters.
 
 __call ($method, array $options)
 Calls all methods from the adapter.
 

Protected Attributes

 $_adapter = array()
 

Constructor & Destructor Documentation

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

Creates a file processing handler.

Parameters
string$adapterAdapter to use
boolean$directionOPTIONAL False means Download, true means upload
array$optionsOPTIONAL Options to set for this adapter
Exceptions
Zend_File_Transfer_Exception

Member Function Documentation

__call (   $method,
array  $options 
)

Calls all methods from the adapter.

Parameters
string$methodMethod to call
array$optionsOptions for this method
Returns
mixed
getAdapter (   $direction = null)

Returns all set adapters.

Parameters
boolean$directionOn null, all directions are returned On false, download direction is returned On true, upload direction is returned
Returns
array|Zend_File_Transfer_Adapter
setAdapter (   $adapter,
  $direction = false,
  $options = array() 
)

Sets a new adapter.

Parameters
string$adapterAdapter to use
boolean$directionOPTIONAL False means Download, true means upload
array$optionsOPTIONAL Options to set for this adapter
Exceptions
Zend_File_Transfer_Exception

Member Data Documentation

$_adapter = array()
protected