Elgg  Version 3.0
DatabaseException.php
Go to the documentation of this file.
1 <?php
2 
11 class DatabaseException extends \Exception {
12 
16  private $sql;
17 
21  private $params;
22 
30  public function setQuery($sql) {
31  $this->sql = $sql;
32  }
33 
38  public function getQuery() {
39  return $this->sql;
40  }
41 
49  public function setParameters(array $params) {
50  $this->params = $params;
51  }
52 
57  public function getParameters() {
58  return $this->params;
59  }
60 }
setParameters(array $params)
Set query parameters.
setQuery($sql)
Set query.
getParameters()
Get params.