This represents a single season within a show
Data type | Property | Description |
---|---|---|
int | ratingKey | The key index for the season |
int | parentRatingKey | The key index of the show |
string | key | The key for the season (used to get the details and children) |
string | parentKey | The key for the parent show |
string | guid | The guid for the season |
string | parentGuid | The GUID of the parent show |
string | type | The type of the media (season ) |
string | title | The title of the season |
string | parentTitle | The title of the parent show |
string | summary | Th sumary of the season |
string | index | The index for the season |
int | parentYear | The year the parent show was released |
string | thumb | The thumbnail for this season |
string | art | The artwork for the season |
string | parentThumb | The thumbnail of the parent |
string | parentTheme | The theme of the parent |
int | leafCount | The number of episodes in this season |
int | viewedLeafCount | The number of times an episode in this season was viewed |
DateTime |
addedAt | The date and time this season was added to the library |
DateTime |
updatedAt | The date and time this season was last updated in the library |
ItemCollection :Episode (Episode.md) |
episodes | An array to store all the episodes in this season |
Visibility | Function (parameters,...): return |
---|---|
public | __construct(): void |
public | __get(string $var): mixed Magic getter |
public | __set(string $var, mixed $val): void Magic setter |
public | getChildren(): ItemCollection:Episodes Method to get all episodes within this season |
public | addEpisode(Episode $episode): void Method to add an episode to the season |
public static | fromLibrary(array $lib): Season Method to create a season |