class SmsGateway in SMS Framework 8
Same name in this branch
- 8 src/Annotation/SmsGateway.php \Drupal\sms\Annotation\SmsGateway
- 8 src/Entity/SmsGateway.php \Drupal\sms\Entity\SmsGateway
Same name and namespace in other branches
- 2.x src/Annotation/SmsGateway.php \Drupal\sms\Annotation\SmsGateway
- 2.1.x src/Annotation/SmsGateway.php \Drupal\sms\Annotation\SmsGateway
Defines SmsGateway Annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\sms\Annotation\SmsGateway
Expanded class hierarchy of SmsGateway
8 classes are annotated with SmsGateway
- DefaultCapabilities in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ DefaultCapabilities.php - A gateway for testing undefined capability annotation values.
- Incoming in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Incoming.php - Defines a gateway supporting incoming route.
- LogGateway in src/
Plugin/ SmsGateway/ LogGateway.php - Defines a logger gateway for testing and debugging.
- Memory in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ Memory.php - Defines a gateway storing transmitted SMS in memory.
- MemoryChunked in tests/
modules/ sms_test_gateway/ src/ Plugin/ SmsGateway/ MemoryChunked.php - Defines a gateway requiring chunked messages.
File
- src/
Annotation/ SmsGateway.php, line 14
Namespace
Drupal\sms\AnnotationView source
class SmsGateway extends Plugin {
/**
* The machine name of the sms gateway.
*
* @var string
*/
protected $id;
/**
* Translated user-readable label.
*
* @var string
*/
protected $label;
/**
* Maximum number of recipients per outgoing message.
*
* Use -1 for no limit.
*
* @var int
*/
protected $outgoing_message_max_recipients;
/**
* Whether the gateway supports receiving messages.
*
* @var bool
*/
protected $incoming;
/**
* Whether to automatically create a route for receiving incoming messages.
*
* @var bool
*/
protected $incoming_route;
/**
* Whether the gateway is capable of delaying messages until a date.
*
* Schedule aware gateways must extract sending time from all message
* getSendTime() method. Keep in mind this method is only available if the
* message is a SMS message entity. See the schedule aware gateway
* implementation in the test modules for an example.
*
* @var bool
*/
protected $schedule_aware;
/**
* Whether the gateway can pull reports.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsReportsPull()
*/
protected $reports_pull;
/**
* Whether the gateway can handle reports pushed to the site.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsReportsPush()
*/
protected $reports_push;
/**
* Whether the gateway supports queries of current credit balance.
*
* @var bool
* @see \Drupal\sms\Entity\SmsGatewayInterface::supportsCreditBalanceQuery()
*/
protected $credit_balance_available;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
SmsGateway:: |
protected | property | Whether the gateway supports queries of current credit balance. | |
SmsGateway:: |
protected | property | The machine name of the sms gateway. | |
SmsGateway:: |
protected | property | Whether the gateway supports receiving messages. | |
SmsGateway:: |
protected | property | Whether to automatically create a route for receiving incoming messages. | |
SmsGateway:: |
protected | property | Translated user-readable label. | |
SmsGateway:: |
protected | property | Maximum number of recipients per outgoing message. | |
SmsGateway:: |
protected | property | Whether the gateway can pull reports. | |
SmsGateway:: |
protected | property | Whether the gateway can handle reports pushed to the site. | |
SmsGateway:: |
protected | property | Whether the gateway is capable of delaying messages until a date. |