From ec0f80fee927ca572671ac7c733b960fb027e91f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 5 Nov 2014 13:05:07 +0100 Subject: 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 --- apps/user_ldap/lib/mapping/usermapping.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 apps/user_ldap/lib/mapping/usermapping.php (limited to 'apps/user_ldap/lib/mapping/usermapping.php') 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 @@ + +* 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'; + } + +} -- cgit v1.2.3