File/Transfer.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_File_Transfer  
Version
$Id$  

\Zend_File_Transfer

Package: Zend_File_Transfer
Base class for all protocols supporting file transfers
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_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
NameTypeDescription
$methodstring

Method to call

$optionsarray

Options for this method

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

Creates a file processing handler

Parameters
NameTypeDescription
$adapterstring

Adapter to use

$directionboolean

OPTIONAL False means Download, true means upload

$optionsarray

OPTIONAL Options to set for this adapter

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

Returns all set adapters

Parameters
NameTypeDescription
$directionboolean

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

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

Sets a new adapter

Parameters
NameTypeDescription
$adapterstring

Adapter to use

$directionboolean

OPTIONAL False means Download, true means upload

$optionsarray

OPTIONAL Options to set for this adapter

Throws
ExceptionDescription
\Zend_File_Transfer_Exception
Documentation was generated by phpDocumentor 2.2.0 .