mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-17 12:55:16 +01:00
Ongoing development.
This commit is contained in:
@@ -16,4 +16,21 @@ class LayerModel extends \Model
|
||||
{
|
||||
protected static $strTable = 'tl_leaflet_layer';
|
||||
|
||||
public static function findMultipleByTypes(array $types, $options = array())
|
||||
{
|
||||
if (empty($types)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$options['column'] = array(
|
||||
sprintf(
|
||||
'type IN (%s)',
|
||||
substr(str_repeat('?,', count($types)), 0, -1)
|
||||
)
|
||||
);
|
||||
|
||||
$options['value'] = $types;
|
||||
|
||||
return static::find($options);
|
||||
}
|
||||
}
|
||||
|
||||
19
src/Netzmacht/Contao/Leaflet/Model/MarkerModel.php
Normal file
19
src/Netzmacht/Contao/Leaflet/Model/MarkerModel.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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\Model;
|
||||
|
||||
|
||||
class MarkerModel extends \Model
|
||||
{
|
||||
protected static $strTable = 'tl_leaflet_marker';
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user