Hi Nathan,
array(‘importexport_helper_functions’,’_get_plugins’) means a static
call to importexport_helper_functions::_get_plugins by an other class
(egw_cache). Because importexport_helper_functions::_get_plugins is
declared a protected function call_user_func_array() return NULL, which
then get stored in the cache.
I have no idea how this could have worked in your install. May it’s a
pretty old php version, which does not check the protected …
So you need a public method/function as callback for egw_cache.
Ralf
Nathan Gray schrieb:
Hi Ralf,
I’m trying to call egw_cache::getTree() in importexport so the file
directory is scanned less frequently. This is my call:
const CACHE_EXPIRATION = 86400;
$plugins = egw_cache::getTree(
CLASS,
‘plugins’,
array(‘importexport_helper_functions’,’_get_plugins’),
array(array_keys($GLOBALS[‘egw_info’][‘apps’]), array(‘import’,
‘export’)),
self::CACHE_EXPIRATION
);
protected static function _get_plugins(Array $appnames, Array $types) {
// Get the plugins & return an array
}
This appears to work on my system, but Stefan reports that it doesn’t
work on his. I’ve commented it out for now
(http://svn.stylite.de/viewvc/egroupware/trunk/importexport/inc/class.importexport_helper_functions.inc.php?r1=29665&r2=29677)
Can you shed some light on what might be going on? I can change to
using the session, but this data should be the same for all instances
using the same code base.
Thanks,
Nathan
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller,
Gudrun Müller, Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers