Commit Graph

45 Commits

Author SHA1 Message Date
Ralf Becker
d1e1683ba4 only register hooks of installed apps, not all existing in filesystem, fixes fatal errors resulting from not installed apps 2014-10-31 12:24:19 +00:00
Ralf Becker
d0a6e91984 not show apps and context-menu entries for apps not available to user, hooks->single() did not check apps for new method-hooks 2014-10-30 15:16:10 +00:00
Ralf Becker
804df769d5 fixed IDE warnings 2014-03-12 17:15:48 +00:00
Ralf Becker
24604bdb5d method to test which apps implement a hook 2013-05-03 15:31:09 +00:00
Ralf Becker
44dd8e92e9 * Admin/Setup: fixing high memory usage in registering all hooks 2012-07-18 10:34:31 +00:00
Ralf Becker
797a412ec8 fix not working update from 1.6 by running register-all-hooks after restore (old 1.6 wiki_bo::search_link hook can not run in setup, so we need the new hook) 2012-04-13 14:33:43 +00:00
Klaus Leithoff
f616b34f58 API: introduce register_single_app_hook to be able to add or update one hook for an required app. register added/updated hooks with ->location; calendar and addressbook are using this to insert export_limit hook if not available. use app hook to fetch app specific export limit with import_export side_menu additions too 2011-09-15 16:53:20 +00:00
Klaus Leithoff
d9905d3fb4 calendar/addressbook/API: introduce hook to fetch the export_limit to be applied for an app; introduce method to test if a specific hook exists for an application; fetch the export_limit via hook where appropriate 2011-09-15 14:46:56 +00:00
Ralf Becker
4f54abdda2 quietened PHP Warning: array_keys() expects parameter 1 to be array, null given on line 106 2011-08-11 07:31:47 +00:00
Klaus Leithoff
95906905e4 fix for bug in register_all_hooks: if apps define hooks for other apps last app wins: seen with/for perp_ar; now all available hooks are collected first and then registered with register_hooks (loop per app) 2011-01-12 10:55:03 +00:00
Ralf Becker
2575da2575 * GroupDAV preference for addressbook-home-set (requires to register hooks) 2010-10-19 23:30:16 +00:00
Ralf Becker
6154863394 remove hooks of apps, when deleting them (event if sources are no longer there) 2010-09-15 20:09:57 +00:00
Klaus Leithoff
9851b5cd46 handle warning on install 2010-05-03 08:19:32 +00:00
Ralf Becker
49d444e3c9 fixed problem if $order is given as string, supporting it now again 2010-01-24 01:31:06 +00:00
Ralf Becker
0e405049b3 A few improvments with hooks:
- register_all_hooks deletes now hooks of no longer existing apps
- hooks get instanciated directly with egw object, to cache the hooks
  read from the DB (and not read it again on each request)
- hooks get now stored by location, so no need anymore too loop for each
  hooks::process() call to all apps to find applying hooks
- hooks::process($location,$order,$no_permission_check) no longer
  defaults automatically puts current app in $order, if $order is not
  given, without $order hooks are executed in application order!
2010-01-21 23:31:28 +00:00
Ralf Becker
1754508ce9 "let new method hooks fail gracefully if hook class-file does not exists (like the old hooks do, eg. if app got removed)" 2009-11-16 09:42:53 +00:00
Ralf Becker
ec5d0cb0c5 "fixed hook signature to always be an array (even if user code only supplys a location-string)" 2009-10-20 07:11:58 +00:00
Ralf Becker
b32ded3400 "re-added (depricated) php4 constructor, as it get's called by some old apps" 2009-05-26 17:26:24 +00:00
Ralf Becker
07825af683 "fixed not always executed hooks for disabled applications (using app-names from existing hooks now, instead of egw_info[apps])" 2009-05-26 11:55:52 +00:00
Ralf Becker
4ecce4f5ae allow all php callables (eg. "class::method" for static calls) for ExecMethod, ExecMethod2 and as methodstring for hooks 2008-04-25 18:54:06 +00:00
Ralf Becker
ec042e0f4d "using the global db object" 2008-03-15 15:00:15 +00:00
Ralf Becker
8a06c230c4 modernized and documented the hooks-class, phpgw_hooks --> egw_hooks 2005-11-13 06:58:38 +00:00
Miles Lott
ca8cf03ff2 Update for egw arrays 2005-07-23 11:39:20 +00:00
Ralf Becker
ccb4700624 removed unnecessary ';' in query in register_hooks, MaxDB treats them as SQL-errors 2004-08-04 10:30:47 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Miles Lott
8c301efe44 Fix error for Bug #887735, although there must be another problem 2004-02-03 06:06:54 +00:00
shrykedude
a4a77a34c0 typo fix 2003-11-19 15:16:37 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
Ralf Becker
cef302db7b Fix for methode-hooks with no return-value 2003-05-24 14:25:13 +00:00
Ralf Becker
2c59c61f0d added param try_unregistered to hooks::single for setup 2003-04-28 08:24:45 +00:00
Ralf Becker
4e1cd7d1f5 new type of hooks via methodes instead of separate files:
- allows to parse arguments ot the hook and return content
- all access to the hook-table is now handled by the hook-class (for admin and setup too)
- all existing hooks continue to work of cause
2003-04-27 22:26:04 +00:00
ceb
c71c14dc96 added funkwerk layout 2002-11-15 05:15:39 +00:00
Miles Lott
13cc3694e7 rework function to remove php3 error - need to test on php4 again 2002-02-16 14:30:40 +00:00
Miles Lott
3ea803c565 Add single_tpl() - allows an included file to return a value instead of echo, etc. 2002-02-10 19:34:11 +00:00
Miles Lott
9e110669d7 formatting 2002-02-10 12:17:19 +00:00
seek3r
32306abaf6 some additional performance improvements, including a switch to the hooks class which I finished up 2002-01-02 14:33:05 +00:00
Miles Lott
d2fa0405b6 formatting 2001-12-24 04:55:24 +00:00
Miles Lott
cc3247e481 formatting 2001-09-23 19:23:49 +00:00
seek3r
c9ea092eae added php3 support file 2001-08-16 06:32:22 +00:00
skeeter
dc7578a39a Various cleanups. Trying to remove some warnings when generating php errors to a file. 2001-05-14 03:54:40 +00:00
Miles Lott
e7f38fb001 Formatting 2001-05-06 13:40:04 +00:00
themaniac
82decf9cc9 start on inline documentation 2001-03-13 18:30:21 +00:00
seek3r
4e3e6c77cb fixed banners so that they are all uniform and complete 2001-01-16 13:52:32 +00:00
seek3r
fba1a92446 Put in new license details 2001-01-13 10:18:50 +00:00
seek3r
e97ef24062 switching to the new Object factory method 2001-01-11 09:52:33 +00:00