2014-11-18 17:06:39 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-06-02 09:26:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2014-11-18 17:06:39 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCA\Files_Trashbin;
|
|
|
|
|
|
2015-03-21 15:12:55 -04:00
|
|
|
use OCP\Capabilities\ICapability;
|
2014-11-18 17:06:39 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Capabilities
|
|
|
|
|
*
|
|
|
|
|
* @package OCA\Files_Trashbin
|
|
|
|
|
*/
|
2015-03-21 15:12:55 -04:00
|
|
|
class Capabilities implements ICapability {
|
2014-11-18 17:06:39 -05:00
|
|
|
|
|
|
|
|
/**
|
2015-03-21 15:12:55 -04:00
|
|
|
* Return this classes capabilities
|
2023-06-14 10:36:05 -04:00
|
|
|
*
|
|
|
|
|
* @return array{files: array{undelete: bool}}
|
2014-11-18 17:06:39 -05:00
|
|
|
*/
|
2015-03-21 15:12:55 -04:00
|
|
|
public function getCapabilities() {
|
|
|
|
|
return [
|
|
|
|
|
'files' => [
|
|
|
|
|
'undelete' => true
|
|
|
|
|
]
|
|
|
|
|
];
|
2014-11-18 17:06:39 -05:00
|
|
|
}
|
|
|
|
|
}
|