Commit Graph

30 Commits

Author SHA1 Message Date
Ralf Becker
0b71dd2756 replace (slower and ugly) create_function with closures 2016-07-10 11:09:21 +02:00
Ralf Becker
ada94b8d43 fix some scrutinizer "bugs" 2016-06-26 19:44:53 +02:00
nathangray
38f1c2b76b Avoid error if file has no props 2016-05-30 10:12:54 -06:00
Ralf Becker
8c821ab8cb fix wrong/different case WrongUserInput --> WrongUserinput 2016-05-25 21:41:50 +02:00
Ralf Becker
e87cbc4832 use static Hooks methods 2016-05-11 18:58:10 +00:00
Ralf Becker
5d72bbfc1c move thumbnailer to api 2016-04-06 19:39:49 +00:00
Ralf Becker
58834a0c73 fix An error happened (ErrorException): Argument 4 passed to EGroupware\Api\Vfs::copy_files() must be of the type array, none given 2016-03-29 11:01:34 +00:00
Ralf Becker
7c1d0dfdf1 fix PHP Fatal error: require_once(): Failed opening required HTTP/WebDAV/Server.php, caused by it's new location 2016-03-22 08:44:11 +00:00
Ralf Becker
485416d5f1 replace create_function with performanter, because opcachable closure 2016-03-20 14:01:29 +00:00
Ralf Becker
f7441c2e2e Api\Vfs::mime_icon() only returns url or eTemplate app/name string, no more html image tag, egw_vfs compatibility class still implements that 2016-03-05 15:59:20 +00:00
Ralf Becker
49c45ff53a cleaning up common class, moving image handling to Api\Image, eg. Api\Image::find($app,$image) instead of common::image($app,$image) 2016-03-05 15:32:49 +00:00
Ralf Becker
7989d702dd move mime_magic class to Api\MimeMagic 2016-03-05 12:33:37 +00:00
Ralf Becker
a24c1121a2 move egw_time class to Api\DateTime 2016-03-05 11:14:01 +00:00
Ralf Becker
49f75bc8dd move non-mail specific methods of translation class to Api\Translation 2016-03-05 10:47:20 +00:00
Ralf Becker
7aa3296cc5 move config to Api\Config 2016-03-05 10:22:40 +00:00
Ralf Becker
4486d9d7a2 fix namespace usage in refactured code:
namespace EGroupware\Api --> use eg. just Db, not Api\Db for EGroupware\Api\Db
use EGroupware\Api       --> use eg. Api\Db for EGroupware\Api\Db
2016-03-01 09:14:06 +00:00
Ralf Becker
1ab66dd811 move exceptions to new api structure, thought to catch an exception by its deprecated name, new exceptions have to extend deprecated ones 2016-02-28 13:43:06 +00:00
Ralf Becker
9bf4dd288e moved egw_cache to Api\Cache 2016-02-28 09:38:36 +00:00
Ralf Becker
29c73a8694 * Filemanager: add ability to finally delete all old versions or deleted files from a versioned directory 2016-01-21 11:49:50 +00:00
Ralf Becker
14ccc8f0b5 added todo with url to php class allowing to stream a zip file of arbitrary size 2015-06-11 12:46:27 +00:00
Klaus Leithoff
ed12869f0d * API/VFS: download as zip; increase the time limit on a small amount of files, as they may hold a big amount of data 2015-06-11 12:30:38 +00:00
Ralf Becker
d1038c6d65 need to return stat array 2015-04-14 17:25:51 +00:00
Ralf Becker
e6a751e1c5 fix old class-name 2015-04-14 17:06:41 +00:00
Ralf Becker
08609c1e0b always return resource seeked to its start 2015-04-14 17:05:38 +00:00
Ralf Becker
0223553284 allow to specify "egw_data" => egw_link::set_data() instead of "tmp_name" of uploaded file to create attachments with egw_link::link() 2015-04-14 15:04:21 +00:00
Ralf Becker
157cfd84f8 fixed a couple more issues with session reusage when using sharing urls:
- to resolve sharing-path to url, we need to restore full mount-tab
- egw_vfs::clearstatcache() was not clearing resolve_url cache, causing previous share to be used
- need to set egw_info[user][vfs_user] after egw_session::create, as it overwrites it
2015-03-02 21:09:08 +00:00
Ralf Becker
fc70b2213e missing use / namespace aliases 2015-01-31 16:20:21 +00:00
Ralf Becker
c853502a01 fix an other not aliased global class (egw_time) 2015-01-27 17:17:50 +00:00
Ralf Becker
481803ac3b fix PHP Fatal error: Class "EGroupware\Api\ZipArchive" not found 2015-01-27 17:09:00 +00:00
Ralf Becker
70b603ac77 moving VFS API classes into a namespaced PSR4 autoloadable structure:
- PSR4 autoloader exists beside our old autloader to support old as well as new structure until everything is ported over
- moved ported API stuff from phpgwapi to new api directory (idea is phpgwapi become a compatibility layer for old code, while we only port selected stuff to new api directory)
- namespaces use prefix "EGroupware", then (first letter capitalised) app-name or "Api", sub-system names like "Vfs" or for apps "Ui", "Bo, "So" and at least class name starting with a capital letter and without understores eg. "StreamWrapper" plus just ".php"
- examples:
  + egw_vfs in phpgwapi/inc/class.egw_vfs.inc.php --> EGroupware\Api\Vfs in api/src/Vfs.php
  + sqlfs_stream_wrapper in phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php --> EGroupware\Api\Vfs\Sqlfs\StreamWrapper in api/src/Vfs/Sqlfs/StreamWrapper.php
  + sqlfs_utils in phpgwapi/inc/class.sqlfs_utils.inc.php --> EGroupware\Api\Vfs\Sqlfs\Utils in api/src/Vfs/Sqlfs/Utils.php
- api directory is no a new svn module but exists (like home) as sub-directory under base egroupware module
2015-01-26 09:15:07 +00:00