Changeset 6148 for sandbox/webservice/api/rest/core
- Timestamp:
- 05/08/12 18:37:32 (12 years ago)
- Location:
- sandbox/webservice/api/rest/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/rest/core/ExpressoVersionResource.php
r6019 r6148 6 6 parent::post($request); 7 7 8 $result = array('expressoVersion' => $this-> expressoVersion);8 $result = array('expressoVersion' => $this->getExpressoVersion()); 9 9 $this->setResult($result); 10 10 -
sandbox/webservice/api/rest/core/LoginResource.php
r6061 r6148 1 1 <?php 2 2 3 class LoginResource extends Expresso { 3 class 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 4 24 public function post($request){ 5 25 // to Receive POST Params (use $this->params)
Note: See TracChangeset
for help on using the changeset viewer.