X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/direct/php/classes/Profile.php diff --git a/examples/direct/php/classes/Profile.php b/examples/direct/php/classes/Profile.php index 67fdf2f7..f7494ca0 100644 --- a/examples/direct/php/classes/Profile.php +++ b/examples/direct/php/classes/Profile.php @@ -1,68 +1,68 @@ -'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 - ) - ); - } +'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