On Jun 16, 5:42 am, John Cox <
john.cox...@gmail.com> wrote:
> It's working completely now. A couple of things that I am not sure of
> though.
I managed to install using the latest changes. It falls over at
completion during theme display with
Fatal error: Call to undefined function xarBlock_renderGroup()
I'll attend to it if you don't get to it first.
> There is also one place in the install xaradmin file that has a giant
> FIXME, as xarroles.php class wasn't being included from some point. I
> added an include_once, but my guess is something else isn't working.
Ok, noted.
> That said, I am thinking about removing the themes module
> altogether, but still allowing the customer tags from the core. I
> think we can set a theme name in a config var, and be done with it.
> think we can also still allow the overrides as well, without the
> module. IE, if I throw a theme together, why should I have to install
> it? Thoughts?
Agree. Apart from keeping a track of what is and isn't installed,
xaraya doesn't do anything with 'installed' themes in the UI so I
can't see why we need the extra overhead.
> A couple of questions:
>
> -> Any idea what the "tables" table does and where it comes from?
The tables table keeps track of all the table definitions - eg module
tables and fields (or is supposed to). This is done through the xar
tabledll core functions when installing/uninstalling modules. It is
also used specifically by some modules, eg dynamicdata for handling
table manipulations and so on.
> -> I missed pulling out the hooks table, I'll get that one. One more
> thing about hooks. The reason I have pulled them out, I am assuming
> that the applications are all self-aware. Since this is a development
> system and not a user system, I don't see the need for them. Should
> we discuss?
At this point, I can't see how they'd be used in a development system.
Unless the apis were of use somehow in an application?
> -> I see now the problem with the vars. Seems like a lot of
> repetitive code, and overhead.
Yes definitely. These were amalgamated in xaraya 2x code to one module
var table (I probably would have renamed the table). There was also a
new 'itemtype' var with associated table also added in to fill a
perceived gap in what var types did exist. We don't have to go that
way but it's an example. We have quite a few different types now - do
we want to keep them all? System config vars, theme vars, module vars,
user vars - I'll start with removing theme var code given the apis are
going, and the code can definitely be consolidated/reduced. Any other
suggestions?
Question - xaraya 1x was still very much 'php4/php5' while xar2x had
converted to php5/classes and more OO approach throughout the
codebase. I had started moving my own 1x branch to php5/classes/OO in
some areas - do we want to do that?
I"ll continue on as per planned areas for working - variables, mail.