From 6fa6fd55de8902ba89d35939f19d492001409ae6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20B=C3=B6hmer?= <daniel.boehmer@jtl-software.com>
Date: Mon, 10 Aug 2015 11:42:09 +0200
Subject: [PATCH] added changes from core interface

---
 .gitignore                      | 9 +++++++--
 logs/.gitkeep                   | 0
 src/Mapper/PrimaryKeyMapper.php | 5 ++++-
 3 files changed, 11 insertions(+), 3 deletions(-)
 create mode 100644 logs/.gitkeep

diff --git a/.gitignore b/.gitignore
index d766a37..0728642 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,14 +7,19 @@ composer.phar
 dist/**
 docs/**
 db/connector.s3db
+plugins/**
+!plugins/.gitkeep
+.idea/**
+logs/**
+!logs/.gitkeep
+config/**
+!config/.gitkeep
 install/db/*
-logs/*
 nbproject/**
 netbeans/**
 .htaccess
 .project
 .settings/**
-.idea/**
 tmp/**
 vendor/**
 *.sublime-project
diff --git a/logs/.gitkeep b/logs/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/src/Mapper/PrimaryKeyMapper.php b/src/Mapper/PrimaryKeyMapper.php
index 27eb77e..a5c8d4f 100644
--- a/src/Mapper/PrimaryKeyMapper.php
+++ b/src/Mapper/PrimaryKeyMapper.php
@@ -41,10 +41,13 @@ class PrimaryKeyMapper implements IPrimaryKeyMapper
      *
      * @param integer $hostId
      * @param integer $type
+     * @param string $relationType
      * @return string|null
      */
-    public function getEndpointId($hostId, $type)
+    public function getEndpointId($hostId, $type, $relationType = null)
     {
+        // @todo: type 16 (Image) switch via $relationType
+
         return $this->db->fetchSingle(sprintf('SELECT endpoint FROM mapping WHERE host = %s AND type = %s', $hostId, $type));
     }
 
-- 
GitLab