1924. Class

1924.1. Zend\File\Transfer\Transfer

Base class for all protocols supporting file transfers

1924.1.1. Methods

1924.1.1.1. __construct

__construct()

Creates a file processing handler

Parameters:
  • string – Adapter to use
  • bool – OPTIONAL False means Download, true means upload
  • array – OPTIONAL Options to set for this adapter
Throws ExceptionInvalidArgumentException:
 

1924.1.1.2. setAdapter

setAdapter()

Sets a new adapter

Parameters:
  • string – Adapter to use
  • bool – OPTIONAL False means Download, true means upload
  • array – OPTIONAL Options to set for this adapter
Return type:

Transfer

Throws :

ExceptionInvalidArgumentException

1924.1.1.3. getAdapter

getAdapter()

Returns all set adapters

Parameters:bool – On null, all directions are returned On false, download direction is returned On true, upload direction is returned
Return type:array|AdapterAbstractAdapter

1924.1.1.4. __call

__call()

Calls all methods from the adapter

Parameters:
  • string – Method to call
  • array – Options for this method
Throws ExceptionBadMethodCallException:
 

if unknown method

Return type:

mixed

Project Versions

Table Of Contents

Previous topic

1923. Class

Next topic

1925. Class

This Page