Ignore:
Timestamp:
05/08/12 18:37:32 (12 years ago)
Author:
niltonneto
Message:

Ticket #2507 - Restruturado diretório para alinhamento com projeto REST.

Location:
sandbox/webservice/api/rest/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/rest/core/ExpressoVersionResource.php

    r6019 r6148  
    66                parent::post($request);                   
    77                 
    8                 $result = array('expressoVersion' =>  $this->expressoVersion); 
     8                $result = array('expressoVersion' =>  $this->getExpressoVersion()); 
    99                $this->setResult($result); 
    1010 
  • sandbox/webservice/api/rest/core/LoginResource.php

    r6061 r6148  
    11<?php 
    22 
    3 class LoginResource extends Expresso {   
     3class LoginResource extends Expresso { 
     4 
     5        private function getUserProfile(){ 
     6                $user_id = $GLOBALS['phpgw_info']['user']['account_id']['acl']; 
     7                $acl = CreateObject('phpgwapi.acl'); 
     8                $apps = $acl->get_user_applications($user_id); 
     9                $contactApps = array(); 
     10                foreach($apps as $app => $isEnabled){ 
     11                        if($isEnabled) 
     12                                $contactApps[] = $app; 
     13                } 
     14         
     15                return array( 
     16                                'contactID'                     => $GLOBALS['phpgw_info']['user']['account_dn'], 
     17                                'contactMails'          => array($GLOBALS['phpgw_info']['user']['email']), 
     18                                'contactPhones'         => array($GLOBALS['phpgw_info']['user']['telephonenumber']), 
     19                                'contactFullName'       => $GLOBALS['phpgw_info']['user']['fullname'], 
     20                                'contactApps'           => $contactApps 
     21                ); 
     22        } 
     23         
    424        public function post($request){ 
    525                // to Receive POST Params (use $this->params) 
Note: See TracChangeset for help on using the changeset viewer.