From b666367a7902c5d935f7aef1704711b8695690b2 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 26 Nov 2015 15:49:14 +0100 Subject: [PATCH] Added system tags data structure and PHP side managers Added SystemTagManager and SystemTagObjectMapper --- db_structure.xml | 124 ++++++ lib/private/server.php | 29 ++ lib/private/systemtag/systemtag.php | 90 ++++ lib/private/systemtag/systemtagmanager.php | 264 ++++++++++++ .../systemtag/systemtagobjectmapper.php | 213 ++++++++++ lib/public/iservercontainer.php | 18 + lib/public/systemtag/isystemtag.php | 2 +- ...mtagsmanager.php => isystemtagmanager.php} | 10 +- .../systemtag/isystemtagobjectmapper.php | 10 + tests/lib/systemtag/systemtagmanager.php | 396 ++++++++++++++++++ tests/lib/systemtag/systemtagobjectmapper.php | 327 +++++++++++++++ 11 files changed, 1478 insertions(+), 5 deletions(-) create mode 100644 lib/private/systemtag/systemtag.php create mode 100644 lib/private/systemtag/systemtagmanager.php create mode 100644 lib/private/systemtag/systemtagobjectmapper.php rename lib/public/systemtag/{isystemtagsmanager.php => isystemtagmanager.php} (88%) create mode 100644 tests/lib/systemtag/systemtagmanager.php create mode 100644 tests/lib/systemtag/systemtagobjectmapper.php diff --git a/db_structure.xml b/db_structure.xml index 8135746233e..637e95d6ef4 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -1063,6 +1063,130 @@ + + + *dbprefix*systemtag + + + + + id + integer + 0 + true + 1 + true + 4 + + + + + name + text + + true + 64 + + + + + visibility + integer + 1 + true + 1 + + + + + editable + integer + 1 + true + 1 + + + + tag_ident + true + + name + ascending + + + visibility + ascending + + + editable + ascending + + + + +
+ + + + + *dbprefix*systemtag_object_mapping + + + + + + objectid + integer + 0 + true + true + 4 + + + + + objecttype + text + + true + 64 + + + + + systemtagid + integer + 0 + true + true + 4 + + + + true + mapping + + objecttype + ascending + + + objectid + ascending + + + systemtagid + ascending + + + + + +
+