public function actionRecords()
 {
     $type = $this->sGet('type', 'current');
     $region = $this->sGet('region', 'China');
     $event = $this->sGet('event', '333');
     if (!in_array($type, array('current', 'history'))) {
         $type = 'current';
     }
     if (!array_key_exists($event, Events::getNormalEvents())) {
         $event = '333';
     }
     if ($type !== 'history') {
         $event = '';
     }
     if (!Region::isValidRegion($region)) {
         $region = 'China';
     }
     $records = Results::getRecords($type, $region, $event);
     $this->title = 'Official Records';
     $pageTitle = array('Official Records', Yii::t('Region', $region));
     if ($type === 'history') {
         $pageTitle[] = Yii::t('event', Events::getFullEventName($event));
     }
     $pageTitle[] = Yii::t('Results', ucfirst($type));
     $this->pageTitle = $pageTitle;
     $this->description = Yii::t('statistics', 'Regional records are displayed on the page, based on the official WCA records.');
     $this->setWeiboShareDefaultText('世界魔方协会(WCA)所有官方项目的纪录展示');
     $this->render('records', array('records' => $records, 'type' => $type, 'region' => $region, 'event' => $event));
 }