@@ -118,6 +118,9 @@ public function getPropertyDefinitionsForScope($href, $path) {
118
118
new SearchPropertyDefinition ('{DAV:}displayname ' , true , true , true ),
119
119
new SearchPropertyDefinition ('{DAV:}getcontenttype ' , true , true , true ),
120
120
new SearchPropertyDefinition ('{DAV:}getlastmodified ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
121
+ new SearchPropertyDefinition ('{DAV:}creationdate ' , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
122
+ new SearchPropertyDefinition (FilesPlugin::CREATION_TIME_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
123
+ new SearchPropertyDefinition (FilesPlugin::UPLOAD_TIME_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_DATETIME ),
121
124
new SearchPropertyDefinition (FilesPlugin::SIZE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
122
125
new SearchPropertyDefinition (TagsPlugin::FAVORITE_PROPERTYNAME , true , true , true , SearchPropertyDefinition::DATATYPE_BOOLEAN ),
123
126
new SearchPropertyDefinition (FilesPlugin::INTERNAL_FILEID_PROPERTYNAME , true , true , false , SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER ),
@@ -249,6 +252,11 @@ private function getSearchResultProperty(SearchResult $result, SearchPropertyDef
249
252
return $ node ->getName ();
250
253
case '{DAV:}getlastmodified ' :
251
254
return $ node ->getLastModified ();
255
+ case '{DAV:}creationdate ' :
256
+ case FilesPlugin::CREATION_TIME_PROPERTYNAME :
257
+ return $ node ->getFileInfo ()->getCreationTime ();
258
+ case FilesPlugin::UPLOAD_TIME_PROPERTYNAME :
259
+ return $ node ->getFileInfo ()->getUploadTime ();
252
260
case FilesPlugin::SIZE_PROPERTYNAME :
253
261
return $ node ->getSize ();
254
262
case FilesPlugin::INTERNAL_FILEID_PROPERTYNAME :
@@ -351,6 +359,11 @@ private function mapPropertyNameToColumn(SearchPropertyDefinition $property) {
351
359
return 'mimetype ' ;
352
360
case '{DAV:}getlastmodified ' :
353
361
return 'mtime ' ;
362
+ case '{DAV:}creationdate ' :
363
+ case FilesPlugin::CREATION_TIME_PROPERTYNAME :
364
+ return 'creation_time ' ;
365
+ case FilesPlugin::UPLOAD_TIME_PROPERTYNAME :
366
+ return 'upload_time ' ;
354
367
case FilesPlugin::SIZE_PROPERTYNAME :
355
368
return 'size ' ;
356
369
case TagsPlugin::FAVORITE_PROPERTYNAME :
0 commit comments