mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-28 11:04:08 +01:00
Code style.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Listener\Dca;
|
namespace Netzmacht\Contao\Leaflet\Listener\Dca;
|
||||||
|
|
||||||
|
use Contao\StringUtil;
|
||||||
use Doctrine\DBAL\Connection;
|
use Doctrine\DBAL\Connection;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Listener\AbstractListener;
|
use Netzmacht\Contao\Toolkit\Dca\Listener\AbstractListener;
|
||||||
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
use Netzmacht\Contao\Toolkit\Dca\Manager;
|
||||||
@@ -109,8 +110,8 @@ class ControlDcaListener extends AbstractListener
|
|||||||
{
|
{
|
||||||
$query = 'SELECT lid As layer, mode FROM tl_leaflet_control_layer WHERE cid=:cid ORDER BY sorting';
|
$query = 'SELECT lid As layer, mode FROM tl_leaflet_control_layer WHERE cid=:cid ORDER BY sorting';
|
||||||
$statement = $this->connection->prepare($query);
|
$statement = $this->connection->prepare($query);
|
||||||
$statement->bindValue('cid', $dataContainer->id);
|
|
||||||
|
|
||||||
|
$statement->bindValue('cid', $dataContainer->id);
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
|
|
||||||
return $statement->fetchAll();
|
return $statement->fetchAll();
|
||||||
@@ -126,9 +127,9 @@ class ControlDcaListener extends AbstractListener
|
|||||||
*/
|
*/
|
||||||
public function saveLayerRelations($layers, $dataContainer)
|
public function saveLayerRelations($layers, $dataContainer)
|
||||||
{
|
{
|
||||||
$new = deserialize($layers, true);
|
$new = StringUtil::deserialize($layers, true);
|
||||||
$values = array();
|
$values = [];
|
||||||
$query = 'SELECT * FROM tl_leaflet_control_layer WHERE cid=:cid order BY sorting';
|
$query = 'SELECT * FROM tl_leaflet_control_layer WHERE cid=:cid order BY sorting';
|
||||||
$statement = $this->connection->prepare($query);
|
$statement = $this->connection->prepare($query);
|
||||||
$statement->bindValue('cid', $dataContainer->id);
|
$statement->bindValue('cid', $dataContainer->id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user