DbUserGroupBackend: Make it possible to handle memberships

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-13 10:34:39 +02:00
parent 47dfcf5e1d
commit 223ecab991
1 changed files with 13 additions and 1 deletions

View File

@ -22,6 +22,14 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
'parent_name' => 'parent', 'parent_name' => 'parent',
'created_at' => 'UNIX_TIMESTAMP(ctime)', 'created_at' => 'UNIX_TIMESTAMP(ctime)',
'last_modified' => 'UNIX_TIMESTAMP(mtime)' 'last_modified' => 'UNIX_TIMESTAMP(mtime)'
),
'group_membership' => array(
'group' => 'group_name COLLATE utf8_general_ci',
'group_name',
'user' => 'username COLLATE utf8_general_ci',
'user_name' => 'username',
'created_at' => 'UNIX_TIMESTAMP(ctime)',
'last_modified' => 'UNIX_TIMESTAMP(mtime)'
) )
); );
@ -34,6 +42,10 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
'group' => array( 'group' => array(
'created_at' => 'ctime', 'created_at' => 'ctime',
'last_modified' => 'mtime' 'last_modified' => 'mtime'
),
'group_membership' => array(
'created_at' => 'ctime',
'last_modified' => 'mtime'
) )
); );
@ -42,7 +54,7 @@ class DbUserGroupBackend extends DbRepository implements UserGroupBackendInterfa
* *
* @var array * @var array
*/ */
protected $filterColumns = array('group', 'parent'); protected $filterColumns = array('group', 'parent', 'user');
/** /**
* The default sort rules to be applied on a query * The default sort rules to be applied on a query