9
Quote:
Frank, I agree with you on this!
Thx! I really wish, that my skills were better and I must not use low-level-workarounds (in my case).
Perhaps it would be useful, if skilled and non-skilled developers explain their "requirements" to make XOOPS (modules) better?
I already met some points in XOOPS while non-skilled-programming where I had some good (easy) thoughts on how to solve problems, but ...
Here are three of them:
a) why does the code in xoopsConfig and xoopsModuleConfig differ for multigroup?
b) a) arose from the problem, that I heavily use(d) various permissions. But each checkRight I use triggers a database query. OK, I thought, then use xoopsModuleConfig which is one big array and use the permissions there, but this is not satisfying, because guests are excluded.
So I asked for one big permission array, but the code I was told wasn't working:
$criteria = new CriteriaCompo(new Criteria('gperm_modid', 'moduleidasinteger'));
$criteria->add('groupidsasarray');
$perms = $gperm_handler->getObjects($criteria,true,false);
Anyone knows a proper solution to get ALL the permissions for a module in ONE shot?
c) I wanted to save queries for my blocks writing all the functions into one file, having code re-usable for all the functions, but this is not working if the blocks are displayed outside the module, so I made a preg_match to use fail-safe-code in this code. Any workaround for this?