| Versionen | |
|---|---|
| drupal7 | public DatabaseConnection::setTarget($target = NULL) |
Tell this connection object what its target value is.
This is needed for logging and auditing. It's sloppy to do in the constructor because the constructor for child classes has a different signature. We therefore also ensure that this function is only ever called once.
$target The target this connection is for. Set to NULL (default) to disable logging entirely.
includes/
<?php
public function setTarget($target = NULL) {
if (!isset($this->target)) {
$this->target = $target;
}
}
?>
Kommentare
Kommentar hinzufügen