Skip to content

Introduce ApiParameterMapper-Attribute Class - #253

Merged
GhaziTriki merged 9 commits into
bigbluebutton:developfrom
DigitalTimK:feature/Attributes
Mar 29, 2025
Merged

Introduce ApiParameterMapper-Attribute Class#253
GhaziTriki merged 9 commits into
bigbluebutton:developfrom
DigitalTimK:feature/Attributes

Conversation

@DigitalTimK

@DigitalTimK DigitalTimK commented May 6, 2024

Copy link
Copy Markdown
Contributor

This PR will:

  • push the array-generation inside of getHTTPQuery() into a separate toArray()-function
  • introduce ApiParameterMapper-AttributeClass (new php8 feature), using at the getter of each parameter values to generate the former data array (see toArray()-function) automatically with toApiDataArray()-function.
  • adapt getHttpQuery()-function to use new toApiDataArray()-function instead of toArray()-function
  • set toArray()-function as deprecated (shall be removed once new concept is bullet prove)
  • implement temporary test to ensure toArray()-function and toApiDataArray()-function deliver identical content

While working on the parameter generation this PR will improve in addition:

  • MetaParameters-class
  • UserDataParameters-class

@DigitalTimK DigitalTimK changed the title Introduce BbbApiMapper-Attribute Class Introduce ApiParameterMapper-Attribute Class May 6, 2024
@GhaziTriki GhaziTriki added the enhancement Improvement or addition to existing functionality label May 6, 2024
# Conflicts:
#	src/BigBlueButton.php
#	tests/BigBlueButtonTest.php
#	tests/Parameters/CreateMeetingParametersTest.php
@GhaziTriki

Copy link
Copy Markdown
Member

@DigitalTimK Thank you very much for this high quality PR. And my apologies for the late review.

@GhaziTriki
GhaziTriki merged commit bfcf3ca into bigbluebutton:develop Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement or addition to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants