New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move global functions from include/ to class methods in src/ #3878
Comments
@zeroadam expressed his interest in working on this issue. |
So now we should collect a list of files and their best class paths. |
Periodic reminder: https://ethercalc.org/friendica_classes |
Currently we cannot move every file on that list. the dba.php and Photo.php for example do contain class methods and normal functions. We had to split them before moving them. Files where it should work are:
Attention: But if dbm.php is moved, then the |
I'm on it. |
Next files could be:
Relocating these should be less harder, since they aren't as much included as dbm.php. |
So, will this issue stay open for all future include/ to src/ work to reference? |
Indeed, and already a big thank you for your work, it's much appreciated! |
Absolutely welcome! Glad to finally be able to start contributing, and glad to continue to do so!!! |
You make @MrPetovan very happy with this work. |
So happy I stay up most of the night to track fatal errors with a third-party library! 😅 (I truly am happy) |
BTW: If someone has time and is very motivated; the method names in classes should be renamed to |
@rabuzarus I suggest that we are doing this after we moved all possible classes to /src. Then someone can have a look at the method under this folder and can clean this up. |
I was also noticing this, but figured @annando wouldn't want all these changes in this particular work. |
Just thought, while breaking |
This one is finished, yipeah! :-) |
We already are having some files in /include that are containing classes that we could move without a problem to /src.
This includes diaspora.php, dfrn.php and ostatus.php and possibly some more.
Tracking document: https://ethercalc.org/friendica_classes
Please update it with your planned changes.
Per @MrPetovan
Remaining files:
The text was updated successfully, but these errors were encountered: