original_string: private function getGoalsHtml(&$goals) {
      $html = '<h3>Goals Collections</h3>' .
              $this->getCollectionInfoHtml($goals);
  
      $items = $goals->getItems();
  
      if (count($items) == 0) {
        $html .= '<p>No Goals Found</p>';
  
      } else {
        foreach ($items as &$goal) {
          $html .= <<<HTML
  <hr>
  <pre>
  Goal ID   = {$goal->getId()}
  Kind      = {$goal->getKind()}
  Self Link = {$goal->getSelfLink()}
  
  Account ID               = {$goal->getAccountId()}
  Web Property ID          = {$goal->getWebPropertyId()}
  Internal Web Property ID = {$goal->getInternalWebPropertyId()}
  Profile ID
  
  Goal Name   = {$goal->getName()}
  Goal Value  = {$goal->getValue()}
  Goal Active = {$goal->getActive()}
  Goal Type   = {$goal->getType()}
  
  Created = {$goal->getCreated()}
  Updated = {$goal->getUpdated()}
  
  Parent Link
  Parent link href = {$goal->getParentLink()->getHref()}
  Parent link type = {$goal->getParentLink()->getHref()}
  </pre>
  HTML;
  
          // Now get the HTML for the type of goal.
          switch($goal->getType()) {
            case 'URL_DESTINATION':
              $html .= $this->getUrlDestinationDetailsHtml(
                  $goal->getUrlDestinationDetails());
              break;
            case 'VISIT_TIME_ON_SITE':
              $html .= $this->getVisitTimeOnSiteDetailsHtml(
                  $goal->getVisitTimeOnSiteDetails());
              break;
            case 'VISIT_NUM_PAGES':
              $html .= $this->getVisitNumPagesDetailsHtml(
                  $goal->getVisitNumPagesDetails());
              break;
            case 'EVENT':
              $html .= $this->getEventDetailsHtml(
                  $goal->getEventDetails());
              break;
          }
        }
      }
      return $html;
    }
code: private function getGoalsHtml(&$goals) {
      $html = '<h3>Goals Collections</h3>' .
              $this->getCollectionInfoHtml($goals);
  
      $items = $goals->getItems();
  
      if (count($items) == 0) {
        $html .= '<p>No Goals Found</p>';
  
      } else {
        foreach ($items as &$goal) {
          $html .= <<<HTML
  <hr>
  <pre>
  Goal ID   = {$goal->getId()}
  Kind      = {$goal->getKind()}
  Self Link = {$goal->getSelfLink()}
  
  Account ID               = {$goal->getAccountId()}
  Web Property ID          = {$goal->getWebPropertyId()}
  Internal Web Property ID = {$goal->getInternalWebPropertyId()}
  Profile ID
  
  Goal Name   = {$goal->getName()}
  Goal Value  = {$goal->getValue()}
  Goal Active = {$goal->getActive()}
  Goal Type   = {$goal->getType()}
  
  Created = {$goal->getCreated()}
  Updated = {$goal->getUpdated()}
  
  Parent Link
  Parent link href = {$goal->getParentLink()->getHref()}
  Parent link type = {$goal->getParentLink()->getHref()}
  </pre>
  HTML;
  
          // Now get the HTML for the type of goal.
          switch($goal->getType()) {
            case 'URL_DESTINATION':
              $html .= $this->getUrlDestinationDetailsHtml(
                  $goal->getUrlDestinationDetails());
              break;
            case 'VISIT_TIME_ON_SITE':
              $html .= $this->getVisitTimeOnSiteDetailsHtml(
                  $goal->getVisitTimeOnSiteDetails());
              break;
            case 'VISIT_NUM_PAGES':
              $html .= $this->getVisitNumPagesDetailsHtml(
                  $goal->getVisitNumPagesDetails());
              break;
            case 'EVENT':
              $html .= $this->getEventDetailsHtml(
                  $goal->getEventDetails());
              break;
          }
        }
      }
      return $html;
    }
code_tokens: private function getGoalsHtml ( & $ goals ) { $ html = '<h3>Goals Collections</h3>' . $ this -> getCollectionInfoHtml ( $ goals ) ; $ items = $ goals -> getItems ( ) ; if ( count ( $ items ) == 0 ) { $ html .= '<p>No Goals Found</p>' ; } else { foreach ( $ items as & $ goal ) { $ html .=  <<<HTML
  <hr>
  <pre>
  Goal ID   = {$goal->getId()}
  Kind      = {$goal->getKind()}
  Self Link = {$goal->getSelfLink()}
  
  Account ID               = {$goal->getAccountId()}
  Web Property ID          = {$goal->getWebPropertyId()}
  Internal Web Property ID = {$goal->getInternalWebPropertyId()}
  Profile ID
  
  Goal Name   = {$goal->getName()}
  Goal Value  = {$goal->getValue()}
  Goal Active = {$goal->getActive()}
  Goal Type   = {$goal->getType()}
  
  Created = {$goal->getCreated()}
  Updated = {$goal->getUpdated()}
  
  Parent Link
  Parent link href = {$goal->getParentLink()->getHref()}
  Parent link type = {$goal->getParentLink()->getHref()}
  </pre>
  HTML ; // Now get the HTML for the type of goal. switch ( $ goal -> getType ( ) ) { case 'URL_DESTINATION' : $ html .= $ this -> getUrlDestinationDetailsHtml ( $ goal -> getUrlDestinationDetails ( ) ) ; break ; case 'VISIT_TIME_ON_SITE' : $ html .= $ this -> getVisitTimeOnSiteDetailsHtml ( $ goal -> getVisitTimeOnSiteDetails ( ) ) ; break ; case 'VISIT_NUM_PAGES' : $ html .= $ this -> getVisitNumPagesDetailsHtml ( $ goal -> getVisitNumPagesDetails ( ) ) ; break ; case 'EVENT' : $ html .= $ this -> getEventDetailsHtml ( $ goal -> getEventDetails ( ) ) ; break ; } } } return $ html ; }
docstring: Returns important information from the goals collection.
  @param Goals $goals The result from the API.
  @return string An HTML representation.
docstring_tokens: Returns important information from the goals collection .