You are here

function crumbs_Admin_DebugTable::addPluginResults in Crumbs, the Breadcrumbs suite 7.2

Parameters

crumbs_PluginSystem_PluginEngine $unfilteredPluginEngine:

crumbs_Container_WeightMap $weightMap:

File

lib/Admin/DebugTable.php, line 145

Class

crumbs_Admin_DebugTable

Code

function addPluginResults($unfilteredPluginEngine, $weightMap) {
  list($candidates_all, $candidateKeys) = $this
    ->getAllCandidates($unfilteredPluginEngine);
  list($enabledKeys, $disabledKeys) = $weightMap
    ->sortCandidateKeys($candidateKeys);

  // Add table rows.
  $this
    ->addLegendRow();
  $odd = TRUE;
  $this
    ->addResultRows($enabledKeys, $odd);
  $this
    ->addDefaultRow($odd);

  // Add rows for disabled candidates.
  $this->table
    ->addRowName('blank');
  $this
    ->addLegendRow('legend_disabled', t('Disabled keys'));
  $odd = TRUE;
  $this
    ->addResultRows($disabledKeys, $odd);

  // Add table cells.
  $this
    ->addCandidateCells($candidates_all, $weightMap);
}