/** * Check - specified zone is selected or not * * @param \XLite\Model\Zone $current Zone * * @return boolean */ protected function isSelectedZone(\XLite\Model\Zone $current) { return $this->getParam(self::PARAM_VALUE) && $current->getZoneId() == $this->getParam(self::PARAM_VALUE)->getZoneId(); }
/** * {@inheritDoc} */ public function prepareEntityBeforeCommit($type) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type)); return parent::prepareEntityBeforeCommit($type); }