API Documentation

File/Transfer.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_File_Transfer
version
$Id: Transfer.php 21202 2010-02-24 22:16:44Z thomas $
Classes
Zend_File_Transfer

Description

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.

Zend_File_Transfer

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_File_Transfer
Properties
$_adapter
Methods
__construct
setAdapter
getAdapter
__call

Description

Base class for all protocols supporting file transfers

Properties

$_adapter

array $_adapter = 'array'

Array holding all directions

Details

$_adapter
array
visibility
protected
default
array
final
false
static
false

Methods

__call

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

Calls all methods from the adapter

Arguments
$method
string
Method to call
$options
array
Options for this method
Output
mixed
Details
visibility
public
final
false
static
false

__construct

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

Creates a file processing handler

Arguments
$adapter
string
Adapter to use
$direction
boolean
OPTIONAL False means Download, true means upload
$options
array
OPTIONAL Options to set for this adapter
Details
visibility
public
final
false
static
false
throws

getAdapter

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

Returns all set adapters

Arguments
$direction
boolean
On null, all directions are returned On false, download direction is returned On true, upload direction is returned
Output
array|Zend_File_Transfer_Adapter
Details
visibility
public
final
false
static
false

setAdapter

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

Sets a new adapter

Arguments
$adapter
string
Adapter to use
$direction
boolean
OPTIONAL False means Download, true means upload
$options
array
OPTIONAL Options to set for this adapter
Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.