summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/mapping/usermapping.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-11-05 13:05:07 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-12-19 18:26:12 +0100
commitec0f80fee927ca572671ac7c733b960fb027e91f (patch)
treeb9b0bdbb7bb88557ea95b5872f1e0f9f0d10a99b /apps/user_ldap/lib/mapping/usermapping.php
parent87e3e2925044831e5fd962207b4a6e9cd29b3f4f (diff)
downloadnextcloud-server-ec0f80fee927ca572671ac7c733b960fb027e91f.tar.gz
nextcloud-server-ec0f80fee927ca572671ac7c733b960fb027e91f.zip
Split mapping from Access and Helper classes into it's own. Fully test them, too.
remove unused methods split mapping methods off from Access class fix DB query handling move 'clear mapping' methods from static helper to new mapping class add tests test directly with DB finishing tests and fix return value from setDNbyUUID add corresponding class for groups and make abstract test class neutral. helper tests is now obsolete as the tested functions were moved to the new mapper class. add missing info to PHPDoc add unmap method fix namespaces fix test inheritance PHPDoc and a small code restructure for scrutinizer, no effective changes PostgreSQL does not accept LIMIT in DELETE queries phpdoc fixes, no code changes
Diffstat (limited to 'apps/user_ldap/lib/mapping/usermapping.php')
-rw-r--r--apps/user_ldap/lib/mapping/usermapping.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/mapping/usermapping.php b/apps/user_ldap/lib/mapping/usermapping.php
new file mode 100644
index 00000000000..dd24f338b96
--- /dev/null
+++ b/apps/user_ldap/lib/mapping/usermapping.php
@@ -0,0 +1,25 @@
+<?php
+/**
+* Copyright (c) 2014 Arthur Schiwon <blizzz@owncloud.com>
+* This file is licensed under the Affero General Public License version 3 or
+* later.
+* See the COPYING-README file.
+*/
+
+namespace OCA\User_LDAP\Mapping;
+
+/**
+* Class UserMapping
+* @package OCA\User_LDAP\Mapping
+*/
+class UserMapping extends AbstractMapping {
+
+ /**
+ * returns the DB table name which holds the mappings
+ * @return string
+ */
+ protected function getTableName() {
+ return '*PREFIX*ldap_user_mapping';
+ }
+
+}