/** * Review graph page. * * @return */ public function executeIndex($request) { // set local pref default value $this->filter = $this->getUser()->getLocalPrefs()->sync('review.graph.filter', null, ''); if ($this->filter == '') { $this->filter = 'all'; } $this->total_flashcards = ReviewsPeer::getFlashcardCount($this->getUser()->getUserId()); }
/** * Updates the flashcard count. * * @param int $userId User id. * * @return boolean TRUE on success, FALSE on error. */ public static function updateFlashcardCount($userId) { $data = array('fc_count' => ReviewsPeer::getFlashcardCount($userId)); return self::getInstance()->updateCols($userId, $data); }
<div class="clearboth"></div> </div> <div class="intro"> <p> This list shows all your flashcards. Click a column heading to sort the table on that column, click more than once to revert the sort order. Note that in addition to the column you selected, there is always a secondary sorting on the frame number. Click in any row to go to the study area. </p> </div> <div class="stats"> <div class="box"> <strong>Statistics</strong><br /> <?php echo ReviewsPeer::getFlashcardCount($_user->getUserId()); ?> flashcards.<br /> </div> </div> <div class="clear"></div> <?php #DBG::user() echo ui_select_table($table, $pager); ?> </div> </div> </div>