/** * Prepare data for cell update * * @param mixed $value Data to store * @param \XLite\Model\SessionCell $cell Cell to update OPTIONAL * * @return array */ protected function prepareDataForExistingCell($value, \XLite\Model\SessionCell $cell = null) { return array('value' => \XLite\Model\SessionCell::prepareValueForSet($value), 'type' => \XLite\Model\SessionCell::getTypeByValue($value)); }
/** * {@inheritDoc} */ public function prepareEntityBeforeCommit($type) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type)); return parent::prepareEntityBeforeCommit($type); }