source: sandbox/2.4.1-3/prototype/me.php @ 6351

Revision 6351, 727 bytes checked in by gustavo, 12 years ago (diff)

Ticket #2768 - Melhorias na inserção de destinatários na criacao de mensagem

Line 
1<?php
2
3require_once  (dirname(__FILE__).'/api/controller.php');
4
5$me = Controller::read(array('concept' => 'user', 'service' => 'OpenLDAP'  , 'id' => Config::me('uidNumber')));
6$me['token'] = $_SESSION['oauth']['access_token'];
7
8echo json_encode( $me );
9
10// if( !$me )
11//     return;
12//
13// $links = Controller::links();
14//
15// $return = array();
16//
17// foreach( $links as $concept => $link )
18// {
19//     $concepts = array();
20//
21//     foreach( $link as $linkName => $linkTarget )
22//       if( Controller::isConcept( $linkName ) )
23//          $concepts[ $linkName ] = true;
24//
25//      $return[ $concept ] = array( 'concepts' => $concepts, 'links' => $link );
26// }
27//
28// echo json_encode( array( 'me' => $me, 'links' => $return ) );
Note: See TracBrowser for help on using the repository browser.