Example #1
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof Season) {
         if ($this->getLeagueId() == $comparison_obj->getLeagueId() && $this->getSeasonId() == $comparison_obj->getSeasonId() && $this->getName() == $comparison_obj->getName() && $this->getStartDateTime() == $comparison_obj->getStartDateTime()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof SeasonTeamPlayer) {
         if ($this->getSeasonTeamId() == $comparison_obj->getSeasonTeamId() && $this->getPlayerId() == $comparison_obj->getPlayerId() && $this->getNumber() == $comparison_obj->getNumber()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #3
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof Team) {
         if ($this->getTeamId() == $comparison_obj->getTeamId() && $this->getName() == $comparison_obj->getName() && $this->getActiveYN() == $comparison_obj->getActiveYN()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #4
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof SeasonTeam) {
         // compare all properties for equality except the savedByUserID and the savedDateTime
         if ($this->getSeasonId() == $comparison_obj->getSeasonId() && $this->getTeamId() == $comparison_obj->getTeamId()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #5
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof Location) {
         if ($this->getName() == $comparison_obj->getName() && $this->getAddress() == $comparison_obj->getAddress() && $this->getAddress2() == $comparison_obj->getAddress2() && $this->getCity() == $comparison_obj->getCity() && $this->getState() == $comparison_obj->getState() && $this->getZip() == $comparison_obj->getZip()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #6
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof Player) {
         if (strtolower($this->getFirstName()) == strtolower($comparison_obj->getFirstName()) && $this->getLastName() == $comparison_obj->getLastName() && $this->getPlayerPositionId() == $comparison_obj->getPlayerPositionId() && $this->getSecondaryPlayerPositionId() == $comparison_obj->getSecondaryPlayerPositionId() && $this->getActiveYN() == $comparison_obj->getActiveYN()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #7
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof GameGoal) {
         if ($this->getGameId() == $comparison_obj->getGameId() && $this->getPeriodId() == $comparison_obj->getPeriodId() && $this->getTime() == $comparison_obj->getTime() && $this->getSeasonTeamPlayerId() == $comparison_obj->getSeasonTeamPlayerId() && $this->getAssistSeasonTeamPlayerId() == $comparison_obj->getAssistSeasonTeamPlayerId() && $this->getSecondAssistSeasonTeamPlayerId() == $comparison_obj->getSecondAssistSeasonTeamPlayerId()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }
Example #8
0
 public function equals(CrudInterface $comparison_obj)
 {
     $returnValue = FALSE;
     if ($comparison_obj instanceof Game) {
         if ($this->getHomeTeamId() == $comparison_obj->getHomeTeamId() && $this->getVisitingTeamId() == $comparison_obj->getVisitingTeamId() && $this->getLocationId() == $comparison_obj->getLocationId() && $this->getSeasonId() == $comparison_obj->getSeasonId() && $this->getStartDateTime() == $comparison_obj->getStartDateTime() && $this->getPlayoffGameYN() == $comparison_obj->getPlayoffGameYN() && $this->getHomeTeamFirstPeriodGoals() == $comparison_obj->getHomeTeamFirstPeriodGoals() && $this->getVisitingTeamFirstPeriodGoals() == $comparison_obj->getVisitingTeamFirstPeriodGoals() && $this->getHomeTeamSecondPeriodGoals() == $comparison_obj->getHomeTeamSecondPeriodGoals() && $this->getVisitingTeamSecondPeriodGoals() == $comparison_obj->getVisitingTeamSecondPeriodGoals() && $this->getHomeTeamThirdPeriodGoals() == $comparison_obj->getHomeTeamThirdPeriodGoals() && $this->getVisitingTeamThirdPeriodGoals() == $comparison_obj->getVisitingTeamThirdPeriodGoals() && $this->getHomeTeamOverTimeGoals() == $comparison_obj->getHomeTeamOverTimeGoals() && $this->getVisitingTeamOverTimeGoals() == $comparison_obj->getVisitingTeamOverTimeGoals() && $this->getHomeTeamShots() == $comparison_obj->getHomeTeamShots() && $this->getVisitingTeamShots() == $comparison_obj->getVisitingTeamShots() && $this->getComment() == $comparison_obj->getComment()) {
             $returnValue = TRUE;
         }
     }
     return $returnValue;
 }