lib/Sirel/SelectManager.php
function compileUpdate()
    {
        $updateManager = new UpdateManager;
        $updateManager->table($this->nodes->source->getLeft());

        foreach ($this->nodes->restrictions as $expr) {
            $updateManager->where($expr);
        }

        foreach ($this->nodes->orders as $order) {
            $updateManager->order($order);
        }

        empty($this->nodes->limit) ?:
            $updateManager->take($this->nodes->limit->getExpression());

        empty($this->nodes->offset) ?:
            $updateManager->skip($this->nodes->offset->getExpression());

        return $updateManager;
    }
function compileUpdate()
    {
        $updateManager = new UpdateManager;
        $updateManager->table($this->nodes->source->getLeft());

        foreach ($this->nodes->restrictions as $expr) {
            $updateManager->where($expr);
        }

        foreach ($this->nodes->orders as $order) {
            $updateManager->order($order);
        }

        empty($this->nodes->limit) ?:
            $updateManager->take($this->nodes->limit->getExpression());

        empty($this->nodes->offset) ?:
            $updateManager->skip($this->nodes->offset->getExpression());

        return $updateManager;
    }
function compileUpdate ( ) { $ updateManager = new UpdateManager ; $ updateManager -> table ( $ this -> nodes -> source -> getLeft ( ) ) ; foreach ( $ this -> nodes -> restrictions as $ expr ) { $ updateManager -> where ( $ expr ) ; } foreach ( $ this -> nodes -> orders as $ order ) { $ updateManager -> order ( $ order ) ; } empty ( $ this -> nodes -> limit ) ? : $ updateManager -> take ( $ this -> nodes -> limit -> getExpression ( ) ) ; empty ( $ this -> nodes -> offset ) ? : $ updateManager -> skip ( $ this -> nodes -> offset -> getExpression ( ) ) ; return $ updateManager ; }
Compiles an Update Query from the restrictions, orders, limits,
and offsets of this Select Query.

@return UpdateManager
Compiles an Update Query from the restrictions orders limits and offsets of this Select Query .