protected function setModuleRights($groupId, $module)
{
$groupId = (int) $groupId;
$module = (string) $module;
// module doesn't exist
if (!(bool) $this->getDB()->getVar('SELECT 1
FROM groups_rights_modules
WHERE group_id = ? AND module = ?
LIMIT 1', array((int) $groupId, (string) $module))) {
$item = array('group_id' => $groupId, 'module' => $module);
$this->getDB()->insert('groups_rights_modules', $item);
}
}