You are here

class ViewsRulesTestIterable in Views Rules 7

Iterable implementation for testing iterator display.

Hierarchy

Expanded class hierarchy of ViewsRulesTestIterable

File

tests/views_rules_test.module, line 19
Test implementations for Views Rules.

View source
class ViewsRulesTestIterable implements ViewsRulesIterable {
  public $rows = array();

  /**
   * Evaluates a view row in the loop.
   */
  public function evaluateRow(array $data) {
    $this->rows[] = $data;
  }
  public function reset() {
    $this->rows = array();
    return $this;
  }

}

Members