Example #1
0
 //signup
 case 'own-all-champions':
     $user = new User($user_id);
     foreach ($champions as $champion) {
         $user->addChampion($champion->id);
     }
     break;
 case 'not-own-all-champions':
     $user = new User($user_id);
     if ($user->removeAllChampion()) {
         $user->removeAllChampionSkin();
     }
     break;
 case 'own-champion':
     $user = new User($user_id);
     $user->addChampion($champion_id);
     break;
 case 'not-own-champion':
     $user = new User($user_id);
     $user->removeChampion($champion_id);
     foreach ($champions as $champion) {
         if ($champion->id == $champion_id) {
             foreach ($champion->skins as $skin) {
                 $user->removeChampionSkin($skin->id);
             }
             die;
         }
     }
     break;
 case 'own-skinchampion':
     $user = new User($user_id);