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/Controller/Share20OcsController.php 1 location
|
@@ 118-125 (lines=8) @@
|
| 115 |
|
* @param IUser $user user for which to retrieve the additional info |
| 116 |
|
* @return string|null additional info or null if none to be displayed |
| 117 |
|
*/ |
| 118 |
|
private function getAdditionalUserInfo(IUser $user) { |
| 119 |
|
if ($this->additionalInfoField === 'email') { |
| 120 |
|
return $user->getEMailAddress(); |
| 121 |
|
} elseif ($this->additionalInfoField === 'id') { |
| 122 |
|
return $user->getUID(); |
| 123 |
|
} |
| 124 |
|
return null; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
/** |
| 128 |
|
* Convert an IShare to an array for OCS output |