thesportsdb-client

TvListing extends ApiRecord
in package

Read onlyYes
FinalYes

One broadcast of an event on one channel (v1 `lookuptv.php`/`eventstv.php`, v2 `lookup/event_tv`/`filter/tv`).

Table of Contents

Properties

$channel  : string|null
`strChannel`, e.g. `TSN 1`
$channelId  : int|null
`idChannel`
$channelLogo  : string|null
`strLogo`: the channel logo
$country  : string|null
`strCountry`: the channel's country
$date  : DateTimeImmutable|null
`dateEvent` (a date, as midnight UTC)
$division  : int|null
`intDivision`
$event  : string|null
`strEvent`
$eventBanner  : string|null
`strEventBanner`
$eventCountry  : string|null
`strEventCountry`: where the event takes place
$eventId  : int|null
`idEvent`
$eventPoster  : string|null
`strEventPoster`
$eventSquare  : string|null
`strEventSquare`
$eventThumb  : string|null
`strEventThumb`
$id  : int|null
`id`
$raw  : array<string|int, mixed>
$season  : string|null
`strSeason`
$sport  : string|null
`strSport`
$time  : string|null
`strTime` (HH:MM:SS)
$timestamp  : DateTimeImmutable|null
`strTimeStamp` (capital S, space-separated in the API): broadcast start, UTC (UTC)

Methods

__construct()  : mixed
__toString()  : string
equals()  : bool
True when $other is the same kind of record, built from the same API fields.
fmt()  : string

Properties

$channel

`strChannel`, e.g. `TSN 1`

public string|null $channel

$channelId

`idChannel`

public int|null $channelId

`strLogo`: the channel logo

public string|null $channelLogo

$country

`strCountry`: the channel's country

public string|null $country

$date

`dateEvent` (a date, as midnight UTC)

public DateTimeImmutable|null $date

$division

`intDivision`

public int|null $division

$eventBanner

`strEventBanner`

public string|null $eventBanner

$eventCountry

`strEventCountry`: where the event takes place

public string|null $eventCountry

$eventPoster

`strEventPoster`

public string|null $eventPoster

$eventSquare

`strEventSquare`

public string|null $eventSquare

$eventThumb

`strEventThumb`

public string|null $eventThumb

$season

`strSeason`

public string|null $season

$time

`strTime` (HH:MM:SS)

public string|null $time

$timestamp

`strTimeStamp` (capital S, space-separated in the API): broadcast start, UTC (UTC)

public DateTimeImmutable|null $timestamp

Methods

__construct()

public __construct(array<string, string|null> $raw) : mixed
Parameters
$raw : array<string, string|null>

every field as the API sent it (blank strings as null); use it for fields not modelled yet: $team->raw['strKeywords']

__toString()

public __toString() : string
Return values
string

equals()

True when $other is the same kind of record, built from the same API fields.

public equals(self|null $other) : bool
Parameters
$other : self|null
Return values
bool

fmt()

protected fmt(mixed $value) : string
Parameters
$value : mixed
Return values
string
On this page

Search results