| 1 |
<?php |
| 2 |
/** |
| 3 |
* IFTTT Extension |
| 4 |
* |
| 5 |
* @package NotificationX\Extensions |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace NotificationX\Extensions\IFTTT; |
| 9 |
|
| 10 |
use NotificationX\GetInstance; |
| 11 |
use NotificationX\Extensions\Extension; |
| 12 |
|
| 13 |
/** |
| 14 |
* IFTTT Extension |
| 15 |
* @method static IFTTT get_instance($args = null) |
| 16 |
*/ |
| 17 |
class IFTTT extends Extension { |
| 18 |
/** |
| 19 |
* Instance of IFTTT |
| 20 |
* |
| 21 |
* @var IFTTT |
| 22 |
*/ |
| 23 |
use GetInstance; |
| 24 |
|
| 25 |
public $id = 'ifttt'; |
| 26 |
public $img = ''; |
| 27 |
public $doc_link = 'https://notificationx.com/docs/ifttt-notification-alert/'; |
| 28 |
public $types = 'email_subscription'; |
| 29 |
public $module = 'modules_ifttt'; |
| 30 |
public $is_pro = true; |
| 31 |
|
| 32 |
/** |
| 33 |
* Initially Invoked when initialized. |
| 34 |
*/ |
| 35 |
public function __construct(){ |
| 36 |
parent::__construct(); |
| 37 |
} |
| 38 |
|
| 39 |
public function init_extension() |
| 40 |
{ |
| 41 |
$this->title = __('IFTTT', 'notificationx'); |
| 42 |
$this->module_title = __('IFTTT', 'notificationx'); |
| 43 |
} |
| 44 |
|
| 45 |
/** |
| 46 |
* Get data for IFTTT Extension. |
| 47 |
* |
| 48 |
* @param array $args Settings arguments. |
| 49 |
* @return array |
| 50 |
*/ |
| 51 |
public function get_data( $args = array() ){ |
| 52 |
return 'Hello From IFTTT'; |
| 53 |
} |
| 54 |
} |
| 55 |
|