This repository was archived by the owner on Jun 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -53,4 +53,35 @@ public function setAttributes($attribute)
53
53
{
54
54
parent ::setAttributes ($ attribute );
55
55
}
56
+
57
+ /**
58
+ * Returns an array of all the episode objects for the intstantiated season.
59
+ *
60
+ * @uses Plex_Server_Library::getItems()
61
+ * @uses Plex_Server_Library_ItemAbstract::buildChildrenEndpoint()
62
+ *
63
+ * @return Plex_Server_Library_Item_Episode[] An array of Plex library
64
+ * episodes objects.
65
+ */
66
+ public function getEpisodes ()
67
+ {
68
+ return $ this ->getItems (
69
+ $ this ->buildChildrenEndpoint ()
70
+ );
71
+ }
72
+
73
+ /**
74
+ * Returns a single episode by index, key, or exact title match.
75
+ *
76
+ * @param integer|string $polymorphicData Either an index, a key, or a title
77
+ * for an exact title match that will be used to retrieve a single episode.
78
+ *
79
+ * @uses Plex_Server_Library_ItemAbstract::getPolymorphicItem()
80
+ *
81
+ * @return Plex_Server_Library_Item_Episode A single episode.
82
+ */
83
+ public function getEpisode ($ polymorphicData )
84
+ {
85
+ return $ this ->getPolymorphicItem ($ polymorphicData );
86
+ }
56
87
}
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ public function setAttributes($attribute)
60
60
* @uses Plex_Server_Library::getItems()
61
61
* @uses Plex_Server_Library_ItemAbstract::buildChildrenEndpoint()
62
62
*
63
- * @return Plex_Server_Library_ItemSeason [] An array of Plex library season
63
+ * @return Plex_Server_Library_Item_Season [] An array of Plex library season
64
64
* objects.
65
- */
65
+ */
66
66
public function getSeasons ()
67
67
{
68
68
return $ this ->getItems (
You can’t perform that action at this time.
0 commit comments