' . "\n";
$table .= '| ' . $name . ' | ' . "\n";
$table .= ''
. Util::formatNumber($stats['total_time'], 3, 1)
. 's'
. $stats['total_time'] . ' | ' . "\n";
$table .= ''
. Util::formatNumber(
100 * ($stats['total_time'] / $profiling_stats['total_time']),
0, 2
)
. '% | ' . "\n";
$table .= '' . $stats['calls'] . ' | '
. "\n";
$table .= ''
. Util::formatNumber(
$stats['total_time'] / $stats['calls'], 3, 1
)
. 's'
. number_format($stats['total_time'] / $stats['calls'], 8, '.', '')
. ' | ' . "\n";
$table .= '
' . "\n";
}
return $table;
}
/**
* Get the HTML for the enum column dropdown
* During grid edit, if we have a enum field, returns the html for the
* dropdown
*
* @param string $db current database
* @param string $table current table
* @param string $column current column
* @param string $curr_value currently selected value
*
* @return string $dropdown html for the dropdown
*/
private function getHtmlForEnumColumnDropdown($db, $table, $column, $curr_value)
{
$values = $this->getValuesForColumn($db, $table, $column);
$dropdown = '