<?php

class PG_Controller_Plugin_Notications
extends Zend_Controller_Plugin_Abstract
{
    public $userID = 0;
   
    /*
     * Tournament Notification Work flow
     * 1.   Tournament Created
     * 2.   Squads Are Created According to the number of squads participating
     * 3.   When squad is assigned, Notify the team maneger that the his team has been added to the tournament ( SquadAddedToTournamnt($tid) )
     * 4.   When the fixture is created and Squad is assigned, Notify the manager of the new fixture  (NOTIFICATION)
     */
    # TOURNAMENT NOTIFICATIONS
    public  function SquadAddedToTournamnt($tid){
        $TournDB = new Model_Squad;
        $Squads = $TournDB->getSquadByTaurnament($tid);
        echo "<pre>";
        print_r($Squads->toArray());
        
        
    }
    
    #END TOURNAMENT NOTIFICATIONS
    
    
    
    
}