Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
WriteFactory.php
Go to the documentation of this file.
1 <?php
7 
10 
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 }
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15