You are here

public function Analytic::__construct in Analytics 6

Constructor to set event name and event ID.

Parameters

$event_name:

File

includes/analytic.inc, line 23
Class definition for analytics.

Class

Analytic
@file Class definition for analytics.

Code

public function __construct($event_name = NULL) {
  if ($event_name != NULL) {
    $this
      ->setEventName($event_name);
  }
}