diff options
author | Filipp Lepalaan <f@230.to> | 2013-03-15 10:02:33 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-03-15 10:02:33 +0200 |
commit | 6495c80513a9a89eb437d0dbdf12af790d5795f1 (patch) | |
tree | dd069eaa412c2bb126c03cdb97dae266577e812f /gsxlib.php | |
parent | b31003541e538d499a5e1dddc250e34e5a26282c (diff) | |
download | gsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.tar.gz gsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.tar.bz2 gsxlib-6495c80513a9a89eb437d0dbdf12af790d5795f1.zip |
Added fileData support for createCarryInRepair()
Diffstat (limited to 'gsxlib.php')
-rw-r--r-- | gsxlib.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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()), |