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; }
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 Team) { if ($this->getTeamId() == $comparison_obj->getTeamId() && $this->getName() == $comparison_obj->getName() && $this->getActiveYN() == $comparison_obj->getActiveYN()) { $returnValue = TRUE; } } return $returnValue; }
public function equals(CrudInterface $comparison_obj) { $returnValue = FALSE; if ($comparison_obj instanceof League) { // compare all properties for equality except the savedByUserID and the savedDateTime if ($this->getLeagueId() == $comparison_obj->getLeagueId() && $this->getName() == $comparison_obj->getName() && $this->getSequence() == $comparison_obj->getSequence()) { $returnValue = TRUE; } } return $returnValue; }