private function getEventDetailsHtml(&$details) {
    $html = '<h4>Event Goal</h4><pre>' .
            'Use Event Value = ' . $details->getUseEventValue();

    // Get all the event goal conditions.
    $conditions = $details->getEventConditions();

    // String condition types.
    $stringTypes = array('CATEGORY', 'ACTION', 'LABEL');

    foreach ($conditions as &$condition) {
      $html .= "Event Type = $condition->getEventType()";

      $eventType = $condition->getType();
      if (in_array($eventType, $stringTypes)) {
        // Process CATEGORY, ACTION, LABEL.
        $html .= "Match Type = $condition->getMatchType()" .
                 "Expression = $condition->getExpression()";
      } else {
        // Process VALUE.
        $html .= "Comparison Type  = $condition->getComparisonType()" .
                 "Comparison Value = $condition->getComparisonValue()";
      }
    }

    return $html . '</pre>';
  }
private function getEventDetailsHtml(&$details) {
    $html = '<h4>Event Goal</h4><pre>' .
            'Use Event Value = ' . $details->getUseEventValue();

    // Get all the event goal conditions.
    $conditions = $details->getEventConditions();

    // String condition types.
    $stringTypes = array('CATEGORY', 'ACTION', 'LABEL');

    foreach ($conditions as &$condition) {
      $html .= "Event Type = $condition->getEventType()";

      $eventType = $condition->getType();
      if (in_array($eventType, $stringTypes)) {
        // Process CATEGORY, ACTION, LABEL.
        $html .= "Match Type = $condition->getMatchType()" .
                 "Expression = $condition->getExpression()";
      } else {
        // Process VALUE.
        $html .= "Comparison Type  = $condition->getComparisonType()" .
                 "Comparison Value = $condition->getComparisonValue()";
      }
    }

    return $html . '</pre>';
  }
private function getEventDetailsHtml ( & $ details ) { $ html = '<h4>Event Goal</h4><pre>' . 'Use Event Value = ' . $ details -> getUseEventValue ( ) ; // Get all the event goal conditions. $ conditions = $ details -> getEventConditions ( ) ; // String condition types. $ stringTypes = array ( 'CATEGORY' , 'ACTION' , 'LABEL' ) ; foreach ( $ conditions as & $ condition ) { $ html .= "Event Type = $condition->getEventType()" ; $ eventType = $ condition -> getType ( ) ; if ( in_array ( $ eventType , $ stringTypes ) ) { // Process CATEGORY, ACTION, LABEL. $ html .= "Match Type = $condition->getMatchType()" . "Expression = $condition->getExpression()" ; } else { // Process VALUE. $ html .= "Comparison Type  = $condition->getComparisonType()" . "Comparison Value = $condition->getComparisonValue()" ; } } return $ html . '</pre>' ; }
Returns important information for event goals.
@param Google_GoalEventDetails $details The result from the API.
@return string An HTML representation.
Returns important information for event goals .