Page MenuHomeDevCentral

No OneTemporary

diff --git a/apps/documents/DocumentsApplication.php b/workspaces/src/apps/documents/DocumentsApplication.php
similarity index 100%
rename from apps/documents/DocumentsApplication.php
rename to workspaces/src/apps/documents/DocumentsApplication.php
diff --git a/apps/documents/DocumentsApplicationConfiguration.php b/workspaces/src/apps/documents/DocumentsApplicationConfiguration.php
similarity index 100%
rename from apps/documents/DocumentsApplicationConfiguration.php
rename to workspaces/src/apps/documents/DocumentsApplicationConfiguration.php
diff --git a/apps/helloworld/HelloWorldApplication.php b/workspaces/src/apps/helloworld/HelloWorldApplication.php
similarity index 100%
rename from apps/helloworld/HelloWorldApplication.php
rename to workspaces/src/apps/helloworld/HelloWorldApplication.php
diff --git a/apps/mediawikimirror/MediaWikiMirrorApplication.php b/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php
similarity index 100%
rename from apps/mediawikimirror/MediaWikiMirrorApplication.php
rename to workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplication.php
diff --git a/apps/mediawikimirror/MediaWikiMirrorApplicationConfiguration.php b/workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplicationConfiguration.php
similarity index 100%
rename from apps/mediawikimirror/MediaWikiMirrorApplicationConfiguration.php
rename to workspaces/src/apps/mediawikimirror/MediaWikiMirrorApplicationConfiguration.php
diff --git a/apps/staticcontent/StaticContentApplication.php b/workspaces/src/apps/staticcontent/StaticContentApplication.php
similarity index 100%
rename from apps/staticcontent/StaticContentApplication.php
rename to workspaces/src/apps/staticcontent/StaticContentApplication.php
diff --git a/apps/staticcontent/StaticContentApplicationConfiguration.php b/workspaces/src/apps/staticcontent/StaticContentApplicationConfiguration.php
similarity index 100%
rename from apps/staticcontent/StaticContentApplicationConfiguration.php
rename to workspaces/src/apps/staticcontent/StaticContentApplicationConfiguration.php
diff --git a/content/help/credits.html b/workspaces/src/content/help/credits.html
similarity index 100%
rename from content/help/credits.html
rename to workspaces/src/content/help/credits.html
diff --git a/content/help/index.html b/workspaces/src/content/help/index.html
similarity index 100%
rename from content/help/index.html
rename to workspaces/src/content/help/index.html
diff --git a/content/workspaces/root/workspace.conf b/workspaces/src/content/workspaces/root/workspace.conf
similarity index 100%
rename from content/workspaces/root/workspace.conf
rename to workspaces/src/content/workspaces/root/workspace.conf
diff --git a/controllers/anonymous.php b/workspaces/src/controllers/anonymous.php
similarity index 100%
rename from controllers/anonymous.php
rename to workspaces/src/controllers/anonymous.php
diff --git a/controllers/application.php b/workspaces/src/controllers/application.php
similarity index 100%
rename from controllers/application.php
rename to workspaces/src/controllers/application.php
diff --git a/controllers/errorpage.php b/workspaces/src/controllers/errorpage.php
similarity index 100%
rename from controllers/errorpage.php
rename to workspaces/src/controllers/errorpage.php
diff --git a/controllers/footer.php b/workspaces/src/controllers/footer.php
similarity index 100%
rename from controllers/footer.php
rename to workspaces/src/controllers/footer.php
diff --git a/controllers/header.php b/workspaces/src/controllers/header.php
similarity index 100%
rename from controllers/header.php
rename to workspaces/src/controllers/header.php
diff --git a/controllers/help.php b/workspaces/src/controllers/help.php
similarity index 100%
rename from controllers/help.php
rename to workspaces/src/controllers/help.php
diff --git a/controllers/home.php b/workspaces/src/controllers/home.php
similarity index 100%
rename from controllers/home.php
rename to workspaces/src/controllers/home.php
diff --git a/controllers/reports.php b/workspaces/src/controllers/reports.php
similarity index 100%
rename from controllers/reports.php
rename to workspaces/src/controllers/reports.php
diff --git a/controllers/void.php b/workspaces/src/controllers/void.php
similarity index 100%
rename from controllers/void.php
rename to workspaces/src/controllers/void.php
diff --git a/css/bluegray.css b/workspaces/src/css/bluegray.css
similarity index 100%
rename from css/bluegray.css
rename to workspaces/src/css/bluegray.css
diff --git a/css/bootstrap.css b/workspaces/src/css/bootstrap.css
similarity index 100%
rename from css/bootstrap.css
rename to workspaces/src/css/bootstrap.css
diff --git a/css/errorpage.css b/workspaces/src/css/errorpage.css
similarity index 100%
rename from css/errorpage.css
rename to workspaces/src/css/errorpage.css
diff --git a/css/font-awesome.min.css b/workspaces/src/css/font-awesome.min.css
similarity index 100%
rename from css/font-awesome.min.css
rename to workspaces/src/css/font-awesome.min.css
diff --git a/favicon.ico b/workspaces/src/favicon.ico
similarity index 100%
rename from favicon.ico
rename to workspaces/src/favicon.ico
diff --git a/favicon.png b/workspaces/src/favicon.png
similarity index 100%
rename from favicon.png
rename to workspaces/src/favicon.png
diff --git a/fonts/FontAwesome.otf b/workspaces/src/fonts/FontAwesome.otf
similarity index 100%
rename from fonts/FontAwesome.otf
rename to workspaces/src/fonts/FontAwesome.otf
diff --git a/fonts/fontawesome-webfont.eot b/workspaces/src/fonts/fontawesome-webfont.eot
similarity index 100%
rename from fonts/fontawesome-webfont.eot
rename to workspaces/src/fonts/fontawesome-webfont.eot
diff --git a/fonts/fontawesome-webfont.svg b/workspaces/src/fonts/fontawesome-webfont.svg
similarity index 100%
rename from fonts/fontawesome-webfont.svg
rename to workspaces/src/fonts/fontawesome-webfont.svg
diff --git a/fonts/fontawesome-webfont.ttf b/workspaces/src/fonts/fontawesome-webfont.ttf
similarity index 100%
rename from fonts/fontawesome-webfont.ttf
rename to workspaces/src/fonts/fontawesome-webfont.ttf
diff --git a/fonts/fontawesome-webfont.woff b/workspaces/src/fonts/fontawesome-webfont.woff
similarity index 100%
rename from fonts/fontawesome-webfont.woff
rename to workspaces/src/fonts/fontawesome-webfont.woff
diff --git a/fonts/glyphicons-halflings-regular.eot b/workspaces/src/fonts/glyphicons-halflings-regular.eot
similarity index 100%
rename from fonts/glyphicons-halflings-regular.eot
rename to workspaces/src/fonts/glyphicons-halflings-regular.eot
diff --git a/fonts/glyphicons-halflings-regular.svg b/workspaces/src/fonts/glyphicons-halflings-regular.svg
similarity index 100%
rename from fonts/glyphicons-halflings-regular.svg
rename to workspaces/src/fonts/glyphicons-halflings-regular.svg
diff --git a/fonts/glyphicons-halflings-regular.ttf b/workspaces/src/fonts/glyphicons-halflings-regular.ttf
similarity index 100%
rename from fonts/glyphicons-halflings-regular.ttf
rename to workspaces/src/fonts/glyphicons-halflings-regular.ttf
diff --git a/fonts/glyphicons-halflings-regular.woff b/workspaces/src/fonts/glyphicons-halflings-regular.woff
similarity index 100%
rename from fonts/glyphicons-halflings-regular.woff
rename to workspaces/src/fonts/glyphicons-halflings-regular.woff
diff --git a/images/bg/GrayGlacier-1280-low.jpg b/workspaces/src/images/bg/GrayGlacier-1280-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1280-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-1280-low.jpg
diff --git a/images/bg/GrayGlacier-1280.jpg b/workspaces/src/images/bg/GrayGlacier-1280.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1280.jpg
rename to workspaces/src/images/bg/GrayGlacier-1280.jpg
diff --git a/images/bg/GrayGlacier-1440-low.jpg b/workspaces/src/images/bg/GrayGlacier-1440-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1440-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-1440-low.jpg
diff --git a/images/bg/GrayGlacier-1440.jpg b/workspaces/src/images/bg/GrayGlacier-1440.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1440.jpg
rename to workspaces/src/images/bg/GrayGlacier-1440.jpg
diff --git a/images/bg/GrayGlacier-1920-low.jpg b/workspaces/src/images/bg/GrayGlacier-1920-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1920-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-1920-low.jpg
diff --git a/images/bg/GrayGlacier-1920.jpg b/workspaces/src/images/bg/GrayGlacier-1920.jpg
similarity index 100%
rename from images/bg/GrayGlacier-1920.jpg
rename to workspaces/src/images/bg/GrayGlacier-1920.jpg
diff --git a/images/bg/GrayGlacier-400-low.jpg b/workspaces/src/images/bg/GrayGlacier-400-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-400-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-400-low.jpg
diff --git a/images/bg/GrayGlacier-400.jpg b/workspaces/src/images/bg/GrayGlacier-400.jpg
similarity index 100%
rename from images/bg/GrayGlacier-400.jpg
rename to workspaces/src/images/bg/GrayGlacier-400.jpg
diff --git a/images/bg/GrayGlacier-720-low.jpg b/workspaces/src/images/bg/GrayGlacier-720-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-720-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-720-low.jpg
diff --git a/images/bg/GrayGlacier-720.jpg b/workspaces/src/images/bg/GrayGlacier-720.jpg
similarity index 100%
rename from images/bg/GrayGlacier-720.jpg
rename to workspaces/src/images/bg/GrayGlacier-720.jpg
diff --git a/images/bg/GrayGlacier-large-low.jpg b/workspaces/src/images/bg/GrayGlacier-large-low.jpg
similarity index 100%
rename from images/bg/GrayGlacier-large-low.jpg
rename to workspaces/src/images/bg/GrayGlacier-large-low.jpg
diff --git a/images/bg/GrayGlacier-large.jpg b/workspaces/src/images/bg/GrayGlacier-large.jpg
similarity index 100%
rename from images/bg/GrayGlacier-large.jpg
rename to workspaces/src/images/bg/GrayGlacier-large.jpg
diff --git a/images/bg/MountMcKinleyClimbing_1280.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_1280.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_1280.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_1280.jpg
diff --git a/images/bg/MountMcKinleyClimbing_1440.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_1440.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_1440.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_1440.jpg
diff --git a/images/bg/MountMcKinleyClimbing_1920.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_1920.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_1920.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_1920.jpg
diff --git a/images/bg/MountMcKinleyClimbing_400.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_400.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_400.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_400.jpg
diff --git a/images/bg/MountMcKinleyClimbing_720.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_720.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_720.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_720.jpg
diff --git a/images/bg/MountMcKinleyClimbing_large.jpg b/workspaces/src/images/bg/MountMcKinleyClimbing_large.jpg
similarity index 100%
rename from images/bg/MountMcKinleyClimbing_large.jpg
rename to workspaces/src/images/bg/MountMcKinleyClimbing_large.jpg
diff --git a/images/bg/ObsidianFlow-1280.jpg b/workspaces/src/images/bg/ObsidianFlow-1280.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-1280.jpg
rename to workspaces/src/images/bg/ObsidianFlow-1280.jpg
diff --git a/images/bg/ObsidianFlow-1440.jpg b/workspaces/src/images/bg/ObsidianFlow-1440.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-1440.jpg
rename to workspaces/src/images/bg/ObsidianFlow-1440.jpg
diff --git a/images/bg/ObsidianFlow-1920.jpg b/workspaces/src/images/bg/ObsidianFlow-1920.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-1920.jpg
rename to workspaces/src/images/bg/ObsidianFlow-1920.jpg
diff --git a/images/bg/ObsidianFlow-400.jpg b/workspaces/src/images/bg/ObsidianFlow-400.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-400.jpg
rename to workspaces/src/images/bg/ObsidianFlow-400.jpg
diff --git a/images/bg/ObsidianFlow-768.jpg b/workspaces/src/images/bg/ObsidianFlow-768.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-768.jpg
rename to workspaces/src/images/bg/ObsidianFlow-768.jpg
diff --git a/images/bg/ObsidianFlow-large.jpg b/workspaces/src/images/bg/ObsidianFlow-large.jpg
similarity index 100%
rename from images/bg/ObsidianFlow-large.jpg
rename to workspaces/src/images/bg/ObsidianFlow-large.jpg
diff --git a/includes/Events.php b/workspaces/src/includes/Events.php
similarity index 100%
rename from includes/Events.php
rename to workspaces/src/includes/Events.php
diff --git a/includes/GlobalFunctions.php b/workspaces/src/includes/GlobalFunctions.php
similarity index 100%
rename from includes/GlobalFunctions.php
rename to workspaces/src/includes/GlobalFunctions.php
diff --git a/includes/LoadableWithContext.php b/workspaces/src/includes/LoadableWithContext.php
similarity index 100%
rename from includes/LoadableWithContext.php
rename to workspaces/src/includes/LoadableWithContext.php
diff --git a/includes/ObjectDeserializable.php b/workspaces/src/includes/ObjectDeserializable.php
similarity index 100%
rename from includes/ObjectDeserializable.php
rename to workspaces/src/includes/ObjectDeserializable.php
diff --git a/includes/apps/Application.php b/workspaces/src/includes/apps/Application.php
similarity index 100%
rename from includes/apps/Application.php
rename to workspaces/src/includes/apps/Application.php
diff --git a/includes/apps/ApplicationConfiguration.php b/workspaces/src/includes/apps/ApplicationConfiguration.php
similarity index 100%
rename from includes/apps/ApplicationConfiguration.php
rename to workspaces/src/includes/apps/ApplicationConfiguration.php
diff --git a/includes/apps/ApplicationContext.php b/workspaces/src/includes/apps/ApplicationContext.php
similarity index 100%
rename from includes/apps/ApplicationContext.php
rename to workspaces/src/includes/apps/ApplicationContext.php
diff --git a/includes/auth/AddToGroupUserAction.php b/workspaces/src/includes/auth/AddToGroupUserAction.php
similarity index 100%
rename from includes/auth/AddToGroupUserAction.php
rename to workspaces/src/includes/auth/AddToGroupUserAction.php
diff --git a/includes/auth/AuthenticationMethod.php b/workspaces/src/includes/auth/AuthenticationMethod.php
similarity index 100%
rename from includes/auth/AuthenticationMethod.php
rename to workspaces/src/includes/auth/AuthenticationMethod.php
diff --git a/includes/auth/AzharProvider.php b/workspaces/src/includes/auth/AzharProvider.php
similarity index 100%
rename from includes/auth/AzharProvider.php
rename to workspaces/src/includes/auth/AzharProvider.php
diff --git a/includes/auth/GivePermissionUserAction.php b/workspaces/src/includes/auth/GivePermissionUserAction.php
similarity index 100%
rename from includes/auth/GivePermissionUserAction.php
rename to workspaces/src/includes/auth/GivePermissionUserAction.php
diff --git a/includes/auth/UserAction.php b/workspaces/src/includes/auth/UserAction.php
similarity index 100%
rename from includes/auth/UserAction.php
rename to workspaces/src/includes/auth/UserAction.php
diff --git a/includes/autoload.php b/workspaces/src/includes/autoload.php
similarity index 100%
rename from includes/autoload.php
rename to workspaces/src/includes/autoload.php
diff --git a/includes/cache/cache.php b/workspaces/src/includes/cache/cache.php
similarity index 100%
rename from includes/cache/cache.php
rename to workspaces/src/includes/cache/cache.php
diff --git a/includes/cache/memcached.php b/workspaces/src/includes/cache/memcached.php
similarity index 100%
rename from includes/cache/memcached.php
rename to workspaces/src/includes/cache/memcached.php
diff --git a/includes/cache/void.php b/workspaces/src/includes/cache/void.php
similarity index 100%
rename from includes/cache/void.php
rename to workspaces/src/includes/cache/void.php
diff --git a/includes/collection/Collection.php b/workspaces/src/includes/collection/Collection.php
similarity index 100%
rename from includes/collection/Collection.php
rename to workspaces/src/includes/collection/Collection.php
diff --git a/includes/collection/CollectionDocument.php b/workspaces/src/includes/collection/CollectionDocument.php
similarity index 100%
rename from includes/collection/CollectionDocument.php
rename to workspaces/src/includes/collection/CollectionDocument.php
diff --git a/includes/collection/FilesCollection.php b/workspaces/src/includes/collection/FilesCollection.php
similarity index 100%
rename from includes/collection/FilesCollection.php
rename to workspaces/src/includes/collection/FilesCollection.php
diff --git a/includes/collection/MongoDBCollection.php b/workspaces/src/includes/collection/MongoDBCollection.php
similarity index 100%
rename from includes/collection/MongoDBCollection.php
rename to workspaces/src/includes/collection/MongoDBCollection.php
diff --git a/includes/collection/MongoDBCollectionIterator.php b/workspaces/src/includes/collection/MongoDBCollectionIterator.php
similarity index 100%
rename from includes/collection/MongoDBCollectionIterator.php
rename to workspaces/src/includes/collection/MongoDBCollectionIterator.php
diff --git a/includes/collection/MySQLCollection.php b/workspaces/src/includes/collection/MySQLCollection.php
similarity index 100%
rename from includes/collection/MySQLCollection.php
rename to workspaces/src/includes/collection/MySQLCollection.php
diff --git a/includes/collection/SQLCollection.php b/workspaces/src/includes/collection/SQLCollection.php
similarity index 100%
rename from includes/collection/SQLCollection.php
rename to workspaces/src/includes/collection/SQLCollection.php
diff --git a/includes/collection/SQLiteCollection.php b/workspaces/src/includes/collection/SQLiteCollection.php
similarity index 100%
rename from includes/collection/SQLiteCollection.php
rename to workspaces/src/includes/collection/SQLiteCollection.php
diff --git a/includes/config.php b/workspaces/src/includes/config.php
similarity index 100%
rename from includes/config.php
rename to workspaces/src/includes/config.php
diff --git a/includes/controller/Context.php b/workspaces/src/includes/controller/Context.php
similarity index 100%
rename from includes/controller/Context.php
rename to workspaces/src/includes/controller/Context.php
diff --git a/includes/controller/Controller.php b/workspaces/src/includes/controller/Controller.php
similarity index 100%
rename from includes/controller/Controller.php
rename to workspaces/src/includes/controller/Controller.php
diff --git a/includes/controller/RunnableWithContext.php b/workspaces/src/includes/controller/RunnableWithContext.php
similarity index 100%
rename from includes/controller/RunnableWithContext.php
rename to workspaces/src/includes/controller/RunnableWithContext.php
diff --git a/includes/core.php b/workspaces/src/includes/core.php
similarity index 100%
rename from includes/core.php
rename to workspaces/src/includes/core.php
diff --git a/includes/database/Database.php b/workspaces/src/includes/database/Database.php
similarity index 100%
rename from includes/database/Database.php
rename to workspaces/src/includes/database/Database.php
diff --git a/includes/database/DatabaseException.php b/workspaces/src/includes/database/DatabaseException.php
similarity index 100%
rename from includes/database/DatabaseException.php
rename to workspaces/src/includes/database/DatabaseException.php
diff --git a/includes/database/DatabaseResult.php b/workspaces/src/includes/database/DatabaseResult.php
similarity index 100%
rename from includes/database/DatabaseResult.php
rename to workspaces/src/includes/database/DatabaseResult.php
diff --git a/includes/database/EmptyDatabaseResult.php b/workspaces/src/includes/database/EmptyDatabaseResult.php
similarity index 100%
rename from includes/database/EmptyDatabaseResult.php
rename to workspaces/src/includes/database/EmptyDatabaseResult.php
diff --git a/includes/database/MySQLDatabase.php b/workspaces/src/includes/database/MySQLDatabase.php
similarity index 100%
rename from includes/database/MySQLDatabase.php
rename to workspaces/src/includes/database/MySQLDatabase.php
diff --git a/includes/database/MySQLDatabaseResult.php b/workspaces/src/includes/database/MySQLDatabaseResult.php
similarity index 100%
rename from includes/database/MySQLDatabaseResult.php
rename to workspaces/src/includes/database/MySQLDatabaseResult.php
diff --git a/includes/database/MySQLiDatabase.php b/workspaces/src/includes/database/MySQLiDatabase.php
similarity index 100%
rename from includes/database/MySQLiDatabase.php
rename to workspaces/src/includes/database/MySQLiDatabase.php
diff --git a/includes/database/MySQLiDatabaseResult.php b/workspaces/src/includes/database/MySQLiDatabaseResult.php
similarity index 100%
rename from includes/database/MySQLiDatabaseResult.php
rename to workspaces/src/includes/database/MySQLiDatabaseResult.php
diff --git a/includes/error.php b/workspaces/src/includes/error.php
similarity index 100%
rename from includes/error.php
rename to workspaces/src/includes/error.php
diff --git a/includes/i18n/Language.php b/workspaces/src/includes/i18n/Language.php
similarity index 100%
rename from includes/i18n/Language.php
rename to workspaces/src/includes/i18n/Language.php
diff --git a/includes/i18n/Message.php b/workspaces/src/includes/i18n/Message.php
similarity index 100%
rename from includes/i18n/Message.php
rename to workspaces/src/includes/i18n/Message.php
diff --git a/includes/i18n/TextFileMessage.php b/workspaces/src/includes/i18n/TextFileMessage.php
similarity index 100%
rename from includes/i18n/TextFileMessage.php
rename to workspaces/src/includes/i18n/TextFileMessage.php
diff --git a/includes/login.php b/workspaces/src/includes/login.php
similarity index 100%
rename from includes/login.php
rename to workspaces/src/includes/login.php
diff --git a/includes/objects/Disclaimer.php b/workspaces/src/includes/objects/Disclaimer.php
similarity index 100%
rename from includes/objects/Disclaimer.php
rename to workspaces/src/includes/objects/Disclaimer.php
diff --git a/includes/objects/Permission.php b/workspaces/src/includes/objects/Permission.php
similarity index 100%
rename from includes/objects/Permission.php
rename to workspaces/src/includes/objects/Permission.php
diff --git a/includes/objects/user.php b/workspaces/src/includes/objects/user.php
similarity index 100%
rename from includes/objects/user.php
rename to workspaces/src/includes/objects/user.php
diff --git a/includes/objects/usergroup.php b/workspaces/src/includes/objects/usergroup.php
similarity index 100%
rename from includes/objects/usergroup.php
rename to workspaces/src/includes/objects/usergroup.php
diff --git a/includes/session.php b/workspaces/src/includes/session.php
similarity index 100%
rename from includes/session.php
rename to workspaces/src/includes/session.php
diff --git a/includes/smarty/Smarty.class.php b/workspaces/src/includes/smarty/Smarty.class.php
similarity index 100%
rename from includes/smarty/Smarty.class.php
rename to workspaces/src/includes/smarty/Smarty.class.php
diff --git a/includes/smarty/SmartyBC.class.php b/workspaces/src/includes/smarty/SmartyBC.class.php
similarity index 100%
rename from includes/smarty/SmartyBC.class.php
rename to workspaces/src/includes/smarty/SmartyBC.class.php
diff --git a/includes/smarty/debug.tpl b/workspaces/src/includes/smarty/debug.tpl
similarity index 100%
rename from includes/smarty/debug.tpl
rename to workspaces/src/includes/smarty/debug.tpl
diff --git a/includes/smarty/plugins/block.textformat.php b/workspaces/src/includes/smarty/plugins/block.textformat.php
similarity index 100%
rename from includes/smarty/plugins/block.textformat.php
rename to workspaces/src/includes/smarty/plugins/block.textformat.php
diff --git a/includes/smarty/plugins/function.counter.php b/workspaces/src/includes/smarty/plugins/function.counter.php
similarity index 100%
rename from includes/smarty/plugins/function.counter.php
rename to workspaces/src/includes/smarty/plugins/function.counter.php
diff --git a/includes/smarty/plugins/function.cycle.php b/workspaces/src/includes/smarty/plugins/function.cycle.php
similarity index 100%
rename from includes/smarty/plugins/function.cycle.php
rename to workspaces/src/includes/smarty/plugins/function.cycle.php
diff --git a/includes/smarty/plugins/function.fetch.php b/workspaces/src/includes/smarty/plugins/function.fetch.php
similarity index 100%
rename from includes/smarty/plugins/function.fetch.php
rename to workspaces/src/includes/smarty/plugins/function.fetch.php
diff --git a/includes/smarty/plugins/function.html_checkboxes.php b/workspaces/src/includes/smarty/plugins/function.html_checkboxes.php
similarity index 100%
rename from includes/smarty/plugins/function.html_checkboxes.php
rename to workspaces/src/includes/smarty/plugins/function.html_checkboxes.php
diff --git a/includes/smarty/plugins/function.html_image.php b/workspaces/src/includes/smarty/plugins/function.html_image.php
similarity index 100%
rename from includes/smarty/plugins/function.html_image.php
rename to workspaces/src/includes/smarty/plugins/function.html_image.php
diff --git a/includes/smarty/plugins/function.html_options.php b/workspaces/src/includes/smarty/plugins/function.html_options.php
similarity index 100%
rename from includes/smarty/plugins/function.html_options.php
rename to workspaces/src/includes/smarty/plugins/function.html_options.php
diff --git a/includes/smarty/plugins/function.html_radios.php b/workspaces/src/includes/smarty/plugins/function.html_radios.php
similarity index 100%
rename from includes/smarty/plugins/function.html_radios.php
rename to workspaces/src/includes/smarty/plugins/function.html_radios.php
diff --git a/includes/smarty/plugins/function.html_select_date.php b/workspaces/src/includes/smarty/plugins/function.html_select_date.php
similarity index 100%
rename from includes/smarty/plugins/function.html_select_date.php
rename to workspaces/src/includes/smarty/plugins/function.html_select_date.php
diff --git a/includes/smarty/plugins/function.html_select_time.php b/workspaces/src/includes/smarty/plugins/function.html_select_time.php
similarity index 100%
rename from includes/smarty/plugins/function.html_select_time.php
rename to workspaces/src/includes/smarty/plugins/function.html_select_time.php
diff --git a/includes/smarty/plugins/function.html_table.php b/workspaces/src/includes/smarty/plugins/function.html_table.php
similarity index 100%
rename from includes/smarty/plugins/function.html_table.php
rename to workspaces/src/includes/smarty/plugins/function.html_table.php
diff --git a/includes/smarty/plugins/function.mailto.php b/workspaces/src/includes/smarty/plugins/function.mailto.php
similarity index 100%
rename from includes/smarty/plugins/function.mailto.php
rename to workspaces/src/includes/smarty/plugins/function.mailto.php
diff --git a/includes/smarty/plugins/function.math.php b/workspaces/src/includes/smarty/plugins/function.math.php
similarity index 100%
rename from includes/smarty/plugins/function.math.php
rename to workspaces/src/includes/smarty/plugins/function.math.php
diff --git a/includes/smarty/plugins/modifier.capitalize.php b/workspaces/src/includes/smarty/plugins/modifier.capitalize.php
similarity index 100%
rename from includes/smarty/plugins/modifier.capitalize.php
rename to workspaces/src/includes/smarty/plugins/modifier.capitalize.php
diff --git a/includes/smarty/plugins/modifier.date_format.php b/workspaces/src/includes/smarty/plugins/modifier.date_format.php
similarity index 100%
rename from includes/smarty/plugins/modifier.date_format.php
rename to workspaces/src/includes/smarty/plugins/modifier.date_format.php
diff --git a/includes/smarty/plugins/modifier.debug_print_var.php b/workspaces/src/includes/smarty/plugins/modifier.debug_print_var.php
similarity index 100%
rename from includes/smarty/plugins/modifier.debug_print_var.php
rename to workspaces/src/includes/smarty/plugins/modifier.debug_print_var.php
diff --git a/includes/smarty/plugins/modifier.escape.php b/workspaces/src/includes/smarty/plugins/modifier.escape.php
similarity index 100%
rename from includes/smarty/plugins/modifier.escape.php
rename to workspaces/src/includes/smarty/plugins/modifier.escape.php
diff --git a/includes/smarty/plugins/modifier.regex_replace.php b/workspaces/src/includes/smarty/plugins/modifier.regex_replace.php
similarity index 100%
rename from includes/smarty/plugins/modifier.regex_replace.php
rename to workspaces/src/includes/smarty/plugins/modifier.regex_replace.php
diff --git a/includes/smarty/plugins/modifier.replace.php b/workspaces/src/includes/smarty/plugins/modifier.replace.php
similarity index 100%
rename from includes/smarty/plugins/modifier.replace.php
rename to workspaces/src/includes/smarty/plugins/modifier.replace.php
diff --git a/includes/smarty/plugins/modifier.spacify.php b/workspaces/src/includes/smarty/plugins/modifier.spacify.php
similarity index 100%
rename from includes/smarty/plugins/modifier.spacify.php
rename to workspaces/src/includes/smarty/plugins/modifier.spacify.php
diff --git a/includes/smarty/plugins/modifier.truncate.php b/workspaces/src/includes/smarty/plugins/modifier.truncate.php
similarity index 100%
rename from includes/smarty/plugins/modifier.truncate.php
rename to workspaces/src/includes/smarty/plugins/modifier.truncate.php
diff --git a/includes/smarty/plugins/modifiercompiler.cat.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.cat.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.cat.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.cat.php
diff --git a/includes/smarty/plugins/modifiercompiler.count_characters.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.count_characters.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.count_characters.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.count_characters.php
diff --git a/includes/smarty/plugins/modifiercompiler.count_paragraphs.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.count_paragraphs.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.count_paragraphs.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.count_paragraphs.php
diff --git a/includes/smarty/plugins/modifiercompiler.count_sentences.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.count_sentences.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.count_sentences.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.count_sentences.php
diff --git a/includes/smarty/plugins/modifiercompiler.count_words.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.count_words.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.count_words.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.count_words.php
diff --git a/includes/smarty/plugins/modifiercompiler.default.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.default.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.default.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.default.php
diff --git a/includes/smarty/plugins/modifiercompiler.escape.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.escape.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.escape.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.escape.php
diff --git a/includes/smarty/plugins/modifiercompiler.from_charset.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.from_charset.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.from_charset.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.from_charset.php
diff --git a/includes/smarty/plugins/modifiercompiler.indent.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.indent.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.indent.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.indent.php
diff --git a/includes/smarty/plugins/modifiercompiler.lower.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.lower.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.lower.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.lower.php
diff --git a/includes/smarty/plugins/modifiercompiler.noprint.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.noprint.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.noprint.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.noprint.php
diff --git a/includes/smarty/plugins/modifiercompiler.string_format.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.string_format.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.string_format.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.string_format.php
diff --git a/includes/smarty/plugins/modifiercompiler.strip.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.strip.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.strip.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.strip.php
diff --git a/includes/smarty/plugins/modifiercompiler.strip_tags.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.strip_tags.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.strip_tags.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.strip_tags.php
diff --git a/includes/smarty/plugins/modifiercompiler.to_charset.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.to_charset.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.to_charset.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.to_charset.php
diff --git a/includes/smarty/plugins/modifiercompiler.unescape.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.unescape.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.unescape.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.unescape.php
diff --git a/includes/smarty/plugins/modifiercompiler.upper.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.upper.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.upper.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.upper.php
diff --git a/includes/smarty/plugins/modifiercompiler.wordwrap.php b/workspaces/src/includes/smarty/plugins/modifiercompiler.wordwrap.php
similarity index 100%
rename from includes/smarty/plugins/modifiercompiler.wordwrap.php
rename to workspaces/src/includes/smarty/plugins/modifiercompiler.wordwrap.php
diff --git a/includes/smarty/plugins/outputfilter.trimwhitespace.php b/workspaces/src/includes/smarty/plugins/outputfilter.trimwhitespace.php
similarity index 100%
rename from includes/smarty/plugins/outputfilter.trimwhitespace.php
rename to workspaces/src/includes/smarty/plugins/outputfilter.trimwhitespace.php
diff --git a/includes/smarty/plugins/shared.escape_special_chars.php b/workspaces/src/includes/smarty/plugins/shared.escape_special_chars.php
similarity index 100%
rename from includes/smarty/plugins/shared.escape_special_chars.php
rename to workspaces/src/includes/smarty/plugins/shared.escape_special_chars.php
diff --git a/includes/smarty/plugins/shared.literal_compiler_param.php b/workspaces/src/includes/smarty/plugins/shared.literal_compiler_param.php
similarity index 100%
rename from includes/smarty/plugins/shared.literal_compiler_param.php
rename to workspaces/src/includes/smarty/plugins/shared.literal_compiler_param.php
diff --git a/includes/smarty/plugins/shared.make_timestamp.php b/workspaces/src/includes/smarty/plugins/shared.make_timestamp.php
similarity index 100%
rename from includes/smarty/plugins/shared.make_timestamp.php
rename to workspaces/src/includes/smarty/plugins/shared.make_timestamp.php
diff --git a/includes/smarty/plugins/shared.mb_str_replace.php b/workspaces/src/includes/smarty/plugins/shared.mb_str_replace.php
similarity index 100%
rename from includes/smarty/plugins/shared.mb_str_replace.php
rename to workspaces/src/includes/smarty/plugins/shared.mb_str_replace.php
diff --git a/includes/smarty/plugins/shared.mb_unicode.php b/workspaces/src/includes/smarty/plugins/shared.mb_unicode.php
similarity index 100%
rename from includes/smarty/plugins/shared.mb_unicode.php
rename to workspaces/src/includes/smarty/plugins/shared.mb_unicode.php
diff --git a/includes/smarty/plugins/shared.mb_wordwrap.php b/workspaces/src/includes/smarty/plugins/shared.mb_wordwrap.php
similarity index 100%
rename from includes/smarty/plugins/shared.mb_wordwrap.php
rename to workspaces/src/includes/smarty/plugins/shared.mb_wordwrap.php
diff --git a/includes/smarty/plugins/variablefilter.htmlspecialchars.php b/workspaces/src/includes/smarty/plugins/variablefilter.htmlspecialchars.php
similarity index 100%
rename from includes/smarty/plugins/variablefilter.htmlspecialchars.php
rename to workspaces/src/includes/smarty/plugins/variablefilter.htmlspecialchars.php
diff --git a/includes/smarty/sysplugins/smarty_cacheresource.php b/workspaces/src/includes/smarty/sysplugins/smarty_cacheresource.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_cacheresource.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_cacheresource.php
diff --git a/includes/smarty/sysplugins/smarty_cacheresource_custom.php b/workspaces/src/includes/smarty/sysplugins/smarty_cacheresource_custom.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_cacheresource_custom.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_cacheresource_custom.php
diff --git a/includes/smarty/sysplugins/smarty_cacheresource_keyvaluestore.php b/workspaces/src/includes/smarty/sysplugins/smarty_cacheresource_keyvaluestore.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_cacheresource_keyvaluestore.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_cacheresource_keyvaluestore.php
diff --git a/includes/smarty/sysplugins/smarty_config_source.php b/workspaces/src/includes/smarty/sysplugins/smarty_config_source.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_config_source.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_config_source.php
diff --git a/includes/smarty/sysplugins/smarty_internal_cacheresource_file.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_cacheresource_file.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_cacheresource_file.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_cacheresource_file.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_append.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_append.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_append.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_append.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_assign.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_assign.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_assign.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_assign.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_block.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_block.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_block.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_block.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_break.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_break.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_break.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_break.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_call.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_call.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_call.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_call.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_capture.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_capture.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_capture.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_capture.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_config_load.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_config_load.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_config_load.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_config_load.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_continue.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_continue.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_continue.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_continue.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_debug.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_debug.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_debug.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_debug.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_eval.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_eval.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_eval.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_eval.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_extends.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_extends.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_extends.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_extends.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_for.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_for.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_for.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_for.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_foreach.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_foreach.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_foreach.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_foreach.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_function.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_function.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_function.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_function.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_if.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_if.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_if.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_if.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_include.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_include.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_include.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_include.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_include_php.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_include_php.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_include_php.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_include_php.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_insert.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_insert.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_insert.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_insert.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_ldelim.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_ldelim.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_ldelim.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_ldelim.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_nocache.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_nocache.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_nocache.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_nocache.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_block_plugin.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_block_plugin.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_block_plugin.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_block_plugin.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_function_plugin.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_function_plugin.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_function_plugin.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_function_plugin.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_modifier.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_modifier.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_modifier.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_modifier.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_object_block_function.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_object_function.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_object_function.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_object_function.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_object_function.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_print_expression.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_print_expression.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_print_expression.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_print_expression.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_registered_block.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_registered_block.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_registered_block.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_registered_block.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_registered_function.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_registered_function.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_registered_function.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_registered_function.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_private_special_variable.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_special_variable.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_private_special_variable.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_private_special_variable.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_rdelim.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_rdelim.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_rdelim.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_rdelim.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_section.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_section.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_section.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_section.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_setfilter.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_setfilter.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_setfilter.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_setfilter.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compile_while.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_while.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compile_while.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compile_while.php
diff --git a/includes/smarty/sysplugins/smarty_internal_compilebase.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_compilebase.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_compilebase.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_compilebase.php
diff --git a/includes/smarty/sysplugins/smarty_internal_config.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_config.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_config.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_config.php
diff --git a/includes/smarty/sysplugins/smarty_internal_config_file_compiler.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_config_file_compiler.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_config_file_compiler.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_config_file_compiler.php
diff --git a/includes/smarty/sysplugins/smarty_internal_configfilelexer.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_configfilelexer.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_configfilelexer.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_configfilelexer.php
diff --git a/includes/smarty/sysplugins/smarty_internal_configfileparser.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_configfileparser.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_configfileparser.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_configfileparser.php
diff --git a/includes/smarty/sysplugins/smarty_internal_data.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_data.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_data.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_data.php
diff --git a/includes/smarty/sysplugins/smarty_internal_debug.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_debug.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_debug.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_debug.php
diff --git a/includes/smarty/sysplugins/smarty_internal_filter_handler.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_filter_handler.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_filter_handler.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_filter_handler.php
diff --git a/includes/smarty/sysplugins/smarty_internal_function_call_handler.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_function_call_handler.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_function_call_handler.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_function_call_handler.php
diff --git a/includes/smarty/sysplugins/smarty_internal_get_include_path.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_get_include_path.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_get_include_path.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_get_include_path.php
diff --git a/includes/smarty/sysplugins/smarty_internal_nocache_insert.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_nocache_insert.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_nocache_insert.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_nocache_insert.php
diff --git a/includes/smarty/sysplugins/smarty_internal_parsetree.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_parsetree.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_parsetree.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_parsetree.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_eval.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_eval.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_eval.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_eval.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_extends.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_extends.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_extends.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_extends.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_file.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_file.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_file.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_file.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_php.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_php.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_php.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_php.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_registered.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_registered.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_registered.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_registered.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_stream.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_stream.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_stream.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_stream.php
diff --git a/includes/smarty/sysplugins/smarty_internal_resource_string.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_string.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_resource_string.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_resource_string.php
diff --git a/includes/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php
diff --git a/includes/smarty/sysplugins/smarty_internal_template.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_template.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_template.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_template.php
diff --git a/includes/smarty/sysplugins/smarty_internal_templatebase.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_templatebase.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_templatebase.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_templatebase.php
diff --git a/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_templatecompilerbase.php
diff --git a/includes/smarty/sysplugins/smarty_internal_templatelexer.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_templatelexer.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_templatelexer.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_templatelexer.php
diff --git a/includes/smarty/sysplugins/smarty_internal_templateparser.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_templateparser.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_templateparser.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_templateparser.php
diff --git a/includes/smarty/sysplugins/smarty_internal_utility.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_utility.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_utility.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_utility.php
diff --git a/includes/smarty/sysplugins/smarty_internal_write_file.php b/workspaces/src/includes/smarty/sysplugins/smarty_internal_write_file.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_internal_write_file.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_internal_write_file.php
diff --git a/includes/smarty/sysplugins/smarty_resource.php b/workspaces/src/includes/smarty/sysplugins/smarty_resource.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_resource.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_resource.php
diff --git a/includes/smarty/sysplugins/smarty_resource_custom.php b/workspaces/src/includes/smarty/sysplugins/smarty_resource_custom.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_resource_custom.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_resource_custom.php
diff --git a/includes/smarty/sysplugins/smarty_resource_recompiled.php b/workspaces/src/includes/smarty/sysplugins/smarty_resource_recompiled.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_resource_recompiled.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_resource_recompiled.php
diff --git a/includes/smarty/sysplugins/smarty_resource_uncompiled.php b/workspaces/src/includes/smarty/sysplugins/smarty_resource_uncompiled.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_resource_uncompiled.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_resource_uncompiled.php
diff --git a/includes/smarty/sysplugins/smarty_security.php b/workspaces/src/includes/smarty/sysplugins/smarty_security.php
similarity index 100%
rename from includes/smarty/sysplugins/smarty_security.php
rename to workspaces/src/includes/smarty/sysplugins/smarty_security.php
diff --git a/includes/workspaces/Workspace.php b/workspaces/src/includes/workspaces/Workspace.php
similarity index 100%
rename from includes/workspaces/Workspace.php
rename to workspaces/src/includes/workspaces/Workspace.php
diff --git a/includes/workspaces/WorkspaceConfiguration.php b/workspaces/src/includes/workspaces/WorkspaceConfiguration.php
similarity index 100%
rename from includes/workspaces/WorkspaceConfiguration.php
rename to workspaces/src/includes/workspaces/WorkspaceConfiguration.php
diff --git a/index.php b/workspaces/src/index.php
similarity index 100%
rename from index.php
rename to workspaces/src/index.php
diff --git a/js/app.js b/workspaces/src/js/app.js
similarity index 100%
rename from js/app.js
rename to workspaces/src/js/app.js
diff --git a/js/bootstrap.min.js b/workspaces/src/js/bootstrap.min.js
similarity index 100%
rename from js/bootstrap.min.js
rename to workspaces/src/js/bootstrap.min.js
diff --git a/js/jquery-1.10.2.js b/workspaces/src/js/jquery-1.10.2.js
similarity index 100%
rename from js/jquery-1.10.2.js
rename to workspaces/src/js/jquery-1.10.2.js
diff --git a/js/jquery.dataTables.js b/workspaces/src/js/jquery.dataTables.js
similarity index 100%
rename from js/jquery.dataTables.js
rename to workspaces/src/js/jquery.dataTables.js
diff --git a/lang/en/core.conf b/workspaces/src/lang/en/core.conf
similarity index 100%
rename from lang/en/core.conf
rename to workspaces/src/lang/en/core.conf
diff --git a/lang/fr/core.conf b/workspaces/src/lang/fr/core.conf
similarity index 100%
rename from lang/fr/core.conf
rename to workspaces/src/lang/fr/core.conf
diff --git a/skins/bluegray/apps/documents/documents_list.tpl b/workspaces/src/skins/bluegray/apps/documents/documents_list.tpl
similarity index 100%
rename from skins/bluegray/apps/documents/documents_list.tpl
rename to workspaces/src/skins/bluegray/apps/documents/documents_list.tpl
diff --git a/skins/bluegray/apps/documents/documents_view.tpl b/workspaces/src/skins/bluegray/apps/documents/documents_view.tpl
similarity index 100%
rename from skins/bluegray/apps/documents/documents_view.tpl
rename to workspaces/src/skins/bluegray/apps/documents/documents_view.tpl
diff --git a/skins/bluegray/apps/mediawikimirror/page.tpl b/workspaces/src/skins/bluegray/apps/mediawikimirror/page.tpl
similarity index 100%
rename from skins/bluegray/apps/mediawikimirror/page.tpl
rename to workspaces/src/skins/bluegray/apps/mediawikimirror/page.tpl
diff --git a/skins/bluegray/errors/404.tpl b/workspaces/src/skins/bluegray/errors/404.tpl
similarity index 100%
rename from skins/bluegray/errors/404.tpl
rename to workspaces/src/skins/bluegray/errors/404.tpl
diff --git a/skins/bluegray/footer.tpl b/workspaces/src/skins/bluegray/footer.tpl
similarity index 100%
rename from skins/bluegray/footer.tpl
rename to workspaces/src/skins/bluegray/footer.tpl
diff --git a/skins/bluegray/header.tpl b/workspaces/src/skins/bluegray/header.tpl
similarity index 100%
rename from skins/bluegray/header.tpl
rename to workspaces/src/skins/bluegray/header.tpl
diff --git a/skins/bluegray/help.tpl b/workspaces/src/skins/bluegray/help.tpl
similarity index 100%
rename from skins/bluegray/help.tpl
rename to workspaces/src/skins/bluegray/help.tpl
diff --git a/skins/bluegray/home_noworkspace.tpl b/workspaces/src/skins/bluegray/home_noworkspace.tpl
similarity index 100%
rename from skins/bluegray/home_noworkspace.tpl
rename to workspaces/src/skins/bluegray/home_noworkspace.tpl
diff --git a/skins/bluegray/home_pickworkspace.tpl b/workspaces/src/skins/bluegray/home_pickworkspace.tpl
similarity index 100%
rename from skins/bluegray/home_pickworkspace.tpl
rename to workspaces/src/skins/bluegray/home_pickworkspace.tpl
diff --git a/skins/bluegray/home_workspace.tpl b/workspaces/src/skins/bluegray/home_workspace.tpl
similarity index 100%
rename from skins/bluegray/home_workspace.tpl
rename to workspaces/src/skins/bluegray/home_workspace.tpl
diff --git a/skins/bluegray/login.tpl b/workspaces/src/skins/bluegray/login.tpl
similarity index 100%
rename from skins/bluegray/login.tpl
rename to workspaces/src/skins/bluegray/login.tpl
diff --git a/skins/bluegray/nav_help.tpl b/workspaces/src/skins/bluegray/nav_help.tpl
similarity index 100%
rename from skins/bluegray/nav_help.tpl
rename to workspaces/src/skins/bluegray/nav_help.tpl
diff --git a/skins/bluegray/nav_main.tpl b/workspaces/src/skins/bluegray/nav_main.tpl
similarity index 100%
rename from skins/bluegray/nav_main.tpl
rename to workspaces/src/skins/bluegray/nav_main.tpl
diff --git a/tests/Makefile b/workspaces/tests/Makefile
similarity index 100%
rename from tests/Makefile
rename to workspaces/tests/Makefile
diff --git a/tests/includes/collection/CRUDTestTrait.php b/workspaces/tests/includes/collection/CRUDTestTrait.php
similarity index 99%
rename from tests/includes/collection/CRUDTestTrait.php
rename to workspaces/tests/includes/collection/CRUDTestTrait.php
index bedf63e..f5eb4ce 100644
--- a/tests/includes/collection/CRUDTestTrait.php
+++ b/workspaces/tests/includes/collection/CRUDTestTrait.php
@@ -1,235 +1,235 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* CRUD features tests for each Collection class.
*
* @package ObsidianWorkspaces
* @subpackage Tests
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
-require_once('../includes/autoload.php');
+require_once('../src/includes/autoload.php');
/**
* A CollectionDocument class, for our tests.
*/
class BookDocument extends CollectionDocument {
/**
* @var string The book title
*/
public $title;
/**
* @var string The book author
*/
public $author;
/**
* Initializes a new instance of the BookDocument object
*/
public function __construct ($author = null, $title = null) {
if ($title !== null) $this->title = $title;
if ($author !== null) $this->author = $author;
}
}
/**
* The tests for our basic, non storage engine specific CRUD features
*
* For coverage purposes, it requires a coversDefaultClass annotation in the classes using this trait.
*/
trait CRUDTestTrait {
/**
* @var BookDocument The document to test every CRUD feature
*/
protected $redBook;
/**
* @var BookDocument A second document to test Set in two scenarii
*/
protected $blueBook;
/**
* Initializes two documents for the tests
*/
public function initializeDocuments() {
$this->blueBook = new BookDocument('Isaac Asimov', 'Foundation');
$this->redBook = new BookDocument('Iain Banks', 'Matter'); //M. will be added in update test
$this->redBook->id = 'redBook';
}
/**
* Tests if the constructor correctly initializes the id property
*
* @covers ::_construct()
*/
public function testId () {
$this->assertEquals('quux', $this->collection->id, "The collection constructor should have initialized the Collection::id property.");
}
/**
* Tests CRUD methods
*
* @covers ::add
* @covers ::exists
* @covers ::update
* @covers ::get
* @covers ::set
* @covers ::delete
* @covers ::count
* @covers ::getAll
*/
public function testCRUD () {
global $Config;
$Config = static::getConfig();
//::count
$this->assertEquals(
0, $this->collection->count(),
"The test collection isn't empty. Check the last test run cleaned correctly the resources."
);
//::add
$this->collection->add($this->redBook);
$this->assertNotEmpty(
$this->redBook->id,
"After a document has been added, the id has been deleted."
);
$this->assertEquals(
'redBook',
$this->redBook->id,
"After a document has been added, the id has been modified."
);
//:ccount
$this->assertEquals(1, $this->collection->count());
//::exists
$this->assertFalse(
$this->collection->exists($this->blueBook),
"A non added document has been marked existing."
);
$this->assertTrue(
$this->collection->exists($this->redBook),
"An added document hasn't been found as existing."
);
//::update
$this->redBook->author = 'Iain M. Banks';
$this->collection->update($this->redBook);
$this->assertEquals(
'redBook',
$this->redBook->id,
"The document ID has been modified during an update operation. It should stay the same. Old id: redBook. New id: " . $this->redBook->id
);
//::count
$this->assertEquals(1, $this->collection->count());
//::get - when our collection uses the generic CollectionDocument class
$newDocument = $this->collection->get($this->redBook->id);
$this->assertInstanceOf('CollectionDocument', $newDocument);
$this->assertNotInstanceOf('BookDocument', $newDocument);
//::set - when our collection uses a proper CollectionDocument descendant
$this->collection->documentType = 'BookDocument';
$newBook = $this->collection->get($this->redBook->id);
$this->assertInstanceOf('BookDocument', $newBook);
$this->assertObjectHasAttribute('title', $newBook);
$this->assertObjectHasAttribute('author', $newBook);
$this->assertObjectHasAttribute('id', $newBook);
$this->assertEquals('Matter', $newBook->title);
$this->assertEquals('Iain M. Banks', $newBook->author);
$this->assertEquals('redBook', $newBook->id);
//::set - an existing document as parameter
$previousId = $this->redBook->id;
$this->collection->set($this->redBook);
$this->assertEquals(
$previousId,
$this->redBook->id,
"The document ID has been modified during a set operation on an already added dcoument. It should stay the same. Old id: $previousId. New id: " . $this->redBook->id
);
//::count
$this->assertEquals(1, $this->collection->count());
//::set - a new document as parameter
$this->collection->set($this->blueBook);
$this->assertNotEmpty(
$this->blueBook->id,
"After a document has been added, the expected behavior is the id property is filled with the generated identifiant."
);
$this->assertTrue(
$this->collection->exists($this->blueBook),
"An added document with set hasn't been found as existing."
);
//::count
$this->assertEquals(2, $this->collection->count());
//::getAll
$documents = $this->collection->getAll();
$count = 0;
foreach ($documents as $document) {
switch ($document->id) {
case $this->blueBook->id:
$this->assertInstanceOf('BookDocument', $document);
$this->assertObjectHasAttribute('title', $document);
$this->assertObjectHasAttribute('author', $document);
$this->assertObjectHasAttribute('id', $document);
$this->assertEquals('Foundation', $document->title);
$this->assertEquals('Isaac Asimov', $document->author);
break;
case 'redBook':
$this->assertInstanceOf('BookDocument', $document);
$this->assertObjectHasAttribute('title', $document);
$this->assertObjectHasAttribute('author', $document);
$this->assertObjectHasAttribute('id', $document);
$this->assertEquals('Matter', $document->title);
$this->assertEquals('Iain M. Banks', $document->author);
break;
case '':
$this->fail("An object without id has been returned by the getAll method.");
break;
default:
$this->fail("A document with an id nor 'redBook', nor the blueBook generated id ('{$this->blueBook->id}') has been returned: $document->id.");
}
$count++;
}
$this->assertEquals(2, $count);
//::delete
$this->collection->delete($this->blueBook->id);
$this->assertFalse(
$this->collection->exists($this->blueBook),
"A deleted document has been marked existing."
);
$this->assertTrue(
$this->collection->exists($this->redBook),
"An unexpected document has been deleted."
);
//::count
$this->assertEquals(1, $this->collection->count());
//::delete, ::count
$this->collection->delete($this->redBook->id);
$this->assertEquals(0, $this->collection->count());
//::getAll
$documents = $this->collection->getAll();
$this->assertCount(0, $documents, "We expected each collection document would have been deleted.");
}
}
diff --git a/tests/includes/collection/FilesCollectionTest.php b/workspaces/tests/includes/collection/FilesCollectionTest.php
similarity index 99%
rename from tests/includes/collection/FilesCollectionTest.php
rename to workspaces/tests/includes/collection/FilesCollectionTest.php
index c308c63..7dcc849 100644
--- a/tests/includes/collection/FilesCollectionTest.php
+++ b/workspaces/tests/includes/collection/FilesCollectionTest.php
@@ -1,193 +1,193 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Unit testing — FilesCollection class
*
* @package ObsidianWorkspaces
* @subpackage Tests
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
require_once('CRUDTestTrait.php');
-require('../includes/GlobalFunctions.php');
+require('../src/includes/GlobalFunctions.php');
/**
* Tests FilesCollection class
* @coversDefaultClass FilesCollection
*/
class FilesCollectionTest extends PHPUnit_Framework_TestCase {
/**
* @var string Our collection
*/
protected $collection;
/**
* Gets default configuration for this test
*
* @return array The configuration block
*/
protected static function getConfig () {
return [
'DocumentStorage' => [
'Type' => 'Files',
'Path' => UNITTESTING_FILESCOLLECTION_PATH
]
];
}
/**
* Initializes a new instance of the PHPUnit_Framework_TestCase class
*
* @param string $name The test case name
*/
public function __construct (string $name = null) {
parent::__construct($name);
$this->initializeDocuments();
global $Config;
$Config = self::getConfig();
$this->collection = new FilesCollection('quux');
}
///
/// Specific tests for this particular Collection class
///
/**
* @covers FilesCollection::__construct
*/
public function testConstructor () {
global $Config;
$Config = self::getConfig();
$collection = new FilesCollection('quux');
$this->assertEquals('quux', $collection->id);
}
/**
* @covers FilesCollection::getCollectionPath
* @covers FilesCollection::getDocumentPath
*/
public function testPaths () {
global $Config;
$Config = self::getConfig();
$expectedPath = UNITTESTING_FILESCOLLECTION_PATH
. DIRECTORY_SEPARATOR
. 'quux';
$this->assertEquals(
$expectedPath,
FilesCollection::getCollectionPath('quux')
);
$this->assertFileExists($expectedPath);
$expectedPath .= DIRECTORY_SEPARATOR
. 'foo.json';
$this->assertEquals(
$expectedPath,
$this->collection->getDocumentPath('foo')
);
}
/**
* @covers FilesCollection::getCollectionPath
*/
public function testConfigurationMissingException () {
//Note: @expectedException isn't allowed in PHPUnit to test the generic Exception class.
global $Config;
$oldConfigDocumentStorage = $Config['DocumentStorage'];
$Config['DocumentStorage'] = []; //Path isn't defined
try {
FilesCollection::getCollectionPath('quux');
} catch (Exception $ex) {
$Config['DocumentStorage'] = $oldConfigDocumentStorage;
return;
}
$this->fail('An expected exception has not been raised.');
}
/**
* @covers FilesCollection::getCollectionPath
*/
public function testCantCreateDirectoryException () {
//Note: @expectedException isn't allowed in PHPUnit to test the generic Exception class.
global $Config;
$oldConfigDocumentStorage = $Config['DocumentStorage'];
$Config['DocumentStorage'] = [
'Type' => 'Files',
'Path' => '/root/obsidiancollections',
];
try {
FilesCollection::getCollectionPath('quux');
} catch (Exception $ex) {
$Config['DocumentStorage'] = $oldConfigDocumentStorage;
return;
}
$this->fail("An expected exception has not been raised. If you're logged as root, you can safely delete /root/obsidiancollections folder and ignore this test. By the way, are you sure to trust a tests sequence creating and deleting files to run them as root?");
}
///
/// CRUD tests
///
use CRUDTestTrait;
/**
* @covers FilesCollection::add
* @covers FilesCollection::update
*/
public function testFileContent () {
global $Config;
$Config = self::getConfig();
$book = new BookDocument('Iain Banks', 'Excession');
$book->id = 'greenBook';
$this->collection->add($book);
$filename = $this->collection->getDocumentPath('greenBook');
$this->assertJsonFileEqualsJsonFile(
'includes/collection/greenBook1.json',
$filename
);
$book->author = 'Iain M. Banks';
$this->collection->update($book);
$this->assertJsonFileEqualsJsonFile(
'includes/collection/greenBook2.json',
$filename
);
//Cleans up, so CRUD test starts with an empty collection
unlink(UNITTESTING_FILESCOLLECTION_PATH . '/quux/greenBook.json');
}
///
/// Cleanup
///
/**
* Tears down resources when tests are done
*/
public static function tearDownAfterClass () {
//Removes created directories
rmdir(UNITTESTING_FILESCOLLECTION_PATH . '/quux');
rmdir(UNITTESTING_FILESCOLLECTION_PATH);
}
}
diff --git a/tests/includes/collection/MongoDBCollectionTest.php b/workspaces/tests/includes/collection/MongoDBCollectionTest.php
similarity index 100%
rename from tests/includes/collection/MongoDBCollectionTest.php
rename to workspaces/tests/includes/collection/MongoDBCollectionTest.php
diff --git a/tests/includes/collection/MySQCollectionTest.php b/workspaces/tests/includes/collection/MySQCollectionTest.php
similarity index 100%
rename from tests/includes/collection/MySQCollectionTest.php
rename to workspaces/tests/includes/collection/MySQCollectionTest.php
diff --git a/tests/includes/collection/SQLTestTrait.php b/workspaces/tests/includes/collection/SQLTestTrait.php
similarity index 98%
rename from tests/includes/collection/SQLTestTrait.php
rename to workspaces/tests/includes/collection/SQLTestTrait.php
index 18c0d6b..ac20fc2 100644
--- a/tests/includes/collection/SQLTestTrait.php
+++ b/workspaces/tests/includes/collection/SQLTestTrait.php
@@ -1,66 +1,66 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* SQL schema tests for each Collection class.
*
* @package ObsidianWorkspaces
* @subpackage Tests
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
-require_once('../includes/autoload.php');
+require_once('../src/includes/autoload.php');
/**
* The tests for our SQL storage engines, to ensure the schema is created correctly.
*
* For coverage purposes, it requires a coversDefaultClass annotation in the classes using this trait.
*/
trait SQLTestTrait {
/**
* @covers ::query()
*/
public function testQuery () {
/*
The query method is a complicated aspect of the code, as it returns a different
result according the kind of query:
(1) If the query doesn't return any result, null.
(2) If the query return a row with one field, the scalar value.
(3) Otherwise, an associative array, the fields as keys, the row as values.
*/
$sqlNoQueryResult = "";
$sqlNullResult = "UPDATE {$this->collection->table} SET collection_id = 'lorem' WHERE collection_id = 'lorem'";
$sqlScalarResult = "SELECT 1+1";
$sqlArrayResult = "SELECT 8+2 as sum, 8*2 as product, 8/2 as quotient, 8-2 as difference";
try {
$resultNull = $this->collection->query($sqlNoQueryResult);
} catch (Exception $ex) {
$this->fail("The query() specifications provides: 'If the query doesn't return any result, return null.'. This is also the expected behavior for empty queries. Instead we got an exception.");
}
$this->assertNull($resultNull, "The query() specifications provides: 'If the query doesn't return any result, return null.'. This is also the expected behavior for empty queries.");
$resultNull = $this->collection->query($sqlNullResult);
$this->assertNull($resultNull, "The query() specifications provides: 'If the query doesn't return any result, return null.'. This is expected for $sqlNullResult.");
$resultScalar = $this->collection->query($sqlScalarResult);
$this->assertEquals(2, $resultScalar, "The query() specifications provides: 'If the query return a row with one field, the scalar value.' This is expected for $sqlScalarResult.");
$resultArray = $this->collection->query($sqlArrayResult);
$expectedResultArray = [
'sum' => 10,
'product' => 16,
'quotient' => 4,
'difference' => 6,
];
$this->assertEquals($expectedResultArray, $resultArray, "The query() specifications provides: '[If the query returns a non scalar result, return] an associative array, the fields as keys, the row as values.'. This is expected for $sqlArrayResult.");
}
}
\ No newline at end of file
diff --git a/tests/includes/collection/SQLiteCollectionTest.php b/workspaces/tests/includes/collection/SQLiteCollectionTest.php
similarity index 100%
rename from tests/includes/collection/SQLiteCollectionTest.php
rename to workspaces/tests/includes/collection/SQLiteCollectionTest.php
diff --git a/tests/includes/collection/greenBook1.json b/workspaces/tests/includes/collection/greenBook1.json
similarity index 100%
rename from tests/includes/collection/greenBook1.json
rename to workspaces/tests/includes/collection/greenBook1.json
diff --git a/tests/includes/collection/greenBook2.json b/workspaces/tests/includes/collection/greenBook2.json
similarity index 100%
rename from tests/includes/collection/greenBook2.json
rename to workspaces/tests/includes/collection/greenBook2.json
diff --git a/tests/includes/database/DatabaseExceptionTest.php b/workspaces/tests/includes/database/DatabaseExceptionTest.php
similarity index 95%
rename from tests/includes/database/DatabaseExceptionTest.php
rename to workspaces/tests/includes/database/DatabaseExceptionTest.php
index 1cc01a3..b6ce741 100644
--- a/tests/includes/database/DatabaseExceptionTest.php
+++ b/workspaces/tests/includes/database/DatabaseExceptionTest.php
@@ -1,50 +1,50 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Unit testing — FilesCollection class
*
* @package ObsidianWorkspaces
* @subpackage Tests
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
-require '../includes/database/DatabaseException.php';
+require '../src/includes/database/DatabaseException.php';
/**
* Tests DatabaseException class
*/
class DatabaseExceptionTest extends PHPUnit_Framework_TestCase {
/**
* @covers DatabaseException::__construct
* @covers DatabaseException::getQuery
*/
public function testGetQuery () {
$sql = 'SELECT 1+';
$ex = new DatabaseException($sql, 'Syntax error', 1064);
$this->assertEquals(
$sql,
$ex->getQuery(),
""
);
$ex = new DatabaseException();
$this->assertNull(
$ex->getQuery(),
"If the query isn't specified during the constructor call, getQuery shall return null."
);
$ex = new DatabaseException('');
$this->assertEquals(
'',
$ex->getQuery(),
"If the query isn't specified during the constructor call, getQuery shall not return null but must return an empty string too."
);
}
}
diff --git a/tests/includes/database/MySQLDatabaseTest.php b/workspaces/tests/includes/database/MySQLDatabaseTest.php
similarity index 96%
rename from tests/includes/database/MySQLDatabaseTest.php
rename to workspaces/tests/includes/database/MySQLDatabaseTest.php
index eb4b049..09d4788 100644
--- a/tests/includes/database/MySQLDatabaseTest.php
+++ b/workspaces/tests/includes/database/MySQLDatabaseTest.php
@@ -1,70 +1,70 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Unit testing — MysqlDatabaseTest class
*
* @package ObsidianWorkspaces
* @subpackage Tests
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
-//require '../includes/database/MysqlDatabase.php';
+//require '../src/includes/database/MysqlDatabase.php';
/**
* Tests DatabaseTest
*/
class MySQLDatabaseTest extends PHPUnit_Framework_TestCase {
/**
* @var MysqlDatabase
*/
private $db;
/**
* Creates the objects against which we will test.
*/
public function setUp () {
$this->db = new MySQLDatabase(
UNITTESTING_MYSQL_HOST,
UNITTESTING_MYSQL_USERNAME,
UNITTESTING_MYSQL_PASSWORD,
UNITTESTING_MYSQL_DATABASE
);
}
/**
* Tests string escape
*
* @covers SQLiteCollection::escape
*/
public function testEscape () {
$toEscapeExpressions = [
"",
"Lorem ipsum dolor",
"L'arbre",
"''",
"cœur"
];
$escapedExpressions = [
"",
"Lorem ipsum dolor",
"L\\'arbre",
"\\'\\'",
"cœur"
];
for ($i = 0 ; $i < count($toEscapeExpressions) ; $i++) {
$this->assertEquals(
$escapedExpressions[$i],
$this->db->escape($toEscapeExpressions[$i]),
"The following string isn't properly escaped: '$toEscapeExpressions[$i]'"
);
}
}
}
diff --git a/tests/phpunit.xml b/workspaces/tests/phpunit.xml
similarity index 100%
rename from tests/phpunit.xml
rename to workspaces/tests/phpunit.xml

File Metadata

Mime Type
text/x-diff
Expires
Wed, Mar 18, 12:22 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3539627
Default Alt Text
(88 KB)

Event Timeline