'Shopping', 2 => 'Pending', 3 => 'Paid', 4 => 'Processing', 5 => 'Packaged', 6 => 'Shipped', 7 => 'Cancelled', 8 => 'Returned', 9 => 'Problem'); public static $TokenArray = array( 1 => 'Shopping', 2 => 'Pending', 3 => 'Paid', 4 => 'Processing', 5 => 'Packaged', 6 => 'Shipped', 7 => 'Cancelled', 8 => 'Returned', 9 => 'Problem'); public static function ToString($intOrderStatusTypeId) { switch ($intOrderStatusTypeId) { case 1: return 'Shopping'; case 2: return 'Pending'; case 3: return 'Paid'; case 4: return 'Processing'; case 5: return 'Packaged'; case 6: return 'Shipped'; case 7: return 'Cancelled'; case 8: return 'Returned'; case 9: return 'Problem'; default: throw new QCallerException(sprintf('Invalid intOrderStatusTypeId: %s', $intOrderStatusTypeId)); } } public static function ToToken($intOrderStatusTypeId) { switch ($intOrderStatusTypeId) { case 1: return 'Shopping'; case 2: return 'Pending'; case 3: return 'Paid'; case 4: return 'Processing'; case 5: return 'Packaged'; case 6: return 'Shipped'; case 7: return 'Cancelled'; case 8: return 'Returned'; case 9: return 'Problem'; default: throw new QCallerException(sprintf('Invalid intOrderStatusTypeId: %s', $intOrderStatusTypeId)); } } } ?>