From: Matthias Schmidt Date: Wed, 16 Jan 2013 20:26:17 +0000 (+0100) Subject: Removes double interface and improves interface names X-Git-Tag: 2.0.0_Beta_1~556 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c05528d8f077e2e1deef7c09e550239a4c2887b1;p=GitHub%2FWoltLab%2FWCF.git Removes double interface and improves interface names --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index cb9529ca3c..7292161c0c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3553,7 +3553,7 @@ WCF.Collapsible.Remote = Class.extend({ 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, @@ -3687,7 +3687,7 @@ WCF.Collapsible.SimpleRemote = WCF.Collapsible.Remote.extend({ 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, diff --git a/wcfsetup/install/files/lib/data/ICollapsibleContainerAction.class.php b/wcfsetup/install/files/lib/data/ICollapsibleContainerAction.class.php deleted file mode 100644 index c531b20bd1..0000000000 --- a/wcfsetup/install/files/lib/data/ICollapsibleContainerAction.class.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @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(); -} diff --git a/wcfsetup/install/files/lib/data/ILoadableCollapsibleContainerAction.class.php b/wcfsetup/install/files/lib/data/ILoadableCollapsibleContainerAction.class.php deleted file mode 100644 index 3db52ce323..0000000000 --- a/wcfsetup/install/files/lib/data/ILoadableCollapsibleContainerAction.class.php +++ /dev/null @@ -1,26 +0,0 @@ - - * @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(); -} diff --git a/wcfsetup/install/files/lib/data/ILoadableContainerAction.class.php b/wcfsetup/install/files/lib/data/ILoadableContainerAction.class.php new file mode 100644 index 0000000000..cf93540e7a --- /dev/null +++ b/wcfsetup/install/files/lib/data/ILoadableContainerAction.class.php @@ -0,0 +1,26 @@ + + * @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(); +} diff --git a/wcfsetup/install/files/lib/data/IToggleContainerAction.class.php b/wcfsetup/install/files/lib/data/IToggleContainerAction.class.php new file mode 100644 index 0000000000..aa160b164f --- /dev/null +++ b/wcfsetup/install/files/lib/data/IToggleContainerAction.class.php @@ -0,0 +1,25 @@ + + * @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(); +} diff --git a/wcfsetup/install/files/lib/data/category/CategoryAction.class.php b/wcfsetup/install/files/lib/data/category/CategoryAction.class.php index 04265450b6..7b3998f760 100644 --- a/wcfsetup/install/files/lib/data/category/CategoryAction.class.php +++ b/wcfsetup/install/files/lib/data/category/CategoryAction.class.php @@ -1,8 +1,8 @@ objects[0]->getProcessor()->getObjectTypeName('com.woltlab.wcf.collapsibleContent'); @@ -141,7 +141,7 @@ class CategoryAction extends AbstractDatabaseObjectAction implements ICollapsibl } /** - * @see wcf\data\ICollapsibleContainerAction::validateToggleContainer() + * @see wcf\data\IToggleContainerAction::validateToggleContainer() */ public function validateToggleContainer() { $this->validateUpdate(); diff --git a/wcfsetup/install/files/lib/system/user/collapsible/content/ICollapsibleContentAction.class.php b/wcfsetup/install/files/lib/system/user/collapsible/content/ICollapsibleContentAction.class.php deleted file mode 100644 index a59ae4e958..0000000000 --- a/wcfsetup/install/files/lib/system/user/collapsible/content/ICollapsibleContentAction.class.php +++ /dev/null @@ -1,24 +0,0 @@ - - * @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(); -}