/** * Save information from the last flashcard review session in the database. * Allows to see the last review session results on subsequent GET request, * and until the user starts another review session. * * The data could also be used in the active member statistics, .. * * @param object $params */ protected function saveReviewSessionInfo(sfParameterHolder $params) { $data = array('ts_start' => $params->get('ts_start'), 'fc_pass' => $params->get('fc_pass'), 'fc_fail' => $params->get('fc_fail')); ActiveMembersPeer::saveReviewSummaryInfo($this->getUser()->getUserId(), $data); }