Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
factor_sms\local\smsgateway\aws_sns Class Reference
Inheritance diagram for factor_sms\local\smsgateway\aws_sns:
factor_sms\local\smsgateway\gateway_interface

Public Member Functions

 __construct ()
 Create an instance of this class.
 
 send_sms_message (string $messagecontent, string $phonenumber)
 Sends a message using the AWS SNS API.
 

Static Public Member Functions

static add_settings (\admin_settingpage $settings)
 Add gateway specific settings to the SMS factor settings page.
 
static is_gateway_enabled ()
 Returns whether or not the gateway is enabled.
 

Member Function Documentation

◆ add_settings()

static factor_sms\local\smsgateway\aws_sns::add_settings ( \admin_settingpage $settings)
static

Add gateway specific settings to the SMS factor settings page.

Parameters
admin_settingpage$settings
Return values
void

Implements factor_sms\local\smsgateway\gateway_interface.

◆ is_gateway_enabled()

static factor_sms\local\smsgateway\aws_sns::is_gateway_enabled ( )
static

Returns whether or not the gateway is enabled.

Return values
bool

Implements factor_sms\local\smsgateway\gateway_interface.

◆ send_sms_message()

factor_sms\local\smsgateway\aws_sns::send_sms_message ( string $messagecontent,
string $phonenumber )

Sends a message using the AWS SNS API.

Parameters
string$messagecontentthe content to send in the SMS message.
string$phonenumberthe destination for the message.
Return values
booltrue on message send success

Implements factor_sms\local\smsgateway\gateway_interface.


The documentation for this class was generated from the following file: