Forumlar / Cotonti / Core Labs / Archive / Core functions pluggable

Trustmaster
#464 2008-08-15 08:20
Previous threads:
http://www.neocrome.net/plug.php?e=tracker&m=bview&pr=1&id=404
http://www.neocrome.net/forums.php?m=posts&p=123836#123836

Well, I think we don't really need them as plugins, because you are not likely to install more than 1 parsers at once (otherwise they will conflict).

What I would suggest right now is to have some of core functions you would like to replace grouped in "modules" like:
system/mods/parser.inc.php
system/mods/pagination.inc.php

So, once you need another parser, you just download third-party parser.inc.php and replace the default one. Yes, that will add a few more require's in common.php, but that's still faster than having them as plugins. And I made includes work slightly faster, see Ticket #39 on Trac.

Alternatively, could pick up all includes in system/mods folder, but that will be more disk operations.
May the Source be with you!