Comments (2)
Originally the data handlers were designed to have consistent and reusable code for input validation. They weren't meant as a full "model" layer of a MVC application (as you are probably referring to), since 1.x doesn't have a MVC foundation, nor real OOP practices.
Moving forward, yes it would make sense to do so especially when we move to MVC or some other OOP pattern.
Dennis
On 2013-03-18, at 11:07 AM, Euan T. [email protected] wrote:
I've never understood why the likes of get_user() are standalone functions instead of methods of the datahandler classes. The datahandler classes should, in my opinion, perform all CRUD operations for the data entities they're meant to handle.
This would make developing on top of MyBB make a lot more sense as one wouldn't need to require in a large file with many unnecessary functions and can simply require the datahandlers they need and any other classes (DB_*, cache handlers etc).
In order to maintain backwards compatibility with the 1.6.x series, we could have the usual get_*() function act as aliases to the class methods.
Just some food for thought.
—
Reply to this email directly or view it on GitHub.
from mybb.
Fair enough. I can wait I guess till 2.0.
from mybb.
Related Issues (20)
- Remove the deprecated "All rights reserved" phrase from all copyright notices HOT 1
- Request for invalid thread - warning HOT 2
- Threaded Mode inc/functions_post.php warning
- Reputation.php warning
- Misc.php warning
- Editpost.php warning
- Show details of chained exceptions
- Exporting Installed Themes and reimporting causes corrupt Error HOT 3
- member.php warning 1.8.36 (COPA)
- SMTP only using TLS 1.0 in specific PHP versions
- Default to current forum in "Move / Copy Thread" dropdown
- Improve 2FA QRCode presentation
- Fix PHP 8 compatibility issues since version 1.8.37 HOT 6
- Blank characters stripping improvement in usernames HOT 2
- Use `CURLOPT_DISALLOW_USERNAME_IN_URL` with curl
- Check `errorloglocation` for unexpected values
- Invalid AdminCP login warning 1.8.37 PHP 8.2
- build_theme_select does not render subtemplates in select if these are aloowed HOT 2
- Search Hooks useless on no result HOT 1
- Awaiting Moderation thread count issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybb.