summaryrefslogtreecommitdiffstats
path: root/plugin/client
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 21:24:54 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 21:24:54 +0200
commit004fcbbcc7609ca83807f2e38967ef54f469bf72 (patch)
tree49eb99b4ea92b2045793fc567f719b31ec7f9042 /plugin/client
parent60abc0ed4438c9b6fda245b0dc33cb483bc2aeaf (diff)
Move to new directory structure
Diffstat (limited to 'plugin/client')
-rw-r--r--plugin/client/plugin.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/plugin/client/plugin.php b/plugin/client/plugin.php
deleted file mode 100644
index 2be110e5a..000000000
--- a/plugin/client/plugin.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-/**
- * ownCloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Alessandro Cosentino <cosenal@gmail.com>
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Alessandro Cosentino 2012
- * @copyright Bernhard Posselt 2012, 2014
- */
-
-namespace OCA\News\Plugin\Client;
-
-/**
- * We actually really want to avoid this global list of plugins. A way would be
- * for News plugin apps to register themselves in a special database table
- * and the News app would just pull out the scripts that should be attached
- * but atm there is no really good way since there is no uninstall hook which
- * would remove the plugin from the apps so fk it :)
- */
-class Plugin {
-
- private static $scripts = [];
- private static $styles = [];
-
- public static function registerStyle($appName, $styleName) {
- self::$styles[$appName] = $styleName;
- }
-
- public static function registerScript($appName, $scriptName) {
- self::$scripts[$appName] = $scriptName;
- }
-
- public static function getStyles() {
- return self::$styles;
- }
-
- public static function getScripts() {
- return self::$scripts;
- }
-
-} \ No newline at end of file