Changeset 7732 for trunk/prototype/rest


Ignore:
Timestamp:
01/11/13 08:56:08 (11 years ago)
Author:
pereira.jair
Message:

Ticket #3267 - Re-implementação do Recurso para utilizar a nova Agenda do Expresso.

Location:
trunk/prototype/rest/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/rest/core/ExpressoVersionResource.php

    r7342 r7732  
    22 
    33class ExpressoVersionResource extends ExpressoAdapter {          
     4 
     5        public function get ($request) { 
     6                return $this->post($request); 
     7        } 
     8 
    49        public function post($request){ 
    510                // to Receive POST Params (use $this->params) 
  • trunk/prototype/rest/core/LoginResource.php

    r7342 r7732  
    55        private function getUserProfile(){ 
    66                if($this->getExpressoVersion() != "2.2") { 
     7 
    78                        $_SESSION['wallet']['user']['uidNumber'] = $GLOBALS['phpgw_info']['user']['account_id']; 
     9                        $_SESSION['wallet']['user']['uid'] = $GLOBALS['phpgw_info']['user']['account_lid']; 
     10                        $_SESSION['wallet']['user']['password'] = $GLOBALS['phpgw_info']['user']['password']; 
     11                        $_SESSION['wallet']['user']['cn'] = $GLOBALS['phpgw_info']['user']['fullname']; 
     12                        $_SESSION['wallet']['user']['mail'] = $GLOBALS['phpgw_info']['user']['email']; 
     13 
    814                } 
    915         
     
    4450                                'profile'               => array($this->getUserProfile()) 
    4551                        ); 
     52 
    4653                        $this->setResult($result); 
    4754                } 
Note: See TracChangeset for help on using the changeset viewer.