示例#1
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;
 }