apps/files_sharing/lib/Controller/ShareesController.php 1 location
|
@@ 255-262 (lines=8) @@
|
| 252 |
|
* @param IUser $user user for which to retrieve the additional info |
| 253 |
|
* @return string|null additional info or null if none to be displayed |
| 254 |
|
*/ |
| 255 |
|
protected function getAdditionalUserInfo(IUser $user) { |
| 256 |
|
if ($this->additionalInfoField === 'email') { |
| 257 |
|
return $user->getEMailAddress(); |
| 258 |
|
} elseif ($this->additionalInfoField === 'id') { |
| 259 |
|
return $user->getUID(); |
| 260 |
|
} |
| 261 |
|
return null; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
/** |
| 265 |
|
* @param string $search |
apps/files_sharing/lib/API/Share20OCS.php 1 location
|
@@ 132-139 (lines=8) @@
|
| 129 |
|
* @param IUser $user user for which to retrieve the additional info |
| 130 |
|
* @return string|null additional info or null if none to be displayed |
| 131 |
|
*/ |
| 132 |
|
private function getAdditionalUserInfo(IUser $user) { |
| 133 |
|
if ($this->additionalInfoField === 'email') { |
| 134 |
|
return $user->getEMailAddress(); |
| 135 |
|
} elseif ($this->additionalInfoField === 'id') { |
| 136 |
|
return $user->getUID(); |
| 137 |
|
} |
| 138 |
|
return null; |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
/** |
| 142 |
|
* Convert an IShare to an array for OCS output |