'Ordered', 2 => 'Processing', 3 => 'BackOrdered', 4 => 'Shipped', 5 => 'Returned', 6 => 'Cancelled', 7 => 'Internal'); public static $TokenArray = array( 1 => 'Ordered', 2 => 'Processing', 3 => 'BackOrdered', 4 => 'Shipped', 5 => 'Returned', 6 => 'Cancelled', 7 => 'Internal'); public static function ToString($intOrderItemStatusTypeId) { switch ($intOrderItemStatusTypeId) { case 1: return 'Ordered'; case 2: return 'Processing'; case 3: return 'BackOrdered'; case 4: return 'Shipped'; case 5: return 'Returned'; case 6: return 'Cancelled'; case 7: return 'Internal'; default: throw new QCallerException(sprintf('Invalid intOrderItemStatusTypeId: %s', $intOrderItemStatusTypeId)); } } public static function ToToken($intOrderItemStatusTypeId) { switch ($intOrderItemStatusTypeId) { case 1: return 'Ordered'; case 2: return 'Processing'; case 3: return 'BackOrdered'; case 4: return 'Shipped'; case 5: return 'Returned'; case 6: return 'Cancelled'; case 7: return 'Internal'; default: throw new QCallerException(sprintf('Invalid intOrderItemStatusTypeId: %s', $intOrderItemStatusTypeId)); } } } ?>