Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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