Ralf Becker
ff4152dd42
if not category specified to invalidate_cache() call init_cache(), to fix problem of categories deleted via context menu are not deleted from list (only in next, but not in current refresh)
2012-03-17 10:54:59 +00:00
Ralf Becker
ec5f38ca05
added basic update of own cache, to work around failed sitemgr install via setup (cant read just added categories)
2012-02-14 17:37:20 +00:00
Ralf Becker
01ee489460
using instance-wide cache for categories, so updates from other sessions are immediatly available and sessions get smaller
2012-02-10 20:17:28 +00:00
Nathan Gray
74e7a27b4c
Allow setting owner when creating a new category
2011-07-07 15:36:01 +00:00
Nathan Gray
387f4ed073
Some fixes for category access with multiple owners
2011-06-27 22:05:03 +00:00
Ralf Becker
e960b79570
fixed not working access to all non-private user categories (ACL was priviously allways taken into account)
2011-06-24 13:35:39 +00:00
Nathan Gray
e9cc2549ac
Allow categories->return_sorted_array() to use a filter too
2011-06-15 22:32:52 +00:00
Nathan Gray
5bed43746f
Fix for editing private categories
2011-06-15 14:20:43 +00:00
Nathan Gray
81f58ab129
- Change category group filtering to allow multiple groups
...
- Give warning when removing access from a group
2011-06-14 18:50:35 +00:00
Ralf Becker
a2d19164ee
fix postgres error reported on devel list: PostgreSQL error with categories attrunk@34914
2011-05-16 14:25:17 +00:00
Ralf Becker
1b210da48d
call all delete_category hook only for all apps, if cat is application-global
2011-02-15 13:03:39 +00:00
Ralf Becker
46c7b013b8
fixed bug introduce in fix: no more serialized cat data (like calendar colors) were returned
2010-10-26 07:41:47 +00:00
Ralf Becker
d10b7deaf3
SiteMgr bugfix: edit category always reads sort as 0, (unserialize data only, if it is serialized)
2010-10-25 18:08:07 +00:00
Klaus Leithoff
5c66c7d162
categories: better handling of editing/moving categories within the cat-tree
2010-10-14 15:33:10 +00:00
Ralf Becker
819ce52f90
reverted removing from delete call in add, as it does NOT take into account changed levels handled by delete
2010-10-14 08:18:41 +00:00
Klaus Leithoff
e8aef25f5b
phpgwapi: call hooks of apps after deleting of categories to enable apps to clean up their use of affected categories
2010-10-13 07:39:53 +00:00
Ralf Becker
85475540f6
fixed not working update for application global categories, which for some reason got created with an owner != -1
2010-06-15 10:25:10 +00:00
Ralf Becker
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
Ralf Becker
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
Christian Binder
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
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