/** * Update the last flash card review timestamp and reviewed flash card count * to speedup the active members list table. * * @param int $userId User id. * * @return boolean TRUE on success, FALSE on error. */ public static function updateFlashcardInfo($userId) { $fc_count = ReviewsPeer::getFlashcardCount($userId); $lastreview_ts = ReviewsPeer::getMostRecentReviewTimeStamp($userId); $data = array('fc_count' => $fc_count, 'last_review' => $lastreview_ts); return self::getInstance()->updateCols($userId, $data); }