Definition at line 37 of file Stream.php.
◆ __construct()
__construct |
( |
|
$streamOrUrl, |
|
|
|
$mode = null |
|
) |
| |
Class Constructor
- Parameters
-
array | string | resource | $streamOrUrl | Stream or URL to open as a stream |
string | null | $mode | Mode, only applicable if a URL is given |
- Returns
- void
- Exceptions
-
Definition at line 54 of file Stream.php.
63 #require_once 'Zend/Log/Exception.php'; 68 #require_once 'Zend/Log/Exception.php'; 72 $this->_stream = $streamOrUrl;
74 if (is_array($streamOrUrl) && isset($streamOrUrl[
'stream'])) {
75 $streamOrUrl = $streamOrUrl[
'stream'];
78 if (! $this->_stream = @
fopen($streamOrUrl,
$mode,
false)) {
79 #require_once 'Zend/Log/Exception.php'; 80 $msg =
"\"$streamOrUrl\" cannot be opened with mode \"$mode\"";
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
◆ _write()
Write a message to the log.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 129 of file Stream.php.
131 $line = $this->_formatter->format($event);
133 if (
false === @
fwrite($this->_stream, $line)) {
134 #require_once 'Zend/Log/Exception.php';
◆ factory()
static factory |
( |
|
$config | ) |
|
|
static |
◆ shutdown()
Close the stream resource.
- Returns
- void
Definition at line 115 of file Stream.php.
118 fclose($this->_stream);
◆ $_stream
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Log/Writer/Stream.php