-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathModule.php
More file actions
43 lines (36 loc) · 788 Bytes
/
Module.php
File metadata and controls
43 lines (36 loc) · 788 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
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace humhub\modules\sharebetween;
use humhub\modules\content\components\ContentContainerModule;
use humhub\modules\sharebetween\models\Share;
use humhub\modules\space\models\Space;
use humhub\modules\user\models\User;
class Module extends ContentContainerModule
{
/**
* @inheritdoc
*/
public function disable()
{
foreach (models\Share::find()->all() as $share) {
$share->hardDelete();
}
parent::disable();
}
/**
* @inheritdoc
*/
public function getContentContainerTypes()
{
return [
Space::class,
User::class,
];
}
/**
* @inheritdoc
*/
public function getContentClasses(): array
{
return [Share::class];
}
}