Ongoing development.

This commit is contained in:
David Molineus committed 2015-01-06 14:55:53 +01:00
1 parent dfb558b655
commit e9d1ec7081
32 files changed
+1050 -95

No files matched your search

@@ -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);
}
}