this._proxy.setOption('data', {
actionName: 'updatePosition',
className: this._className,
- interfaceName: 'wcf\\data\\IPositionAction',
+ interfaceName: 'wcf\\data\\ISortableAction',
parameters: $parameters
});
this._proxy.sendRequest();
+++ /dev/null
-<?php
-namespace wcf\data;
-
-/**
- * Every database object action whose objects can be positioned 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 IPositionAction {
- /**
- * Updates the positions of the relevant objects.
- */
- public function updatePosition();
-
- /**
- * Validates the "updatePosition" action.
- */
- public function validateUpdatePosition();
-}
namespace wcf\data;
/**
- * Default interface for sortable database objects.
+ * Every object action whose objects can be sorted via AJAX has to implement this
+ * interface.
*
- * @author Alexander Ebert
+ * @author Alexander Ebert, Matthias Schmidt
* @copyright 2001-2012 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
namespace wcf\data\category;
use wcf\data\AbstractDatabaseObjectAction;
use wcf\data\ICollapsibleContainerAction;
-use wcf\data\IPositionAction;
+use wcf\data\ISortableAction;
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, IPositionAction, IToggleAction {
+class CategoryAction extends AbstractDatabaseObjectAction implements ICollapsibleContainerAction, ISortableAction, IToggleAction {
/**
* categorized object type
* @var wcf\data\object\type\ObjectType
}
/**
- * @see wcf\data\IPositionAction::updatePosition()
+ * @see wcf\data\ISortableAction::updatePosition()
*/
public function updatePosition() {
$showOrders = array();
}
/**
- * @see wcf\data\IPositionAction::validateUpdatePosition()
+ * @see wcf\data\ISortableAction::validateUpdatePosition()
*/
public function validateUpdatePosition() {
// validate permissions