this._proxy.setOption('data', {
actionName: 'loadContainer',
className: this._className,
- interfaceName: 'wcf\\data\\ILoadableCollapsibleContainerAction',
+ interfaceName: 'wcf\\data\\ILoadableContainerAction',
objectIDs: [ this._getObjectID($containerID) ],
parameters: $.extend(true, {
containerID: $containerID,
this._proxy.setOption('data', {
actionName: 'toggleContainer',
className: this._className,
- interfaceName: 'wcf\\data\\ICollapsibleContainerAction',
+ interfaceName: 'wcf\\data\\IToggleContainerAction',
objectIDs: [ this._getObjectID($containerID) ],
parameters: $.extend(true, {
containerID: $containerID,
+++ /dev/null
-<?php
-namespace wcf\data;
-
-/**
- * Every database object action whose objects represent a collapsible container
- * has to implement this interface.
- *
- * @author Matthias Schmidt
- * @copyright 2001-2012 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage data
- * @category Community Framework
- */
-interface ICollapsibleContainerAction {
- /**
- * Toggles the container state of the relevant objects.
- */
- public function toggleContainer();
-
- /**
- * Validates the "toggleContainer" action.
- */
- public function validateToggleContainer();
-}
+++ /dev/null
-<?php
-namespace wcf\data;
-
-/**
- * Every database object action whose objects represent a collapsible container
- * whose content can be loaded via AJAX has to implement this interface.
- *
- * @author Matthias Schmidt
- * @copyright 2001-2012 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage data
- * @category Community Framework
- */
-interface ILoadableCollapsibleContainerAction {
- /**
- * Toggles the container state of the relevant objects and loads their
- * content if necessary.
- */
- public function loadContainer();
-
- /**
- * Validates the "loadContainer" action.
- */
- public function validateLoadContainer();
-}
--- /dev/null
+<?php
+namespace wcf\data;
+
+/**
+ * Every database object action whose objects represent a collapsible container
+ * whose content can be loaded via AJAX has to implement this interface.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2013 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage data
+ * @category Community Framework
+ */
+interface ILoadableContainerAction {
+ /**
+ * Toggles the container state of the relevant objects and loads their
+ * content if necessary.
+ */
+ public function loadContainer();
+
+ /**
+ * Validates the 'loadContainer' action.
+ */
+ public function validateLoadContainer();
+}
--- /dev/null
+<?php
+namespace wcf\data;
+
+/**
+ * Every database object action whose objects represent a collapsible container
+ * has to implement this interface.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2013 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage data
+ * @category Community Framework
+ */
+interface IToggleContainerAction {
+ /**
+ * Toggles the container state of the relevant objects.
+ */
+ public function toggleContainer();
+
+ /**
+ * Validates the 'toggleContainer' action.
+ */
+ public function validateToggleContainer();
+}
<?php
namespace wcf\data\category;
use wcf\data\AbstractDatabaseObjectAction;
-use wcf\data\ICollapsibleContainerAction;
use wcf\data\ISortableAction;
+use wcf\data\IToggleContainerAction;
use wcf\data\IToggleAction;
use wcf\system\category\CategoryHandler;
use wcf\system\exception\PermissionDeniedException;
* @subpackage data.category
* @category Community Framework
*/
-class CategoryAction extends AbstractDatabaseObjectAction implements ICollapsibleContainerAction, ISortableAction, IToggleAction {
+class CategoryAction extends AbstractDatabaseObjectAction implements ISortableAction, IToggleAction, IToggleContainerAction {
/**
* categorized object type
* @var wcf\data\object\type\ObjectType
}
/**
- * @see wcf\data\ICollapsibleContainerAction::toggleContainer()
+ * @see wcf\data\IToggleContainerAction::toggleContainer()
*/
public function toggleContainer() {
$collapsibleObjectTypeName = $this->objects[0]->getProcessor()->getObjectTypeName('com.woltlab.wcf.collapsibleContent');
}
/**
- * @see wcf\data\ICollapsibleContainerAction::validateToggleContainer()
+ * @see wcf\data\IToggleContainerAction::validateToggleContainer()
*/
public function validateToggleContainer() {
$this->validateUpdate();
+++ /dev/null
-<?php
-namespace wcf\system\user\collapsible\content;
-
-/**
- * Provides basic methods to toggle container content.
- *
- * @author Alexander Ebert
- * @copyright 2001-2012 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
- */
-interface ICollapsibleContentAction {
- /**
- * Validates required parameters.
- */
- public function validateLoadContainer();
-
- /**
- * Toggles the visibility of container content.
- */
- public function loadContainer();
-}