1 | <?php |
||
23 | class GeoCoder extends Plugin |
||
24 | { |
||
25 | /** |
||
26 | * @var BaseService the service to use for geo search |
||
27 | */ |
||
28 | private $_service; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | * @throws \yii\base\InvalidConfigException |
||
33 | */ |
||
34 | 9 | public function init() |
|
40 | |||
41 | /** |
||
42 | * Sets the service to use for geocoding |
||
43 | * |
||
44 | * @param BaseService $service |
||
45 | */ |
||
46 | 9 | public function setService(BaseService $service) |
|
50 | |||
51 | /** |
||
52 | * @return BaseService |
||
53 | */ |
||
54 | 9 | public function getService() |
|
58 | |||
59 | /** |
||
60 | * Returns the plugin name |
||
61 | * @return string |
||
62 | */ |
||
63 | 3 | public function getPluginName() |
|
67 | |||
68 | /** |
||
69 | * Registers plugin asset bundle |
||
70 | * |
||
71 | * @param \yii\web\View $view |
||
72 | * |
||
73 | * @return $this |
||
74 | * @codeCoverageIgnore |
||
75 | */ |
||
76 | public function registerAssetBundle($view) |
||
81 | |||
82 | /** |
||
83 | * Returns the javascript ready code for the object to render |
||
84 | * @return \yii\web\JsExpression |
||
85 | * @throws \yii\base\InvalidConfigException |
||
86 | */ |
||
87 | 9 | public function encode() |
|
111 | |||
112 | } |
||
113 |