private function crumbs_Admin_DebugTable::addResultRows in Crumbs, the Breadcrumbs suite 7.2
Parameters
int[] $keys: Format: $[$candidateKey] = $weight
bool $odd:
Throws
Exception
1 call to crumbs_Admin_DebugTable::addResultRows()
- crumbs_Admin_DebugTable::addPluginResults in lib/
Admin/ DebugTable.php
File
- lib/
Admin/ DebugTable.php, line 172
Class
Code
private function addResultRows(array $keys, &$odd) {
foreach ($keys as $candidateKey => $weight) {
$this->table
->addRowName("row.{$candidateKey}")
->addRowClass("row.{$candidateKey}", $odd ? 'odd' : 'even');
if (false !== $weight) {
$this->table
->td("row.{$candidateKey}", 'candidate.key', $candidateKey)
->td("row.{$candidateKey}", 'candidate.weight', var_export($weight, TRUE));
}
else {
$this->table
->td("row.{$candidateKey}", 'candidate', $candidateKey);
}
$odd = !$odd;
}
}