You are here

public function QPACssEventHandler::__construct in QueryPath 7.3

Same name and namespace in other branches
  1. 6 qpa/qpa.classes.inc \QPACssEventHandler::__construct()
  2. 7.2 qpa/qpa.classes.inc \QPACssEventHandler::__construct()

File

qpa/qpa.classes.inc, line 16
qpa.classes

Class

QPACssEventHandler
qpa.classes

Code

public function __construct($form) {
  if (!is_array($form)) {
    throw new Exception('Expected form in constructor.');
  }

  // This is the form array
  $this->form = $form;

  // Matches is a numerically indexed array
  $this->matches[] = $form;
}