|
stdClass readonly stdClass | $config |
| The configuration for this instance.
|
|
string const | MODICA_DEFAULT_API = 'https://api.modicagroup.com/rest/gateway/messages' |
| MODICA_DEFAULT_API The default api gateway for modica.
|
|
|
int const | MESSAGE_LENGTH_LIMIT = 160 * 3 |
| The maximum length of a message.
|
|
◆ can_send()
core_sms\gateway::can_send |
( |
message | $message | ) |
|
|
inherited |
Confirm whether this gateway can send the given message.
- Parameters
-
- Return values
-
◆ get_send_priority()
smsgateway_modica\gateway::get_send_priority |
( |
message | $message | ) |
|
Get the priority of this gateway for sending the given message.
A priority of 0 means that the gateway cannot send the message. Higher values are higher priority.
This method is called frequently, so should be fast. If calculation is expensive the value should be cached.
- Parameters
-
- Return values
-
Reimplemented from core_sms\gateway.
◆ send()
smsgateway_modica\gateway::send |
( |
message | $message | ) |
|
Send the given message.
- Parameters
-
- Return values
-
Reimplemented from core_sms\gateway.
◆ to_record()
core_sms\gateway::to_record |
( |
| ) |
|
|
inherited |
Convert this object to a stdClass.
- Return values
-
◆ truncate_message()
core_sms\gateway::truncate_message |
( |
string | $message | ) |
|
|
inherited |
Truncates the given message to fit the constraints.
- Parameters
-
string | $message | The message to be truncated. |
- Return values
-
string | The truncated message. |
◆ update_message_status()
core_sms\gateway::update_message_status |
( |
message | $message | ) |
|
|
inherited |
Update the status of the given message from the gateway.
- Parameters
-
- Return values
-
- Exceptions
-
◆ update_message_statuses()
core_sms\gateway::update_message_statuses |
( |
array | $messages | ) |
|
|
inherited |
Update the statuses of the given messages from the gateway.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- sms/gateway/modica/classes/gateway.php