Ejemplo n.º 1
0
 public static function toJSON($userID)
 {
     $realName = Zotero_Users::getRealName($userID);
     $json = ['id' => $userID, 'username' => Zotero_Users::getUsername($userID), 'name' => $realName !== false ? $realName : ""];
     $json['links'] = ['alternate' => ['href' => Zotero_URI::getUserURI($userID, true), 'type' => 'text/html']];
     return $json;
 }