1
0
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:
David Grudl
2008-07-15 09:34:05 +00:00
parent 69ead6da56
commit 7f0fa2e75e
5 changed files with 14 additions and 8 deletions

View File

@@ -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;
}
}