Property | Type | Description | |
---|---|---|---|
$last_insert_id | integer |
Method | Description | |
---|---|---|
__construct ( Elgg\Database\Config $config, |
||
addQuerySpec ( array $spec ) : integer | Set the result of a query that may be called in the future | |
clearQuerySpecs ( ) : void | Remove all query specifications | |
connect ( $type = "readwrite" ) | ||
executeDatabaseQuery ( string $sql, array $params = [] ) : PHPUnit_Framework_MockObject_MockObject | Execute database query | |
getConnection ( $type ) | ||
removeQuerySpec ( integer $id ) : void | Remove a specified query added by addQuerySpec() | |
sanitizeString ( $value ) | ||
setupConnections ( ) |
Method | Description | |
---|---|---|
normalizeSql ( string $query ) : string | Attempt to normalize whitespace in a query |
public __construct ( Elgg\Database\Config $config, |
||
$config | Elgg\Database\Config | |
$logger |
public addQuerySpec ( array $spec ) : integer | ||
$spec | array | Query spec |
return | integer | ID of spec |
public clearQuerySpecs ( ) : void | ||
return | void |
public executeDatabaseQuery ( string $sql, array $params = [] ) : PHPUnit_Framework_MockObject_MockObject | ||
$sql | string | Query |
$params | array | Query params |
return | PHPUnit_Framework_MockObject_MockObject | (statement) |
public removeQuerySpec ( integer $id ) : void | ||
$id | integer | Query spec ID |
return | void |