public function getOptionGroupList(array $fetchOptions = array())
{
if (!isset($fetchOptions['includeDebug']))
{
$fetchOptions['includeDebug'] = XenForo_Application::debugMode();
}
$joinOptions = $this->prepareOptionGroupFetchOptions($fetchOptions);
return $this->fetchAllKeyed('
SELECT option_group.*
' . $joinOptions['selectFields'] . '
FROM xf_option_group AS option_group
' . $joinOptions['joinTables'] . '
WHERE 1=1
' . (!$fetchOptions['includeDebug'] ? 'AND option_group.debug_only = 0' : '') . '
ORDER BY
option_group.display_order ASC, option_group.addon_id ASC
', 'group_id');
}