API Documentation

Zend/File/Transfer.php

Show: inherited
Table of Contents

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.

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 24594 2012-01-05 21:27:01Z matthew $  

\Zend_File_Transfer

Package: 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

Propertyprotectedarray  $_adapter= 'array()'

Array holding all directions

Default valuearray()Details
Type
array

Methods

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

Calls all methods from the adapter

Parameters
Name Type Description
$method string

Method to call

$options array

Options for this method

Returns
Type Description
mixed
methodpublic__construct( string $adapter = 'Http', boolean $direction = false, array $options = array() ) : void

Creates a file processing handler

Parameters
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

Throws
Exception Description
\Zend_File_Transfer_Exception
methodpublicgetAdapter( boolean $direction = null ) : array|\Zend_File_Transfer_Adapter

Returns all set adapters

Parameters
Name Type Description
$direction boolean

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

Returns
Type Description
array|\Zend_File_Transfer_Adapter
methodpublicsetAdapter( string $adapter, boolean $direction = false, array $options = array() ) : void

Sets a new adapter

Parameters
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

Throws
Exception Description
\Zend_File_Transfer_Exception
Documentation was generated by DocBlox 0.15.1.