예제 #1
0
 /**
  * @param DatabasePostgres $dbw
  * @param int $id
  * @param LoggerInterface $logger
  */
 public function __construct(DatabasePostgres $dbw, $id, LoggerInterface $logger)
 {
     $this->dbw = $dbw;
     $this->logger = $logger;
     $this->id = $id;
     $this->didbegin = false;
     /* If we are not in a transaction, we need to be for savepoint trickery */
     if (!$dbw->trxLevel()) {
         $dbw->begin(__CLASS__, DatabasePostgres::TRANSACTION_INTERNAL);
         $this->didbegin = true;
     }
 }