/** * 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)); }