diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-12-03 23:16:16 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-12-03 23:16:16 +0200 |
commit | 5ac597d3d0b3f44699f96b47bc6c62348f5b0d26 (patch) | |
tree | 235a6af4036bd1c216e5b610d3b1baa8ea9105d3 /gsxcl | |
parent | 6ffa28a28f11490f0e27dcdbbc67210d492fac0e (diff) | |
download | gsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.tar.gz gsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.tar.bz2 gsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.zip |
Added fetching product model, onsite dispatch details
Diffstat (limited to 'gsxcl')
-rwxr-xr-x | gsxcl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -18,7 +18,7 @@ if (FALSE) { error_reporting(E_ALL|E_STRICT); } -$modes = array('warranty', 'parts', 'pending', 'repair', 'lookup', 'status', 'label'); +$modes = array( 'warranty', 'parts', 'pending', 'repair', 'lookup', 'status', 'label', 'model', 'osdispatchdetail' ); $modes_str = implode(', ', $modes); require 'gsxlib.php'; @@ -97,6 +97,12 @@ switch ($mode) case 'comptia': $result = $gsx->compTiaCodes(); break; + case 'model': + $result = $gsx->productModel( $query ); + break; + case 'osdispatchdetail': + $result = $gsx->onsiteDispatchDetail( $query ); + break; case 'label': list($order, $part) = explode(':', $query); $result = $gsx->returnLabel($order, $part); |