-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathModule.php
43 lines (36 loc) · 1.16 KB
/
Module.php
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
/**
* User Location Map
*
* @package humhub.modules.usermap
* @author KeudellCoding
*/
namespace humhub\modules\usermap;
use yii\helpers\Url;
class Module extends \humhub\components\Module {
/**
* @var callable a callback that returns true if the user is to be displayed on the map, false otherwise.
* The only parameter is the user. The result is not cached.
*/
public $showOnMapCallback = null;
/**
* @var callable a callback that returns the formated address as a string of a user or null if there is no address.
* The only parameter is the user. The result is not cached.
*/
public $getFormatedAddressCallback = null;
/**
* @var callable a callback that returns null or the coordinates of a user as an array: ['latitude' => 0, 'longitude' => 0].
* The only parameter is the user. The result is not cached.
*/
public $getCoordinatesCallback = null;
/**
* @inheritdoc
*/
public $resourcesPath = 'resources';
/**
* @inheritdoc
*/
public function getConfigUrl() {
return Url::to(['/usermap/admin/index']);
}
}