original_string: public static function init_standard_issuer($type) {
          require_capability('moodle/site:config', context_system::instance());
          if ($type == 'google') {
              return self::init_google();
          } else if ($type == 'microsoft') {
              return self::init_microsoft();
          } else if ($type == 'facebook') {
              return self::init_facebook();
          } else if ($type == 'nextcloud') {
              return self::init_nextcloud();
          } else {
              throw new moodle_exception('OAuth 2 service type not recognised: ' . $type);
          }
      }
code: public static function init_standard_issuer($type) {
          require_capability('moodle/site:config', context_system::instance());
          if ($type == 'google') {
              return self::init_google();
          } else if ($type == 'microsoft') {
              return self::init_microsoft();
          } else if ($type == 'facebook') {
              return self::init_facebook();
          } else if ($type == 'nextcloud') {
              return self::init_nextcloud();
          } else {
              throw new moodle_exception('OAuth 2 service type not recognised: ' . $type);
          }
      }
code_tokens: public static function init_standard_issuer ( $ type ) { require_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ; if ( $ type == 'google' ) { return self :: init_google ( ) ; } else if ( $ type == 'microsoft' ) { return self :: init_microsoft ( ) ; } else if ( $ type == 'facebook' ) { return self :: init_facebook ( ) ; } else if ( $ type == 'nextcloud' ) { return self :: init_nextcloud ( ) ; } else { throw new moodle_exception ( 'OAuth 2 service type not recognised: ' . $ type ) ; } }
docstring: Initializes a record for one of the standard issuers to be displayed in the settings.
  The issuer is not yet created in the database.
  @param string $type One of google, facebook, microsoft, nextcloud
  @return \core\oauth2\issuer
docstring_tokens: Initializes a record for one of the standard issuers to be displayed in the settings . The issuer is not yet created in the database .