mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 05:31:42 +00:00
return file size of version where appropriate
This commit is contained in:
parent
c905e3a5eb
commit
ef902ee120
|
@ -140,6 +140,7 @@ function getLockedDocuments() { /* {{{ */
|
||||||
'name'=>$document->getName(),
|
'name'=>$document->getName(),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'comment'=>$document->getComment(),
|
'comment'=>$document->getComment(),
|
||||||
'keywords'=>$document->getKeywords(),
|
'keywords'=>$document->getKeywords(),
|
||||||
);
|
);
|
||||||
|
@ -249,6 +250,7 @@ function getFolderChildren($id) { /* {{{ */
|
||||||
'name'=>htmlspecialchars($document->getName()),
|
'name'=>htmlspecialchars($document->getName()),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'comment'=>$document->getComment(),
|
'comment'=>$document->getComment(),
|
||||||
'keywords'=>$document->getKeywords(),
|
'keywords'=>$document->getKeywords(),
|
||||||
);
|
);
|
||||||
|
@ -436,6 +438,7 @@ function getDocument($id) { /* {{{ */
|
||||||
'date'=>$document->getDate(),
|
'date'=>$document->getDate(),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'keywords'=>htmlspecialchars($document->getKeywords()),
|
'keywords'=>htmlspecialchars($document->getKeywords()),
|
||||||
);
|
);
|
||||||
$app->response()->header('Content-Type', 'application/json');
|
$app->response()->header('Content-Type', 'application/json');
|
||||||
|
@ -540,6 +543,7 @@ function getDocumentVersions($id) { /* {{{ */
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
'date'=>$lc->getDate(),
|
'date'=>$lc->getDate(),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'comment'=>htmlspecialchars($lc->getComment()),
|
'comment'=>htmlspecialchars($lc->getComment()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -752,6 +756,7 @@ function doSearch() { /* {{{ */
|
||||||
'name'=>$document->getName(),
|
'name'=>$document->getName(),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'comment'=>$document->getComment(),
|
'comment'=>$document->getComment(),
|
||||||
'keywords'=>$document->getKeywords(),
|
'keywords'=>$document->getKeywords(),
|
||||||
);
|
);
|
||||||
|
@ -814,6 +819,7 @@ function doSearchByAttr() { /* {{{ */
|
||||||
'name'=>$document->getName(),
|
'name'=>$document->getName(),
|
||||||
'mimetype'=>$lc->getMimeType(),
|
'mimetype'=>$lc->getMimeType(),
|
||||||
'version'=>$lc->getVersion(),
|
'version'=>$lc->getVersion(),
|
||||||
|
'size'=>$lc->getFileSize(),
|
||||||
'comment'=>$document->getComment(),
|
'comment'=>$document->getComment(),
|
||||||
'keywords'=>$document->getKeywords(),
|
'keywords'=>$document->getKeywords(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user