/**
* Replaces User::addUserGroup()
* @param string $group
/**
* Replaces User::addUserGroup()
* @param string $group
*/
function addGroup( $group ) {
$this->db->insert( 'user_groups',
*/
function addGroup( $group ) {
$this->db->insert( 'user_groups',
),
__METHOD__,
array( 'IGNORE' ) );
),
__METHOD__,
array( 'IGNORE' ) );
}
/**
* Replaces User::removeUserGroup()
* @param string $group
}
/**
* Replaces User::removeUserGroup()
* @param string $group
*/
function removeGroup( $group ) {
$this->db->delete( 'user_groups',
*/
function removeGroup( $group ) {
$this->db->delete( 'user_groups',
'ug_group' => $group,
),
__METHOD__ );
'ug_group' => $group,
),
__METHOD__ );