Ip\Internal\Grid\Model\Table::movePosition PHP Method

movePosition() protected method

protected movePosition ( $params )
    protected function movePosition($params)
    {
        if (empty($params['id']) || !isset($params['position'])) {
            throw new \Ip\Exception('Missing parameters');
        }
        if ($this->subgridConfig->beforeMove()) {
            call_user_func($this->subgridConfig->beforeMove(), $params['id']);
        }
        $id = $params['id'];
        $position = $params['position'];
        $actions = $this->getActions();
        $actions->movePosition($id, $position);
        $display = $this->getDisplay();
        $html = $display->fullHtml();
        $commands[] = Commands::setHtml($html);
        if ($this->subgridConfig->afterMove()) {
            call_user_func($this->subgridConfig->afterMove(), $params['id']);
        }
        return $commands;
    }