mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Fix OCP\Util documentation blocks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b3cd9b5573
commit
d90b31401c
1 changed files with 8 additions and 0 deletions
|
|
@ -630,7 +630,10 @@ class Util {
|
|||
}
|
||||
|
||||
/**
|
||||
* Compute the fileId to use for dav responses
|
||||
*
|
||||
* @param int $id Id of the file returned by FileInfo::getId
|
||||
* @since 25.0.0
|
||||
*/
|
||||
public static function getDavFileId(int $id): string {
|
||||
$instanceId = \OC_Util::getInstanceId();
|
||||
|
|
@ -638,6 +641,11 @@ class Util {
|
|||
return $id . $instanceId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Compute the format needed for returning permissions for dav
|
||||
*
|
||||
* @since 25.0.0
|
||||
*/
|
||||
public static function getDavPermissions(\OCP\Files\FileInfo $info): string {
|
||||
$p = '';
|
||||
if ($info->isShared()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue