Ejemplo n.º 1
0
 public static function InitPage($page_type, $category)
 {
     if (!in_array($page_type, array('achievements', 'achievement'))) {
         WoW_Log::WriteError('%s : wrong page type (%s)!', __METHOD__, $page_type);
         return false;
     }
     WoW_Template::SetPageData('breadcrumb', '0,9');
     switch ($page_type) {
         case 'achievements':
             self::ExtractCategory($page_type, $category, self::$m_achievement_type, self::$m_achievement_category);
             self::LoadAchievements();
             self::HandleAchievements();
             break;
         case 'achievement':
             self::$m_id = (int) $category;
             if (self::IsPower()) {
                 self::GetPower();
             }
             self::LoadAchievement();
             self::HandleAchievement();
             break;
     }
     return true;
 }