5 * Handler for client side form sumbit
\r
6 * @param Array $formPacket Collection of form items along with direct data
\r
7 * @return Array response packet
\r
9 function updateBasicInfo($formPacket){
\r
10 $response = array();
\r
11 $email = $formPacket['email'];
\r
12 if ($email == 'aaron@extjs.com') {
\r
14 $response['errors'] = array(
\r
15 'email'=>'already taken'
\r
20 $response['success'] = $success;
\r
21 // return form packet for demonstration/testing purposes
\r
22 $response['debug_formPacket'] = $formPacket;
\r
27 * put your comment there...
\r
28 * This method configured with len=2, so 2 arguments will be sent
\r
29 * in the order according to the client side specified paramOrder
\r
30 * @param Number $userId
\r
31 * @param String $foo
\r
32 * @return Array response packet
\r
34 function getBasicInfo($userId, $foo){
\r
39 'name'=>'Aaron Conran',
\r
40 'company'=>'Ext JS, LLC',
\r
41 'email'=>'aaron@extjs.com'
\r
46 function getPhoneInfo($userId) {
\r
50 'cell'=>'443-555-1234',
\r
51 'office'=>'1-800-CALLEXT',
\r
57 function getLocationInfo($userId) {
\r
61 'street'=>'1234 Red Dog Rd.',
\r