예제 #1
0
파일: Session.php 프로젝트: nja78/magento2
 /**
  * Set model data from info field
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     $info = $this->jsonHelper->jsonDecode($this->getInfo());
     if (is_array($info)) {
         foreach ($info as $key => $value) {
             $this->setData($key, $value);
         }
     }
     return $this;
 }
 /**
  * after load
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     $this->setCondition(unserialize($this->getCondition()));
     return $this;
 }
예제 #3
0
 /**
  * Trigger collect totals after loading, if required
  *
  * @return $this
  */
 protected function _afterLoad()
 {
     // collect totals and save me, if required
     if (1 == $this->getData('trigger_recollect')) {
         $this->collectTotals()->save();
     }
     return parent::_afterLoad();
 }
 /**
  * After load.
  *
  * @return $this
  */
 public function _afterLoad()
 {
     parent::_afterLoad();
     //@codingStandardsIgnoreStart
     $this->setCondition(unserialize($this->getCondition()));
     //@codingStandardsIgnoreEnd
     return $this;
 }