Skip to content

Commit

Permalink
Pulled in the latest version of the API Utility code.
Browse files Browse the repository at this point in the history
  • Loading branch information
woocash committed Apr 28, 2010
1 parent b70447e commit d13821d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion call-lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ public static function getCSVData($xml_obj, $uniqueHeaders, $print, $headers) {
global $TEXT_QUALIFIER;

$resultRecords = $xml_obj->xpath("//" . $defaultApiNamespace . ":records");
return getCSVDataFromRecords($resultRecords, $uniqueHeaders, $print, $headers);
return ZuoraAPIHelper::getCSVDataFromRecords($resultRecords, $uniqueHeaders, $print, $headers);
/*
#Fill in the data.
$temp = "";
Expand Down Expand Up @@ -1121,6 +1121,23 @@ public static function getTableJoinKeyIndexes($table1Data, $table2Data, $key = "
return array($found, $index1, $index2);
}

################################################################################
# Helper call that finds the indexes of keys in two arrays. Used for deciding if
# the join will be innner or outer join.
public static function getTableJoinKeyIndex($tableData, $key = "") {
if (strlen($key) <= 0) {
return -1;
}
$counter = 0;
foreach($tableData[0] as $header) {
if (strcasecmp($key,$header) == 0) {
return $counter;
}
$counter++;
}
return -1;
}

################################################################################
# Helper call that joins two arrays, each with headers that contain the link column.
# Returns a 2-dimensional array with the result.
Expand Down

0 comments on commit d13821d

Please sign in to comment.