DeepLinksSerializer.as

Go to the documentation of this file.
00001 import gugga.application.ApplicationController;
00002 
00012 class gugga.common.DeepLinksSerializer 
00013 {
00014         private static var NAVIGATION_PATH_KEY : String = "navigationPath";
00015         
00016         public static function serializeCurrentNavigationPath(aOutput : Object) : Void  
00017         {
00018                 var applicationController : ApplicationController = ApplicationController(_global["ApplicationController"]);
00019                 var path : String = applicationController["mPendingSectionPath"];
00020                 if(!path)
00021                 {
00022                         path = applicationController.TargetSectionPath;
00023                 }
00024                 if(!path)
00025                 {
00026                         path = applicationController.CurrentSectionPath;
00027                 }
00028                 aOutput[NAVIGATION_PATH_KEY] = path;
00029         }
00030         
00031         public static function deserializeNavigationPath(aInput : Object) : String
00032         {
00033                 var result : String = aInput[NAVIGATION_PATH_KEY];
00034                 return result;
00035         }
00036 }

Generated on Fri May 11 17:12:42 2007 for GuggaFramework by  doxygen 1.5.2