/** * Gets a text description of the match result */ public function GetResultDescription() { if ($this->result->GetResultType() == MatchResult::UNKNOWN) { return ''; } $s_text = MatchResult::Text($this->result->GetResultType()); if (is_object($this->o_home_team)) { $s_text = str_ireplace('Home', $this->o_home_team->GetName(), $s_text); } if (is_object($this->GetAwayTeam())) { $s_text = str_ireplace('Away', $this->GetAwayTeam()->GetName(), $s_text); } return $s_text; }