You are here

public function ViewsRulesResultCollector::__construct in Views Rules 7

Creates a collector.

Parameters

array $variables: Names of variables to collect.

File

rules/views_rules.action.inc, line 103
Action implementation.

Class

ViewsRulesResultCollector
Collector for view iterator results.

Code

public function __construct(array $variables) {
  $this->variables = $variables;
  foreach ($this->variables as $variable) {
    $this->data[$variable] = array();
  }
}