Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StateInterface.php
Go to the documentation of this file.
1 <?php
7 
12 interface StateInterface
13 {
17  const MODE_ENABLED = 'enabled';
18 
19  const MODE_DISABLED = 'disabled';
20 
26  const STATUS_IDLE = 'idle';
27 
28  const STATUS_WORKING = 'working';
29 
30  const STATUS_SUSPENDED = 'suspended';
31 
40  public function loadByView($viewId);
41 
48  public function save();
49 
56  public function delete();
57 
63  public function getViewId();
64 
70  public function getMode();
71 
78  public function setMode($mode);
79 
85  public function getStatus();
86 
93  public function setStatus($status);
94 
100  public function getVersionId();
101 
108  public function setVersionId($versionId);
109 
115  public function getUpdated();
116 
123  public function setUpdated($updated);
124 }
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15
$status
Definition: order_status.php:8