summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/helper.php
Commit message (Collapse)AuthorAgeFilesLines
* Move Files app to PSR-4 (#24569)Joas Schilling2016-05-121-248/+0
| | | | | | * Move lib/ of Files app to PSR-4 * Move tests to PSR-4
* Happy new year!Thomas Müller2016-01-121-2/+3
|
* Removed deprecated OC_Helper::mimeTypeIcon functionRoeland Jago Douma2015-12-181-4/+4
|
* Make files app use Webdav for most operationsVincent Petry2015-11-221-3/+0
|
* Do not calculate non essential infoRoeland Jago Douma2015-10-131-2/+0
| | | | | | | | | | | | | There is no need to calculate a human readable date on the server side. We supply the mtime and a client can easily convert that himself if needed. This is already done most of the time since the date is often not in the exact right format. There is also no need to attach icon info. We have that available in javascript. And else the client should get the right icon based on the mimetype for its platform. * Updated tests
* Add owner to the storage stats to enable better notificationsMorris Jobke2015-06-051-1/+3
| | | | | * getstoragestats.php returns now the owner and it's display name * show proper storage stats notifications for shared folders
* fix filepickerMorris Jobke2015-04-131-2/+3
| | | | | | * add ability to filter for mimetype * fixes #15526 * fixes #11563
* Update license headersJenkins for ownCloud2015-03-261-4/+25
|
* Revert "Updating license headers"Morris Jobke2015-02-261-24/+5
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-5/+24
|
* Catch exception properlyLukas Reschke2015-02-041-7/+12
| | | | | | `\OCA\Files\Helper::buildFileStorageStatistics` might throw an exception from `OC_Helper::getStorageInfo`, previously this lead to a uncatched exception being thrown when invoking this methods. This was user triggable by for example calling `/index.php/apps/files/ajax/delete.php` with a not existing dir (for example `dir=asdf/../&allfiles=true`)
* Fix PHP doc and enforce typeLukas Reschke2015-01-131-3/+3
|
* Only populate tags in main file listVincent Petry2014-12-181-1/+0
| | | | | | Moved populateTags to be done on the main file list. This prevents the public file list to go through the same code and cause an error when there is no user.
* Added favorites feature to the files appVincent Petry2014-12-151-0/+25
|
* Merge remote-tracking branch 'upstream/master'brumsel2014-12-031-4/+7
|\
| * Add type hinting to functionsLukas Reschke2014-10-241-4/+7
| | | | | | | | It's only reasonable to have proper type hinting here which might even help us to catch bugs.
* | Fix timestamp comparator return valuebrumsoel2014-10-081-1/+1
|/
* Fix file size comparator return valuebrumsoel2014-10-081-1/+1
|
* Merge pull request #7254 from owncloud/core-sortalgoLukas Reschke2014-09-161-1/+1
|\ | | | | Fixed JS sort comparator to be consistent between JS and PHP
| * Fixed file list sortingVincent Petry2014-08-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Now using a natural sort algorithm that is more consistent between JS and PHP (although not perfect in some corner cases) - added OC.Util.naturalSortComparator that uses the same algo that was used for the user list - changed user list and files list to use OC.Util.naturalSortComparator - removed toLowerCase() and changed the comparator to use String.localeCompare() - added unit tests - added OC_NaturalSort that is used by OCP\Util::naturalSortCompare()
* | Show original path information in trashbin and sharing viewsRobin McCorkell2014-09-111-0/+3
|/ | | | Path will only be shown if in subdirectory, not in root.
* Use svg mimeicons for empty text filesRobin Appelman2014-07-301-2/+2
|
* Added mountType attribute and adapted Delete action textVincent Petry2014-07-141-0/+13
| | | | | | | | | | | | | | Added mountType attribute for files/folder to indicated whether they are regular, external or shared. The client side then adapts the "Delete" action hint text based on this information. Only the mount roots must have the delete icon hint adapted. To make this detectable on the client side, the mountType can now be null, "shared", "shared-root", "external" or "external-root". This also gives room to icon customization on the client side.
* Fix folder name for storage rootRobin Appelman2014-06-061-1/+1
|
* Merge pull request #8435 from owncloud/fix-8322-masterThomas Müller2014-05-191-12/+4
|\ | | | | Expose permission via WebDAV
| * - Introduce isShared() and isMounted() on FileInfo classThomas Müller2014-05-021-13/+4
| | | | | | | | | | | | - Reuse these methods on determineIcon() - Generate permission string for the desktop client - expose {http://owncloud.org/ns}permissions as additional WebDAV property containing the permission string
* | Fix PHPDoc in /appsRobin McCorkell2014-05-161-1/+1
| |
* | typos, indentation and remove of unused codeThomas Müller2014-04-281-6/+5
| |
* | Added unit test in files app for sort function in helper classVincent Petry2014-04-281-6/+15
| | | | | | | | | | Added unit test for the Helper class in the files app that tests the different sort orders.
* | Add sorting to files list, trashbin and public filesVincent Petry2014-04-281-3/+52
|/
* always allow to rename the share mount pointBjoern Schiessle2014-04-231-0/+3
|
* don't overwrite shared folder iconBjoern Schiessle2014-04-231-2/+1
|
* make max. text translatableVolkan Gezer2014-04-211-1/+1
|
* adding parentId to file info arrayThomas Müller2014-04-071-1/+2
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-43/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
* Improve sorting performance of large lists of filesRobin Appelman2014-03-191-6/+9
|
* Fix svg icons for public shares and external/shared filesRobin Appelman2014-02-191-3/+3
|
* Show svg mime icons when no preview is availableRobin Appelman2014-02-191-6/+8
|
* use a FileInfo object of the directory when generting the filelistRobin Appelman2014-02-181-22/+0
|
* merge master into storagestatistics-reuseRobin Appelman2014-02-051-0/+1
|\
| * Use $storageInfo['free']Pellaeon Lin2014-01-291-2/+1
| |
| * Fix namespacePellaeon Lin2014-01-151-1/+1
| |
| * Update #free_space on getstoragestats AJAX callPellaeon Lin2013-12-111-0/+2
| |
* | Reuse the calculated free_space in buildFileStorageStatisticsRobin Appelman2014-01-271-4/+4
|/
* Fixed folder icon for home storageVincent Petry2013-11-061-1/+1
| | | | Fixes #5713
* Append file etag to preview URLsVincent Petry2013-10-281-1/+1
| | | | Fixes #5534
* Merge branch 'master' into appframework-masterThomas Müller2013-09-251-5/+5
|\ | | | | | | | | | | Conflicts: apps/files/lib/helper.php apps/files_trashbin/lib/helper.php
| * fix previews in shared foldersGeorg Ehrke2013-09-231-2/+2
| |
| * remove unneccessary lib in namespaceJörn Friedrich Dreyer2013-09-201-3/+3
| |
| * namespaces use upcasefirst partsJörn Friedrich Dreyer2013-09-201-3/+3
| | | | | | | | | | when _ is left in namespace and files are named after their classes the autoloader will also find classes in the lib folder of an app its magic!