From 29ab8cebdbc11563be7f9dfb1f5c3314f8715b43 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 1 Jun 2013 17:28:49 +0100 Subject: [PATCH] Parse POST data. --- haxe/ItemScheduler.hx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index 06b0b9c..c767bda 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -20,14 +20,26 @@ class ScheduleParameters { rowDetails = new Hash(); var position = 1; for(id in row_ids) { + var d : Dynamic = data.get(id); + //var o = php.Lib.objectOfAssociativeArray(d); + php.Lib.dump(d); + php.Lib.print('
'); + + var quantity : Int = null; + if(d != null) { + var o = php.Lib.objectOfAssociativeArray(d); + quantity = Std.parseInt(o.quantity); + } + + rowDetails.set(id, { id: id - ,quantity: null + ,quantity: quantity ,position: position++ }); } } - php.Lib.dump(rowDetails); + //php.Lib.dump(rowDetails); } public function position(id: String) : Int { -- 2.30.2