Ejemplo n.º 1
0
 public function rewriteTeamCache($params)
 {
     $teamID = intval($params['TeamID']);
     $updateType = $params['UpdateType'];
     if ($teamID) {
         switch ($updateType) {
             case 'team-extend':
                 // Init model Footbal
                 $modelTeam = new Thethao_Model_Team();
                 $modelTeam->rewriteTeamCache($params);
                 break;
             case 'player-of-team':
                 // Init model Player of Footbal
                 $modelFootball = new Thethao_Model_Player();
                 $modelFootball->rewriteListPlayersByTeam($params);
             default:
                 break;
         }
     }
     //init news instance
     $caching = Thethao_Model_Caching::getInstance();
     $caching->clearCacheFile();
 }