/** * Lazy load of aggregated editors * @return void */ private function EnsureAggregatedEditors() { if (!is_object($this->fixture_editor)) { require_once 'stoolball/match-fixture-edit-control.class.php'; $this->fixture_editor = new MatchFixtureEditControl($this->GetSettings(), null, false); $this->fixture_editor->SetNamingPrefix(get_class($this->fixture_editor)); # Ensure prefix is unique $this->fixture_editor->SetShowValidationErrors(false); $this->fixture_editor->SetShowHeading(true); $this->fixture_editor->SetHeading('About this match'); $this->fixture_editor->SetCssClass('panel'); } if ($this->b_user_is_match_admin and !is_object($this->season_editor)) { require_once 'stoolball/season-id-editor.class.php'; $this->season_editor = new SeasonIdEditor($this->GetSettings(), $this, 'Season'); } }