Skip to content

Commit 7bc91a9

Browse files
authored
Merge pull request #102 from littleredbutton/deprecated-code
remove support for config xml
2 parents 3f1466c + 06ebdf2 commit 7bc91a9

13 files changed

Lines changed: 106 additions & 517 deletions

README.md

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ Inc.**
2525
* [Create a meeting](#create-a-meeting)
2626
* [Join a meeting](#join-a-meeting)
2727
* [End a meeting](#end-a-meeting)
28-
* [Get default config](#get-default-config)
29-
* [Set default config](#set-default-config)
3028
* [Monitoring](#monitoring)
3129
* [Get a list of meetings](#get-a-list-of-meetings)
3230
* [Is a meeting running?](#is-a-meeting-running)
@@ -176,36 +174,6 @@ $endMeetingParams = new EndMeetingParameters($meetingID, $moderator_password);
176174
$response = $bbb->endMeeting($endMeetingParams);
177175
```
178176

179-
#### Get default config
180-
> :warning: This API call does not have any effect since BBB 2.2 and was removed from BBB 2.3. Deprecated starting from version 4.0 of this library and to be removed in 4.1.
181-
182-
```php
183-
$response = $bbb->getDefaultConfigXML();
184-
185-
if ($response->failed()) {
186-
// error handling
187-
}
188-
189-
$response->getRawXml();
190-
```
191-
192-
#### Set default config
193-
> :warning: This API call does not have any effect since BBB 2.2 and was removed from BBB 2.3. Deprecated starting from version 4.0 of this library and to be removed in 4.1.
194-
195-
```php
196-
use BigBlueButton\Parameters\SetConfigXMLParameters;
197-
198-
$setConfigXmlParams = new SetConfigXMLParameters($meetingId);
199-
$setConfigXmlParams->setRawXml($rawXml);
200-
201-
$response = $bbb->setConfigXML($setConfigXmlParams);
202-
203-
if ($response->failed()) {
204-
// error handling
205-
}
206-
207-
$response->getToken();
208-
```
209177

210178
### Monitoring
211179
#### Get a list of meetings
@@ -468,12 +436,12 @@ final class CustomTransport implements TransportInterface
468436
$contentType = $request->getContentType();
469437
// aka request body
470438
$payload = $request->getPayload();
471-
439+
472440
// [...]
473-
441+
474442
return new TransportResponse($reponseBody, $jsessionId);
475-
}
476-
}
443+
}
444+
}
477445
~~~
478446

479447
Your `TranportInterface` implementation must use all values provided by the `TransportRequest` object passed (currently content type, URL and payload (body)).

src/BigBlueButton.php

Lines changed: 2 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@
3838
use BigBlueButton\Parameters\IsMeetingRunningParameters;
3939
use BigBlueButton\Parameters\JoinMeetingParameters;
4040
use BigBlueButton\Parameters\PublishRecordingsParameters;
41-
use BigBlueButton\Parameters\SetConfigXMLParameters;
4241
use BigBlueButton\Parameters\UpdateRecordingsParameters;
4342
use BigBlueButton\Responses\ApiVersionResponse;
4443
use BigBlueButton\Responses\CreateMeetingResponse;
4544
use BigBlueButton\Responses\DeleteRecordingsResponse;
4645
use BigBlueButton\Responses\EndMeetingResponse;
47-
use BigBlueButton\Responses\GetDefaultConfigXMLResponse;
4846
use BigBlueButton\Responses\GetMeetingInfoResponse;
4947
use BigBlueButton\Responses\GetMeetingsResponse;
5048
use BigBlueButton\Responses\GetRecordingsResponse;
@@ -56,7 +54,6 @@
5654
use BigBlueButton\Responses\IsMeetingRunningResponse;
5755
use BigBlueButton\Responses\JoinMeetingResponse;
5856
use BigBlueButton\Responses\PublishRecordingsResponse;
59-
use BigBlueButton\Responses\SetConfigXMLResponse;
6057
use BigBlueButton\Responses\UpdateRecordingsResponse;
6158
use BigBlueButton\Util\UrlBuilder;
6259
use SimpleXMLElement;
@@ -182,8 +179,6 @@ public function getConnectionError(): ?int
182179
/* __________________ BBB ADMINISTRATION METHODS _________________ */
183180
/* The methods in the following section support the following categories of the BBB API:
184181
-- create
185-
-- getDefaultConfigXML
186-
-- setConfigXML
187182
-- join
188183
-- end
189184
*/
@@ -210,62 +205,8 @@ public function createMeeting(CreateMeetingParameters $createMeetingParams)
210205
}
211206

212207
/**
213-
* @return string
214-
* @deprecated since 4.0 and will be removed in 4.1. The getDefaultConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
215-
*/
216-
public function getDefaultConfigXMLUrl()
217-
{
218-
@trigger_error(sprintf('"%s()" is deprecated since 4.0 and will be removed in 4.1. The getDefaultConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.', __METHOD__), E_USER_DEPRECATED);
219-
220-
return $this->urlBuilder->buildUrl(ApiMethod::GET_DEFAULT_CONFIG_XML);
221-
}
222-
223-
/**
224-
* @return GetDefaultConfigXMLResponse
225-
* @throws NetworkException
226-
* @throws ParsingException
227-
* @throws RuntimeException
228-
* @deprecated since 4.0 and will be removed in 4.1. The getDefaultConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
229-
*/
230-
public function getDefaultConfigXML()
231-
{
232-
@trigger_error(sprintf('"%s()" is deprecated since 4.0 and will be removed in 4.1. The getDefaultConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.', __METHOD__), E_USER_DEPRECATED);
233-
234-
$xml = $this->processXmlResponse($this->getDefaultConfigXMLUrl());
235-
236-
return new GetDefaultConfigXMLResponse($xml);
237-
}
238-
239-
/**
240-
* @return string
241-
* @deprecated since 4.0 and will be removed in 4.1. The setConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
242-
*/
243-
public function setConfigXMLUrl()
244-
{
245-
@trigger_error(sprintf('"%s()" is deprecated since 4.0 and will be removed in 4.1. The setConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.', __METHOD__), E_USER_DEPRECATED);
246-
247-
return $this->urlBuilder->buildUrl(ApiMethod::SET_CONFIG_XML, '', false);
248-
}
249-
250-
/**
251-
* @return SetConfigXMLResponse
252-
* @throws NetworkException
253-
* @throws ParsingException
254-
* @throws RuntimeException
255-
* @deprecated since 4.0 and will be removed in 4.1. The setConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
256-
*/
257-
public function setConfigXML(SetConfigXMLParameters $setConfigXMLParams)
258-
{
259-
@trigger_error(sprintf('"%s()" is deprecated since 4.0 and will be removed in 4.1. The setConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.', __METHOD__), E_USER_DEPRECATED);
260-
261-
$setConfigXMLPayload = $this->urlBuilder->buildQs(ApiMethod::SET_CONFIG_XML, $setConfigXMLParams->getHTTPQuery());
262-
263-
$xml = $this->processXmlResponse($this->setConfigXMLUrl(), $setConfigXMLPayload, 'application/x-www-form-urlencoded');
264-
265-
return new SetConfigXMLResponse($xml);
266-
}
267-
268-
/**
208+
* @param JoinMeetingParameters $joinMeetingParams
209+
*
269210
* @return string
270211
*/
271212
public function getJoinMeetingURL(JoinMeetingParameters $joinMeetingParams)

src/Core/ApiMethod.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,6 @@ class ApiMethod
3030
public const IS_MEETING_RUNNING = 'isMeetingRunning';
3131
public const GET_MEETING_INFO = 'getMeetingInfo';
3232
public const GET_MEETINGS = 'getMeetings';
33-
/**
34-
* @deprecated since 4.0 and will be removed in 4.1. The getDefaultConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
35-
*/
36-
public const GET_DEFAULT_CONFIG_XML = 'getDefaultConfigXML';
37-
/**
38-
* @deprecated since 4.0 and will be removed in 4.1. The setConfigXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
39-
*/
40-
public const SET_CONFIG_XML = 'setConfigXML';
41-
/**
42-
* Note: Unused in the whole project.
43-
*
44-
* @deprecated since 4.0 and will be removed in 4.1. The configXML API was related to the old Flash client which is no longer available since BigBlueButton 2.2. In BigBlueButton 2.3 the whole API call was removed.
45-
*/
46-
public const CONFIG_XML = 'configXML';
4733
public const SIGN_OUT = 'signOut';
4834
public const GET_RECORDINGS = 'getRecordings';
4935
public const PUBLISH_RECORDINGS = 'publishRecordings';

src/Parameters/SetConfigXMLParameters.php

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/Responses/EndMeetingResponse.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,6 @@ class EndMeetingResponse extends BaseResponse
2626
{
2727
const KEY_SET_END_MEETING_REQUEST = 'sentEndMeetingRequest';
2828

29-
/**
30-
* @return string
31-
*/
32-
public function getMessageKey()
33-
{
34-
return $this->rawXml->messageKey->__toString();
35-
}
36-
37-
/**
38-
* @return string
39-
*/
40-
public function getMessage()
41-
{
42-
return $this->rawXml->message->__toString();
43-
}
44-
4529
/**
4630
* @return bool
4731
*/

src/Responses/GetDefaultConfigXMLResponse.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/Responses/SetConfigXMLResponse.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)