@@ -107,7 +107,7 @@ protected function buildUrl($endpoint)
107
107
*
108
108
* @uses Plex_MachineAbstract::makeCall()
109
109
* @uses Plex_Server_Library::buildUrl()
110
- * @uses Plex_Server_Library_Item ::factory()
110
+ * @uses Plex_Server_Library_ItemAbstract ::factory()
111
111
* @uses Plex_Server_Library_ItemInterface::setAttributes()
112
112
*
113
113
* return Plex_Server_Library_Item[] An array of plex library items.
@@ -118,11 +118,12 @@ protected function getItems($endpoint)
118
118
$ itemArray = $ this ->makeCall ($ this ->buildUrl ($ endpoint ));
119
119
120
120
foreach ($ itemArray as $ attribute ) {
121
- $ item = Plex_Server_Library_Item::factory ($ attribute ['type ' ]);
121
+ $ item = Plex_Server_Library_ItemAbstract::factory (
122
+ $ attribute ['type ' ]
123
+ );
122
124
$ item ->setAttributes ($ attribute );
123
125
$ items [] = $ item ;
124
126
}
125
-
126
127
return $ items ;
127
128
}
128
129
@@ -133,12 +134,11 @@ protected function getItems($endpoint)
133
134
* @uses Plex_MachineAbstract::$name
134
135
* @uses Plex_MachineAbstract::$address
135
136
* @uses Plex_MachineAbstract::$port
136
- * @uses Plex_MachineAbstract::getBaseUrl()
137
137
* @uses Plex_MachineAbstract::makeCall()
138
- * @uses Plex_MachineAbstract::xmlAttributesToArray()
139
- * @uses Plex_Server_Library::ENDPOINT_LIBRARY
140
138
* @uses Plex_Server_Library::ENDPOINT_SECTION
141
- * @uses Plex_Server_Library_Section::setAttributes()
139
+ * @uses Plex_Server_Library::buildUrl()
140
+ * @uses Plex_Server_Library_SectionAbstract::factory()
141
+ * @uses Plex_Server_Library_SectionAbstract::setAttributes()
142
142
*
143
143
* @return Plex_Server_Library_Section[] An array of user defined Plex
144
144
* library sections.
@@ -151,7 +151,8 @@ public function getSections()
151
151
);
152
152
153
153
foreach ($ sectionArray as $ attribute ) {
154
- $ section = new Plex_Server_Library_Section (
154
+ $ section = Plex_Server_Library_SectionAbstract::factory (
155
+ $ attribute ['type ' ],
155
156
$ this ->name ,
156
157
$ this ->address ,
157
158
$ this ->port
0 commit comments