-
MODX Staff
- 12,272 Posts
What if we make the tag parser and the API strictly as plugins. That way we could more easily add to or substitute other plugins for different tag parsers (Wordpress, etc.), PHP/MySQL 5 implmementations, etc.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 10,725 Posts
We can do this by allowing users to specify custom classes that extend our ContentManager class in the site configuration. This will be trivial to implement and prevents additional includes from taking place. And I don’t believe it will be a problem for PHP4 or PHP5. Basic inheritence can work wonders for modularity and allowing for pluggable implementations of the same API’s. I plan to use this same approach when implementing the user API and module, which will feature pluggable authentication, profile, and security providers, starting with our local implementation of merged manager and web users. From the module in the manager you’d be able to select alternate classes that might override the behavior of any part of the core classes.