diff options
author | Robin Appelman <robin@icewind.nl> | 2018-09-10 14:40:35 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-10-17 14:56:45 +0200 |
commit | 4adac445dc57d1ccc7f26e21018e1e731e5b1654 (patch) | |
tree | b3da061a9332a1ebca2809a61ea3cf186d9fb259 /resources | |
parent | 2634ceb35b72eac94e6bf4c61640036392c5f97f (diff) | |
download | nextcloud-server-4adac445dc57d1ccc7f26e21018e1e731e5b1654.tar.gz nextcloud-server-4adac445dc57d1ccc7f26e21018e1e731e5b1654.zip |
fix select statement
fix select statement
Make trashbin api modules
Apps can register trashbin backends for specific storages,
allowing them to modify trashbin behavior for storages
The old trashbin implementation has been wrapped in a "legacy" backend,
for future work this can be replaced with a new backend that better handles
shares while still keeping the legacy backend around to keep existing trash
from being accessible
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/app-info.xsd | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/resources/app-info.xsd b/resources/app-info.xsd index 5c2ab89e213..fa06752c01d 100644 --- a/resources/app-info.xsd +++ b/resources/app-info.xsd @@ -61,6 +61,8 @@ maxOccurs="1" /> <xs:element name="sabre" type="sabre" minOccurs="0" maxOccurs="1" /> + <xs:element name="trash" type="trash" minOccurs="0" + maxOccurs="1" /> </xs:sequence> </xs:complexType> <xs:unique name="uniqueNameL10n"> @@ -653,11 +655,25 @@ </xs:sequence> </xs:complexType> + <xs:complexType name="trash"> + <xs:sequence> + <xs:element name="backend" type="trash-backend" minOccurs="1" + maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="trash-backend"> + <xs:simpleContent> + <xs:extension base="php-class"> + <xs:attribute name="for" type="php-class" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:simpleType name="php-class"> <xs:restriction base="xs:string"> <xs:pattern value="[a-zA-Z_][0-9a-zA-Z_]*(\\[a-zA-Z_][0-9a-zA-Z_]*)*"/> </xs:restriction> </xs:simpleType> - </xs:schema> |