Reference Catalogs

Positions, event types and statistic types are all scoped to a specific sport type in your installation (not directly to the abstract bundled profile). When you create a sport type from a bundled profile, that profile's positions/events/statistics become real, editable records for that sport type. Editing one of them afterward marks it as a local customization rather than the original bundled definition, so your changes survive independently of the profile it started from.

Positions

A position (#__joomleague_sport_position) belongs to a sport_type_id and has:

  • name and code.
  • person_type — what kind of person can hold this position.
  • lineup_group — an optional grouping label.
  • parent_id — positions can nest under another position.
  • has_events / has_statistics — whether players in this position can have match events and statistics recorded against them at all.

Event types

An event type (used for things that happen during a match — recorded as match events) also belongs to a sport_type_id and has:

  • name and code.
  • person_type — who this event applies to.
  • timeline — whether it's shown on a match timeline.
  • direction — a numeric ordering/sign value.
  • affects_score — whether recording this event changes the match score.
  • score_delta — how much it changes the score by, when it does.
  • score_target — which score target it affects.
  • requires_second_person — for events that involve two people (e.g. one person assisting another).
  • leads_to_suspension — whether this event can lead to a suspension.
  • system_event — marks events generated by the system rather than entered manually.

Statistic types

A statistic type defines a per-player or per-team metric that can be recorded for a match, again scoped to a sport_type_id:

  • name and code.
  • statistic_type — defaults to basic.
  • scope — what the statistic is measured against.
  • value_type — defaults to integer.
  • calculation_source — defaults to manual; other values allow a statistic to be derived rather than entered by hand.