mirror of
https://github.com/dg/dibi.git
synced 2025-08-31 09:41:43 +02:00
- added config alias 'hostname' for 'host'
This commit is contained in:
@@ -778,15 +778,19 @@ class dibi
|
||||
|
||||
/**
|
||||
* Returns brief descriptions.
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
public static function getColophon()
|
||||
public static function getColophon($sender = NULL)
|
||||
{
|
||||
return array(
|
||||
'dibi version: ' . dibi::VERSION,
|
||||
'Number or queries: ' . dibi::$numOfQueries
|
||||
. (dibi::$totalTime === NULL ? '' : ' (elapsed time: ' . sprintf('%0.3f', dibi::$totalTime * 1000) . ' ms)'),
|
||||
$arr = array(
|
||||
'Number of SQL queries: ' . dibi::$numOfQueries
|
||||
. (dibi::$totalTime === NULL ? '' : ', elapsed time: ' . sprintf('%0.3f', dibi::$totalTime * 1000) . ' ms'),
|
||||
);
|
||||
if ($sender === 'bluescreen') {
|
||||
$arr[] = 'dibi version ' . dibi::VERSION;
|
||||
}
|
||||
return $arr;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user