original_string: protected function getGoalSpecificDataTable($recordName, $idSite, $period, $date, $segment, $idGoal)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $archive = Archive::build($idSite, $period, $date, $segment);
  
          // check for the special goal ids
          $realGoalId = $idGoal != true ? false : self::convertSpecialGoalIds($idGoal);
  
          // get the data table
          $dataTable = $archive->getDataTable(Archiver::getRecordName($recordName, $realGoalId), $idSubtable = null);
          $dataTable->queueFilter('ReplaceColumnNames');
  
          return $dataTable;
      }
code: protected function getGoalSpecificDataTable($recordName, $idSite, $period, $date, $segment, $idGoal)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $archive = Archive::build($idSite, $period, $date, $segment);
  
          // check for the special goal ids
          $realGoalId = $idGoal != true ? false : self::convertSpecialGoalIds($idGoal);
  
          // get the data table
          $dataTable = $archive->getDataTable(Archiver::getRecordName($recordName, $realGoalId), $idSubtable = null);
          $dataTable->queueFilter('ReplaceColumnNames');
  
          return $dataTable;
      }
code_tokens: protected function getGoalSpecificDataTable ( $ recordName , $ idSite , $ period , $ date , $ segment , $ idGoal ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ archive = Archive :: build ( $ idSite , $ period , $ date , $ segment ) ; // check for the special goal ids $ realGoalId = $ idGoal != true ? false : self :: convertSpecialGoalIds ( $ idGoal ) ; // get the data table $ dataTable = $ archive -> getDataTable ( Archiver :: getRecordName ( $ recordName , $ realGoalId ) , $ idSubtable = null ) ; $ dataTable -> queueFilter ( 'ReplaceColumnNames' ) ; return $ dataTable ; }
docstring: Utility method that retrieve an archived DataTable for a specific site, date range,
  segment and goal. If not goal is specified, this method will retrieve and sum the
  data for every goal.
  
  @param string $recordName The archive entry name.
  @param int|string $idSite The site(s) to select data for.
  @param string $period The period type.
  @param string $date The date type.
  @param string $segment The segment.
  @param int|bool $idGoal The id of the goal to get data for. If this is set to false,
  data for every goal that belongs to $idSite is returned.
  @return false|DataTable
docstring_tokens: Utility method that retrieve an archived DataTable for a specific site date range segment and goal . If not goal is specified this method will retrieve and sum the data for every goal .