You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into integrating H5P into another framework - an alternative to existing Wordpress or Drupal integrations.
To address the issues I've encountered in this can I suggest the changes:
(a) Change all private class functions / properties to protected.
This makes it easier for the framework integrator to extend classes, creating overrides.
(b) Split file h5p.classes.ph into a separate file for each class.
Makes it a lot easier to read and find things.
(c) Add the following line to the top of each file i.e. use namespacing.
namespace h5p_php_library;
Screenshot of the framework class structure I am pursuing.
Long-term this will create maintenance problems with porting changes from github into the framework.
The text was updated successfully, but these errors were encountered:
I've been looking into integrating H5P into another framework - an alternative to existing Wordpress or Drupal integrations.
To address the issues I've encountered in this can I suggest the changes:
(a) Change all private class functions / properties to protected.
This makes it easier for the framework integrator to extend classes, creating overrides.
(b) Split file h5p.classes.ph into a separate file for each class.
Makes it a lot easier to read and find things.
(c) Add the following line to the top of each file i.e. use namespacing.
namespace h5p_php_library;
Screenshot of the framework class structure I am pursuing.
Long-term this will create maintenance problems with porting changes from github into the framework.
The text was updated successfully, but these errors were encountered: