forked from shoreless-ltd/tbg-mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponents.php
More file actions
33 lines (25 loc) · 779 Bytes
/
Components.php
File metadata and controls
33 lines (25 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace thebuggenie\modules\mattermost;
use thebuggenie\core\framework;
/**
* actions for the mattermost module
*/
class Components extends framework\ActionComponent
{
/**
* @return \thebuggenie\modules\mattermost\Mattermost
* @throws \Exception
*/
protected function _getModule()
{
return framework\Context::getModule('mattermost');
}
public function componentSettings()
{
$this->webhook_url = $this->_getModule()->getWebhookUrl();
}
public function componentProjectconfig_panel()
{
$this->integration_enabled = $this->module->isProjectIntegrationEnabled($this->project->getID());
}
}