function _reorderJson() { $targetNodeID = $this->_getParam('target', RM_Categories::ROOT_NAME); $dropedNodeID = $this->_getParam('id', RM_Categories::ROOT_NAME); $command = $this->_getParam('point'); $model = new RM_Categories(); if (!$command) { $targetNodeID = $model->find($targetNodeID)->current()->parent_id; } $model->reorder($targetNodeID, $dropedNodeID); $json = array('success' => true); return array('data' => $json); }