Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Adapter.php
Go to the documentation of this file.
1 <?php
31 {
37  protected $_skipOptions = array(
38  'options',
39  'config',
40  );
41 
50  public function __construct($options = null)
51  {
52  if (is_array($options)) {
53  $this->setOptions($options);
54  } elseif ($options instanceof Zend_Config) {
55  $this->setConfig($options);
56  }
57  }
58 
65  public function setConfig(Zend_Config $config)
66  {
67  $this->setOptions($config->toArray());
68 
69  return $this;
70  }
71 
78  public function setOptions(array $options)
79  {
80  foreach ($options as $key => $value) {
81  if (in_array(strtolower($key), $this->_skipOptions)) {
82  continue;
83  }
84 
85  $method = 'set' . ucfirst($key);
86  if (method_exists($this, $method)) {
87  $this->$method($value);
88  }
89  }
90 
91  return $this;
92  }
93 
105  abstract public function notify($current, $max, $percent, $timeTaken, $timeRemaining, $text);
106 
112  abstract public function finish();
113 }
__construct($options=null)
Definition: Adapter.php:50
if($this->helper('Magento\Tax\Helper\Data') ->displayFullSummary()) foreach( $block->getTotal() ->getFullInfo() as $info)(isset($info['hidden']) && $info['hidden']) $percent
Definition: tax.phtml:33
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$config
Definition: fraud_order.php:17
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition: pager.phtml:43
$value
Definition: gender.phtml:16
$method
Definition: info.phtml:13
notify($current, $max, $percent, $timeTaken, $timeRemaining, $text)
setConfig(Zend_Config $config)
Definition: Adapter.php:65
setOptions(array $options)
Definition: Adapter.php:78