public function process(DatabaseLayer\VirtualQuery $thing)
    {
        switch ($thing->getOperation()) {
            case 'Insert':
                //Create
                return $this->processInsert($thing);
            case 'Select':
                //Read
                return $this->processSelect($thing);
            case 'Update':
                //Update
                return $this->processUpdate($thing);
            case 'Delete':
                //Delete
                return $this->processDelete($thing);
            case 'Passthru':
                //Delete
                return $this->processPassthru($thing);
            default:
                throw new Exception("Operation {$thing->getOperation()} not supported");
        }
    }
public function process(DatabaseLayer\VirtualQuery $thing)
    {
        switch ($thing->getOperation()) {
            case 'Insert':
                //Create
                return $this->processInsert($thing);
            case 'Select':
                //Read
                return $this->processSelect($thing);
            case 'Update':
                //Update
                return $this->processUpdate($thing);
            case 'Delete':
                //Delete
                return $this->processDelete($thing);
            case 'Passthru':
                //Delete
                return $this->processPassthru($thing);
            default:
                throw new Exception("Operation {$thing->getOperation()} not supported");
        }
    }
public function process ( DatabaseLayer \ VirtualQuery $ thing ) { switch ( $ thing -> getOperation ( ) ) { case 'Insert' : //Create return $ this -> processInsert ( $ thing ) ; case 'Select' : //Read return $ this -> processSelect ( $ thing ) ; case 'Update' : //Update return $ this -> processUpdate ( $ thing ) ; case 'Delete' : //Delete return $ this -> processDelete ( $ thing ) ; case 'Passthru' : //Delete return $ this -> processPassthru ( $ thing ) ; default : throw new Exception ( "Operation {$thing->getOperation()} not supported" ) ; } }
Turn a VirtualQuery into a SQL statement
@param \Thru\ActiveRecord\DatabaseLayer\VirtualQuery $thing
@return array|boolean
@throws Exception
Turn a VirtualQuery into a SQL statement