2015-01-09 20:57:34 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @package dev
|
|
|
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
|
|
|
|
* @copyright 2015 netzmacht creative David Molineus
|
|
|
|
|
* @license LGPL 3.0
|
|
|
|
|
* @filesource
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Frontend;
|
|
|
|
|
|
2015-01-30 17:03:31 +01:00
|
|
|
use Netzmacht\Contao\Toolkit\ServiceContainerTrait;
|
2015-01-09 23:20:07 +01:00
|
|
|
use Netzmacht\Contao\Leaflet\MapService;
|
|
|
|
|
|
2015-01-12 19:03:29 +01:00
|
|
|
/**
|
|
|
|
|
* The frontend module for the Leaflet map.
|
|
|
|
|
*
|
|
|
|
|
* @package Netzmacht\Contao\Leaflet\Frontend
|
|
|
|
|
*/
|
2015-01-09 23:20:07 +01:00
|
|
|
class MapModule extends \Module
|
2015-01-09 20:57:34 +01:00
|
|
|
{
|
2015-01-12 19:03:29 +01:00
|
|
|
use ServiceContainerTrait;
|
|
|
|
|
use HybridTrait;
|
|
|
|
|
|
2015-01-09 23:20:07 +01:00
|
|
|
/**
|
|
|
|
|
* Template name.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $strTemplate = 'mod_leaflet_map';
|
|
|
|
|
|
|
|
|
|
/**
|
2015-01-12 19:03:29 +01:00
|
|
|
* {@inheritdoc}
|
2015-01-09 23:20:07 +01:00
|
|
|
*/
|
|
|
|
|
public function __construct($objElement, $strColumn = 'main')
|
|
|
|
|
{
|
2015-01-12 19:03:29 +01:00
|
|
|
$this->construct($objElement, $strColumn);
|
2015-01-09 23:20:07 +01:00
|
|
|
}
|
2015-01-14 17:50:23 +01:00
|
|
|
|
2015-01-15 15:30:16 +01:00
|
|
|
/**
|
|
|
|
|
* Get the identifier.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
2015-01-14 17:50:23 +01:00
|
|
|
protected function getIdentifier()
|
|
|
|
|
{
|
|
|
|
|
return 'mod_' . $this->id;
|
|
|
|
|
}
|
2015-01-09 20:57:34 +01:00
|
|
|
}
|