Commit Graph

155 Commits

Author SHA1 Message Date
Christian Binder
cdd50f6b55 new method check_perms for categories class 2009-11-18 07:42:14 +00:00
Christian Binder
da7db21806 also match against trimmed database entries when categories should be searched by $filter 2009-11-16 06:54:03 +00:00
Christian Binder
5dbc859f71 fixed missing $this-> operator which prevented ACL read on sync - let categories class always enumerate group ACLs (it was skipped for LDAP backends) 2009-11-13 09:55:54 +00:00
Ralf Becker
c133b4b106 "- docu update
- using public and private for class vars
- __construct()"
2009-05-14 07:59:51 +00:00
Ralf Becker
b8cfd7f85d "allow to use same names for add() and edit() as returned by read_single() or return_array" 2009-05-13 21:21:46 +00:00
Ralf Becker
b413a39b49 "some more compatibility stuff (table-name as variable)" 2009-02-25 14:35:43 +00:00
Ralf Becker
8ff2025051 "resetting array pointer for old code relying on it" 2009-02-25 12:59:28 +00:00
Ralf Becker
a40b1c6bfb Reworked the categories class to query all cats from the database once
per session and then operate on that cache.
This deliminates ~25 database queries for each sitemgr page.

Test carefully before applying this to a production sytem!
2008-12-17 20:05:19 +00:00
Ralf Becker
f3181308c5 "added quoting" 2008-04-16 11:37:47 +00:00
Ralf Becker
426fc2825e "using the global db object" 2008-03-15 14:52:26 +00:00
Cornelius Weiß
86f6654c8c fix the "to many categories" problem with ldap backend 2008-02-12 15:55:26 +00:00
Lars Kneschke
51f14c8d82 don't resolve group grants when using the addressbook, as resolving group memberships is currently extremly slow, with bigger installations
maybe we can also fix it different
2008-02-08 11:19:41 +00:00
Ralf Becker
b2be83b0da new id2name parameter $item="path" to get a / delimited path of the cat hierarchy (names of the parents) 2008-02-07 02:40:43 +00:00
Ralf Becker
b3f40cdff8 "added missing default for new $strip parameter of categories::name2id() added by Patric, to be compatible with the current code not giving that parameter and generating warnings because of that
Thanks to regime2000-at-gmx.de from the German list."
2007-12-20 19:13:55 +00:00
Patrick Bihan-Faou
d97f1eed5e Extend the patch to get_categories in infolog submitted by matthias to the other classes as well.
Added a hack that allows one to search for the categories' names prefixed by X-
Sony Ericsson phones (and possibly others) systematically prepend a X- to the 
category names, so with this patch we match X-CatName just like CatName

This is only done for SyncML obviously.
2007-12-11 09:29:50 +00:00
Patrick Bihan-Faou
bb20c359f2 The formated_list function in phpgwapi/inc/class.categories.inc.php was
renamed to formatted_list a while ago. There is no need to keep dead code
around.
2007-11-27 17:14:54 +00:00
Ralf Becker
ea3994993d fixed not returned global and other user cats in name2id (eg. if contacts stored in LDAP or SyncML), the so far only returned personal and application global cats have priority 2007-10-07 07:00:03 +00:00
Ralf Becker
dc68edab46 fixed csv import:
- no more caching in the cat_id function, as it's done in the categories class in the API no
- categories::name2id no longer caches not found entries, as they might be added in this request
- contacts_sql::add set's all unset telefon numbers to '', to avoid the stupid db-default '+1 (000) 000-0000', which I dont want to change in the stable release
2006-04-14 09:50:39 +00:00
Ralf Becker
db1a32aa33 fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists 2006-03-10 09:53:10 +00:00
Ralf Becker
5f625f4289 fixed bug: privat cats were not returned / shown 2005-12-02 20:29:49 +00:00
Ralf Becker
e9bbdad358 fixed bug: only 2 levels of categories get returned 2005-11-23 23:01:28 +00:00
Ralf Becker
090dc5c1da shorten the category names, by not appending <Global [App]> anymore, instead we use a symbol (diamond) to indicate a non-user cat 2005-11-11 23:05:35 +00:00
Ralf Becker
bd325a811f fix for bug reported by Oscar on the list: category query of categories::return_array ended with AND 2005-11-09 06:53:51 +00:00
Ralf Becker
263caae5e8 missing param 2005-11-08 10:10:36 +00:00
Ralf Becker
a0beab57d4 fixed bug reported by Lutz on the german list (missing AND before filter in return_array) 2005-11-08 05:07:37 +00:00
Ralf Becker
ae9ae56e30 fix for the segfaults happening since the last commits in several apps: function was calling itself ;-) 2005-11-07 09:30:33 +00:00
Ralf Becker
c4db9872c2 it was definitly to late last night ;-) 2005-11-06 09:09:05 +00:00
Ralf Becker
9de4dcd476 typo 2005-11-06 07:38:27 +00:00
Ralf Becker
7635fb25c9 phpgw_categories --> egw_categories plus reworked categories class 2005-11-05 22:58:51 +00:00
Ralf Becker
c591c2c221 fixed / added mssql support for egw and fixed some other Windows probs on the way ;-)
- knowledgebase is not working: select distinct is not possible with text-columns
- fudforum is not working: is does not use ADOdb and has no own db-layer for mssql
- other apps seem to work, everthing needs through testing - incl. our "old" db's
2004-07-25 01:41:37 +00:00
Ralf Becker
da83e39c89 fixed creation of sub-cats, to automaticaly set the main-cat (as it already set the level) from the parent 2004-05-24 09:29:30 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Lars Kneschke
56ae9c191a fix for
Warning: preg_match() expects at least 2 parameters, 1 given in
/var/www/www.phpgw.de/htdocs/egroupware/phpgwapi/inc/class.categories.inc.php on line 164
2004-04-05 06:04:07 +00:00
Ralf Becker
f68cd32ede as talked with lars and Stephan Hilchenbach from the german list ;-) 2004-04-04 22:21:26 +00:00
alpeb
1dd27ea7c0 fix id2name not returning cat_name. This avoided category names to be shown in phpbrain 2004-01-16 17:57:19 +00:00
Miles Lott
5dbef396f9 Appears to fix problems with bad data sent to a couple of functions, causing bad SQL generation 2004-01-02 22:49:10 +00:00
Ralf Becker
5f91c1c62c fixed bug in id2name 2003-12-23 22:24:55 +00:00
Miles Lott
5794ca4cc1 intval() -> (int) 2003-12-13 15:03:23 +00:00
Ralf Becker
8ea71d2f7d fixed bug with not saved description in preferences::add 2003-08-30 10:25:14 +00:00
Ralf Becker
b8557e49d9 make the phpgw Version-0_9_16-branch HEAD 2003-08-28 14:31:11 +00:00
ceb
459fceb00f update 2003-07-26 23:37:55 +00:00
ceb
74040b0444 update 2003-07-25 01:11:45 +00:00
ceb
b1aa23e5d0 fix 2003-06-24 22:33:40 +00:00
ceb
782fdf7c2d fix bug #3861 2003-06-24 13:32:25 +00:00
ceb
99cb204413 update 2003-06-21 00:59:30 +00:00
ceb
298c0d03ae fix 2003-06-17 13:23:42 +00:00
ceb
6494d641da update 2003-05-21 23:02:25 +00:00
ceb
3f24159bfd update tpl 2003-05-03 14:17:15 +00:00
ceb
7546857b3e update cats 2003-05-01 23:24:09 +00:00
ceb
0d021d3426 it was impossible to login/logout after change of framework call 2003-04-21 00:49:42 +00:00