Commit Graph

158 Commits

Author SHA1 Message Date
958452ff95 Implementation of global categories limited to a certain group:
- from user perspectiv they are global cat like the existing ones
  (also comming in two flavors: global or for a certain app)
- admins can select to limit a global cat when they create it
--> all members of a given group have the cat as a global one
==> This does a silent modification of the categories table: 
global cats get changed from cat_owner=-1 to cat_owner=0 !!!
2010-01-31 03:36:01 +00:00
43553a0226 - depricated return_single($cat_id) in favor of read($cat_id) return not
an array with a single cat, but just the cat
- read($cat_id) and id2name($cat_id,'data') return now data as array
- edit($cat) and add($cat) now serialize data, if it's an array
- return*() have optional parameter to return data as array (default is
  still to return it serialized)
- new constants categories::GLOBAL_APPNAME='phpgw' and
  categories::GLOBAL_ACCOUNT=-1 (the later will change in the next step)
2010-01-30 23:50:51 +00:00
30fd54c4ac central method in categories class to check a given list of category ids for needed permission 2009-11-26 08:24:51 +00:00
cdd50f6b55 new method check_perms for categories class 2009-11-18 07:42:14 +00:00
da7db21806 also match against trimmed database entries when categories should be searched by $filter 2009-11-16 06:54:03 +00:00
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
c133b4b106 "- docu update
- using public and private for class vars
- __construct()"
2009-05-14 07:59:51 +00:00
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
b413a39b49 "some more compatibility stuff (table-name as variable)" 2009-02-25 14:35:43 +00:00
8ff2025051 "resetting array pointer for old code relying on it" 2009-02-25 12:59:28 +00:00
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
f3181308c5 "added quoting" 2008-04-16 11:37:47 +00:00
426fc2825e "using the global db object" 2008-03-15 14:52:26 +00:00
86f6654c8c fix the "to many categories" problem with ldap backend 2008-02-12 15:55:26 +00:00
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
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
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
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
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
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
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
db1a32aa33 fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists 2006-03-10 09:53:10 +00:00
5f625f4289 fixed bug: privat cats were not returned / shown 2005-12-02 20:29:49 +00:00
e9bbdad358 fixed bug: only 2 levels of categories get returned 2005-11-23 23:01:28 +00:00
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
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
263caae5e8 missing param 2005-11-08 10:10:36 +00:00
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
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
c4db9872c2 it was definitly to late last night ;-) 2005-11-06 09:09:05 +00:00
9de4dcd476 typo 2005-11-06 07:38:27 +00:00
7635fb25c9 phpgw_categories --> egw_categories plus reworked categories class 2005-11-05 22:58:51 +00:00
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
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
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
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
f68cd32ede as talked with lars and Stephan Hilchenbach from the german list ;-) 2004-04-04 22:21:26 +00:00
1dd27ea7c0 fix id2name not returning cat_name. This avoided category names to be shown in phpbrain 2004-01-16 17:57:19 +00:00
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
5f91c1c62c fixed bug in id2name 2003-12-23 22:24:55 +00:00
5794ca4cc1 intval() -> (int) 2003-12-13 15:03:23 +00:00
8ea71d2f7d fixed bug with not saved description in preferences::add 2003-08-30 10:25:14 +00:00
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