You are here

public function AnalyticData::getEventName in Analytics 6

Return the name of an event.

Return value

string

File

includes/analyticdata.inc, line 76
Class definition for analytics.

Class

AnalyticData
@file Class definition for analytics.

Code

public function getEventName() {
  $name = db_select('analytics_events', 'ae')
    ->fields('ae', array(
    'event_name',
  ))
    ->condition('id', $this->event_id)
    ->range(0, 1)
    ->execute()
    ->fetchField();
  return $name;
}