-
Notifications
You must be signed in to change notification settings - Fork 254
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
Objectification #7847
Objectification #7847
Conversation
07664ce
to
2d66377
Compare
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
2d66377
to
3cbc0f8
Compare
I think the build job is failing because of this:
|
Oh, this is awesome. I have no words! I will look into this further, but this was pretty much needed and I'm glad that you had time to do this. Out of curiosity, for how long have you been working on this? |
Thanks! 😄
Checks commit log... Since Dec 22, 2022, at 20:21:21 UTC. |
Looks like $db isn't there yet because of this:
Then when loading the database, we do so in the construct. Essentially we never can get a $db. I debated if I should just fix this, but wanted to pass it through you, as its going to be a core issue and I'm still new to this code base. My idea was to have the API store the result of $class then have the Db hold a static error method which can call $db or if its not there, fall back to $class::error. Seems to fix it and provide a safe way to always just call Db::error and let it handle it. |
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
This eliminates a whole bunch of redundant code and variables. Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Done in a separate commit to preserve history. Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Also adds SMF\Unicode\Utf8String::extractWords(), which does a much better job of finding words in non-ASCII strings than the old code did. There is still room for improvement, but that will have to wait until later. Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Also fixes truncate_array(), since it didn't actually work. Also removes useless $deep parameter. Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
Like Load.php, Subs.php has been removed rather than turned into a backward compatibility stub file because every existing mod would assume that it had already been included and wouldn't try to include it themselves. The class_exists() calls in Subs-Compat.php are all we need to do now to maintain backward compatibility for those mods. Signed-off-by: Jon Stovell <[email protected]>
Signed-off-by: Jon Stovell <[email protected]>
79d4dba
to
63630b1
Compare
I did something simpler:
|
I'm going to go ahead and merge this monster now. Bug fixes for any of it can be added in later PRs. |
Only issue with that is now we have no error information. It should be possible to get the error info, even from a failed connection. |
Good point. Feel free to submit a PR. 🙂 |
Bravo, sir. This was long overdue! |
Refactors SMF to use the object oriented code paradigm.