Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

PayPal enrolment plugin utility class.

Copyright: 2016 Cameron Ball <cameron@cameron1729.xyz>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 117 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: util  - X-Ref

Core upgrade utility class.

get_min_ssl_lib_version_for_tls12($sslflavour)   X-Ref
Gets the minimum version of a SSL/TLS library required for TLS 1.2 support.

param: string $sslflavour The SSL/TLS library
return: string|false The version string if it exists. False otherwise

validate_php_curl_tls(array $curlinfo, $zts)   X-Ref
Validates PHP/cURL extension for use with SSL/TLS.

param: array $curlinfo array of cURL information as returned by curl_version()
param: int   $zts 0 or 1 as defined by PHP_ZTS
return: bool

can_use_tls12(array $curlinfo, $uname)   X-Ref
Tests if the system is capable of using TLS 1.2 for requests.

param: array  $curlinfo array of cURL information as returned by curl_version()
param: string $uname server uname
return: bool