aboutsummaryrefslogtreecommitdiffstats
path: root/gsxlib.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-03-15 10:02:33 +0200
committerFilipp Lepalaan <f@230.to>2013-03-15 10:02:33 +0200
commit6495c80513a9a89eb437d0dbdf12af790d5795f1 (patch)
treedd069eaa412c2bb126c03cdb97dae266577e812f /gsxlib.php
parentb31003541e538d499a5e1dddc250e34e5a26282c (diff)
downloadgsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.tar.gz
gsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.tar.bz2
gsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.zip
Added fileData support for createCarryInRepair()
Diffstat (limited to 'gsxlib.php')
-rw-r--r--gsxlib.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/gsxlib.php b/gsxlib.php
index 43ba53a..fae862e 100644
--- a/gsxlib.php
+++ b/gsxlib.php
@@ -192,6 +192,16 @@ class GsxLib
public function createCarryInRepair($repairData)
{
+ if( $repairData['fileData'] && file_exists( $repairData['fileData'] ))
+ {
+ $fp = $repairData['fileData'];
+ $fh = fopen($fp, "r");
+ $contents = fread($fh, filesize($fp));
+ $repairData['fileData'] = $contents;
+ $repairData['fileName'] = basename($fp);
+ fclose($fh);
+ }
+
$resp = $this->client->CreateCarryInRepair(
array('CreateCarryInRequest' => array(
'userSession' => array('userSessionId' => $this->getSessionId()),