The object to represent a music album
| Data type | Property | Description |
|---|---|---|
| int | ratingKey | |
| int | parentRatingKey | |
| string | key | The key to get the details of the album |
| string | parentKey | The link back to the artist |
| string | guid | |
| string | parentGuid | |
| string | studio | The studio that produced the album |
| string | type | The media type album |
| string | title | The title of the album |
| string | titleSort | The title used in sorting the album in the UI |
| string | parentTitle | The name of the parent artist |
| string | summary | |
| string | rating | User rating |
| int | index | |
| int | viewCount | |
| int | skipCount | |
| int | year | The year the album was released |
| DateTime | lastVeiwedAt | Date/time the album was last played |
| DateTime | originallyAvailableAt | The date/time the album was released |
| DateTime | addedAt | Date/time the album was added to the library |
| DateTime | updatedAt | Date/time the album database entry was last changed |
| string | thumb | URL to thumbnail |
| string | parentThumb | URL to artist thumbnail |
| int | loudnessAnalysisVersion | |
| array | directory | |
| array | genre | Genre's of music on the album |
| 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:Track Method to retrieve collection of tracks on this album |
| public | addTrack(Track $a): void |
| public static | fromLibrary(array $library): Album Create a Album from the Plex API call return |