Upgrade to ExtJS 3.3.0 - Released 10/06/2010
[extjs.git] / examples / direct / php / classes / Profile.php
index 67fdf2f..f7494ca 100644 (file)
@@ -1,68 +1,68 @@
-<?php\r
-class Profile {\r
-\r
-    /**\r
-    * Handler for client side form sumbit\r
-    * @param Array $formPacket Collection of form items along with direct data\r
-    * @return Array response packet\r
-    */\r
-    function updateBasicInfo($formPacket){\r
-        $response = array();\r
-        $email = $formPacket['email'];\r
-        if ($email == 'aaron@extjs.com') {\r
-            $success = false;\r
-            $response['errors'] = array(\r
-                'email'=>'already taken'\r
-            );\r
-        } else {\r
-            $success = true;\r
-        }\r
-        $response['success'] = $success;\r
-        // return form packet for demonstration/testing purposes\r
-        $response['debug_formPacket'] = $formPacket;\r
-        return $response;\r
-    }\r
-\r
-    /**\r
-    * put your comment there...\r
-    * This method configured with len=2, so 2 arguments will be sent\r
-    * in the order according to the client side specified paramOrder\r
-    * @param Number $userId\r
-    * @param String $foo\r
-    * @return Array response packet\r
-    */\r
-    function getBasicInfo($userId, $foo){\r
-        return array(\r
-            'success'=>true,\r
-            'data'=>array(\r
-                'foo'=>$foo,\r
-                'name'=>'Aaron Conran',\r
-                'company'=>'Ext JS, LLC',\r
-                'email'=>'aaron@extjs.com'\r
-             )\r
-        );\r
-    }\r
-\r
-    function getPhoneInfo($userId) {\r
-        return array(\r
-            'success'=>true,\r
-            'data'=>array(\r
-                'cell'=>'443-555-1234',\r
-                'office'=>'1-800-CALLEXT',\r
-                'home'=>''\r
-            )\r
-        );\r
-    }\r
-\r
-    function getLocationInfo($userId) {\r
-        return array(\r
-            'success'=>true,\r
-            'data'=>array(\r
-                'street'=>'1234 Red Dog Rd.',\r
-                'city'=>'Seminole',\r
-                'state'=>'FL',\r
-                'zip'=>33776\r
-            )\r
-        );\r
-    }\r
+<?php
+class Profile {
+
+    /**
+    * Handler for client side form sumbit
+    * @param Array $formPacket Collection of form items along with direct data
+    * @return Array response packet
+    */
+    function updateBasicInfo($formPacket){
+        $response = array();
+        $email = $formPacket['email'];
+        if ($email == 'aaron@extjs.com') {
+            $success = false;
+            $response['errors'] = array(
+                'email'=>'already taken'
+            );
+        } else {
+            $success = true;
+        }
+        $response['success'] = $success;
+        // return form packet for demonstration/testing purposes
+        $response['debug_formPacket'] = $formPacket;
+        return $response;
+    }
+
+    /**
+    * put your comment there...
+    * This method configured with len=2, so 2 arguments will be sent
+    * in the order according to the client side specified paramOrder
+    * @param Number $userId
+    * @param String $foo
+    * @return Array response packet
+    */
+    function getBasicInfo($userId, $foo){
+        return array(
+            'success'=>true,
+            'data'=>array(
+                'foo'=>$foo,
+                'name'=>'Aaron Conran',
+                'company'=>'Ext JS, LLC',
+                'email'=>'aaron@extjs.com'
+             )
+        );
+    }
+
+    function getPhoneInfo($userId) {
+        return array(
+            'success'=>true,
+            'data'=>array(
+                'cell'=>'443-555-1234',
+                'office'=>'1-800-CALLEXT',
+                'home'=>''
+            )
+        );
+    }
+
+    function getLocationInfo($userId) {
+        return array(
+            'success'=>true,
+            'data'=>array(
+                'street'=>'1234 Red Dog Rd.',
+                'city'=>'Seminole',
+                'state'=>'FL',
+                'zip'=>33776
+            )
+        );
+    }
 }
\ No newline at end of file