/**
  * Get all the IM Providers from database.
  *
  * The static array imProvider is returned, and if it's
  * called the first time, the <b>IM DAO</b> is used 
  * to get all the IM Providers.
  *
  * Note: any database errors will be trapped by the DAO.
  *
  * @access public
  * @static
  *
  * @return array - array reference of all IM providers.
  *
  */
 public static function &IMProvider()
 {
     if (!self::$imProvider) {
         require_once 'CRM/Core/OptionGroup.php';
         self::$imProvider = CRM_Core_OptionGroup::values('instant_messenger_service');
     }
     return self::$imProvider;
 }
 /**
  * Get all the IM Providers from database.
  *
  * The static array imProvider is returned, and if it's
  * called the first time, the <b>IM DAO</b> is used
  * to get all the IM Providers.
  *
  * Note: any database errors will be trapped by the DAO.
  *
  * @access public
  * @static
  *
  * @return array - array reference of all IM providers.
  *
  */
 public static function &IMProvider($localize = FALSE)
 {
     if (!self::$imProvider) {
         self::$imProvider = CRM_Core_OptionGroup::values('instant_messenger_service', FALSE, FALSE, $localize);
     }
     return self::$imProvider;
 }