Definition at line 35 of file Transfer.php.
◆ __construct()
__construct |
( |
|
$adapter = 'Http' , |
|
|
|
$direction = false , |
|
|
|
$options = array() |
|
) |
| |
Creates a file processing handler
- Parameters
-
string | $adapter | Adapter to use |
boolean | $direction | OPTIONAL False means Download, true means upload |
array | $options | OPTIONAL Options to set for this adapter |
- Exceptions
-
Definition at line 52 of file Transfer.php.
setAdapter($adapter, $direction=false, $options=array())
◆ __call()
__call |
( |
|
$method, |
|
|
array |
$options |
|
) |
| |
Calls all methods from the adapter
- Parameters
-
string | $method | Method to call |
array | $options | Options for this method |
- Returns
- mixed
Definition at line 110 of file Transfer.php.
112 if (array_key_exists(
'direction',
$options)) {
113 $direction = (integer)
$options[
'direction'];
118 if (method_exists($this->_adapter[$direction],
$method)) {
119 return call_user_func_array(array($this->_adapter[$direction],
$method),
$options);
122 #require_once 'Zend/File/Transfer/Exception.php';
◆ getAdapter()
getAdapter |
( |
|
$direction = null | ) |
|
Returns all set adapters
- Parameters
-
boolean | $direction | On null, all directions are returned On false, download direction is returned On true, upload direction is returned |
- Returns
- array|Zend_File_Transfer_Adapter
Definition at line 93 of file Transfer.php.
95 if ($direction ===
null) {
99 $direction = (integer) $direction;
100 return $this->_adapter[$direction];
◆ setAdapter()
setAdapter |
( |
|
$adapter, |
|
|
|
$direction = false , |
|
|
|
$options = array() |
|
) |
| |
Sets a new adapter
- Parameters
-
string | $adapter | Adapter to use |
boolean | $direction | OPTIONAL False means Download, true means upload |
array | $options | OPTIONAL Options to set for this adapter |
- Exceptions
-
Definition at line 65 of file Transfer.php.
75 $direction = (integer) $direction;
78 #require_once 'Zend/File/Transfer/Exception.php'; static loadClass($class, $dirs=null)
static isReadable($filename)
◆ $_adapter
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/File/Transfer.php