You are here

public function RulesLog::render in Rules 7.2

Renders the whole log.

1 call to RulesLog::render()
RulesLog::checkLog in includes/rules.core.inc
Checks the log and throws an exception if there were any problems.

File

includes/rules.core.inc, line 2757
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesLog
The rules default logging class.

Code

public function render() {
  $line = 0;
  $output = array();
  while (isset($this->log[$line])) {
    $vars['head'] = t($this->log[$line][0], $this->log[$line][1]);
    $vars['log'] = $this
      ->renderHelper($line);
    $output[] = theme('rules_debug_element', $vars);
    $line++;
  }
  return implode('', $output);
}