Removed collapsible sidebar relics
authorMarcel Werk <burntime@woltlab.com>
Mon, 6 Jun 2016 15:30:04 +0000 (17:30 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 6 Jun 2016 15:30:24 +0000 (17:30 +0200)
com.woltlab.wcf/objectType.xml
wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php [deleted file]

index d058b18728b3619678da99ba76cfc985ef0475f3..f528bd2335f82e2b330edf9c3ea37d7972cca30c 100644 (file)
                </type>
                <!-- /clipboard items -->
                
-               <type>
-                       <name>com.woltlab.wcf.collapsibleSidebar</name>
-                       <definitionname>com.woltlab.wcf.collapsibleContent</definitionname>
-               </type>
-               
                <!-- articles -->
                <type>
                        <name>com.woltlab.wcf.article.category</name>
diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/UserCollapsibleSidebarHandler.class.php
deleted file mode 100644 (file)
index d814bd6..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-namespace wcf\system\user\collapsible\content;
-use wcf\system\exception\UserInputException;
-use wcf\system\IAJAXInvokeAction;
-use wcf\system\SingletonFactory;
-use wcf\util\StringUtil;
-
-/**
- * Provides methods for handling collapsible sidebars.
- * 
- * @author     Alexander Ebert
- * @copyright  2001-2016 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    com.woltlab.wcf
- * @subpackage system.user.collapsible.content
- * @category   Community Framework
- */
-class UserCollapsibleSidebarHandler extends SingletonFactory implements IAJAXInvokeAction {
-       /**
-        * list of methods allowed for remote invoke
-        * @var string[]
-        */
-       public static $allowInvoke = ['toggle'];
-       
-       /**
-        * Toggles a sidebar.
-        */
-       public function toggle() {
-               $isOpen = (isset($_POST['isOpen'])) ? intval($_POST['isOpen']) : 1;
-               $objectID = (isset($_POST['sidebarName'])) ? StringUtil::trim($_POST['sidebarName']) : '';
-               if (empty($objectID)) {
-                       throw new UserInputException('sidebarName');
-               }
-               
-               $objectTypeID = UserCollapsibleContentHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.collapsibleSidebar');
-               if ($isOpen) {
-                       UserCollapsibleContentHandler::getInstance()->markAsOpened($objectTypeID, $objectID);
-               }
-               else {
-                       UserCollapsibleContentHandler::getInstance()->markAsCollapsed($objectTypeID, $objectID);
-               }
-       }
-}