Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Filesystem
File
WriteFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Filesystem\File
;
7
8
use
Magento\Framework\Filesystem\DriverInterface
;
9
use
Magento\Framework\Filesystem\DriverPool
;
10
15
class
WriteFactory
extends
ReadFactory
16
{
22
private
$driverPool;
23
29
public
function
__construct
(
DriverPool
$driverPool)
30
{
31
parent::__construct($driverPool);
32
$this->driverPool = $driverPool;
33
}
34
43
public
function
create
(
$path
, $driver,
$mode
=
'r'
)
44
{
45
if
(is_string($driver)) {
46
return
new
Write
(
$path
, $this->driverPool->getDriver($driver),
$mode
);
47
}
48
return
new
Write
(
$path
, $driver,
$mode
);
49
}
50
}
Magento\Framework\Filesystem\File\Write
Definition:
Write.php:12
Magento\Framework\Filesystem\File\WriteFactory
Definition:
WriteFactory.php:15
Magento\Framework\Filesystem\File\ReadFactory
Definition:
ReadFactory.php:15
Magento\Framework\Filesystem\File
Definition:
Read.php:7
Magento\Framework\Filesystem\File\WriteFactory\__construct
__construct(DriverPool $driverPool)
Definition:
WriteFactory.php:29
Magento\Framework\Filesystem\DriverPool
Definition:
DriverPool.php:12
$mode
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition:
grid.phtml:15
Magento\Framework\Filesystem\File\WriteFactory\create
create($path, $driver, $mode='r')
Definition:
WriteFactory.php:43
Magento\Framework\Filesystem\DriverInterface
Definition:
DriverInterface.php:18
$path
$path
Definition:
import_with_filesystem_images.php:14