| 1: | <?php |
| 2: | declare(strict_types=1); |
| 3: | /** |
| 4: | * +------------------------------------------------------------+ |
| 5: | * | apnscp | |
| 6: | * +------------------------------------------------------------+ |
| 7: | * | Copyright (c) Apis Networks | |
| 8: | * +------------------------------------------------------------+ |
| 9: | * | Licensed under Artistic License 2.0 | |
| 10: | * +------------------------------------------------------------+ |
| 11: | * | Author: Matt Saladna (msaladna@apisnetworks.com) | |
| 12: | * +------------------------------------------------------------+ |
| 13: | */ |
| 14: | |
| 15: | /** |
| 16: | * Webhook functions |
| 17: | * |
| 18: | * @package core |
| 19: | */ |
| 20: | class Webhook_Module extends Module_Skeleton |
| 21: | { |
| 22: | const PREFERENCES_KEY = 'webhooks'; |
| 23: | |
| 24: | public $exportedFunctions; |
| 25: | |
| 26: | public function __construct() |
| 27: | { |
| 28: | parent::__construct(); |
| 29: | $this->exportedFunctions = array( |
| 30: | '*' => PRIVILEGE_SITE, |
| 31: | ); |
| 32: | } |
| 33: | |
| 34: | public function dispatch($funcs) |
| 35: | { |
| 36: | // todo |
| 37: | } |
| 38: | |
| 39: | public function init() |
| 40: | { |
| 41: | // perform filter fetching |
| 42: | $prefs = $this->common_load_preferences(); |
| 43: | } |
| 44: | } |
| 45: | |
| 46: | ?> |
| 47: |