private function beginTransaction() { if ($this->_in_trx === true) { throw new Ruckusing_Exception('Transaction already started', Ruckusing_Exception::QUERY_ERROR); } pg_query($this->conn, "BEGIN"); $this->_in_trx = true; }