Ip\Internal\Grid\Model\Table::move PHP Метод

move() защищенный Метод

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