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