aboutsummaryrefslogtreecommitdiffstats
path: root/gsxcl
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-12-03 23:16:16 +0200
committerFilipp Lepalaan <filipp@mac.com>2011-12-03 23:16:16 +0200
commit5ac597d3d0b3f44699f96b47bc6c62348f5b0d26 (patch)
tree235a6af4036bd1c216e5b610d3b1baa8ea9105d3 /gsxcl
parent6ffa28a28f11490f0e27dcdbbc67210d492fac0e (diff)
downloadgsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.tar.gz
gsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.tar.bz2
gsxlib-5ac597d3d0b3f44699f96b47bc6c62348f5b0d26.zip
Added fetching product model, onsite dispatch details
Diffstat (limited to 'gsxcl')
-rwxr-xr-xgsxcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/gsxcl b/gsxcl
index 6902d3c..7781f53 100755
--- a/gsxcl
+++ b/gsxcl
@@ -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);