Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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