Marina Glancy
fa746096cf
MDL-34290 repository_equella: do not download files when not needed
...
repository_equella::get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation),
does not use cache_file class (content is cached in moodle filepool if needed);
also repository_equella has counter of unsuccessfull connect attempts and do not perform any more if 3 failed
(within one request)
2012-08-29 11:56:15 +08:00
Marina Glancy
72a5655566
MDL-34290 repository API: add timeout to get_file and throw exception
...
- get_file should have a request timeout and throw an exception with the details (i.e. timeout reached) if download can
not be completed
- corrected phpdocs
2012-08-29 11:56:14 +08:00
nread
82b287522e
MDL-33669 equella: implement the manage link
2012-06-26 11:56:57 +10:00
Dan Poltawski
6100b006f1
Merge branch 'wip-MDL-33777-master' of git://github.com/marinaglancy/moodle
2012-06-25 16:18:27 +08:00
Marina Glancy
c01f7628f7
MDL-33777 Equella repository properly set the source and display file origin
2012-06-25 10:57:02 +08:00
nread
75d1891548
MDL-33980 equella: course ID number should be being passed through, not the course database ID
2012-06-25 12:33:49 +10:00
Eloy Lafuente (stronk7)
f2904fe243
Merge branch 'MDL-33724' of git://github.com/danpoltawski/moodle
2012-06-19 02:56:19 +02:00
Eloy Lafuente (stronk7)
c5e783e512
MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700
2012-06-18 02:37:00 +02:00
Dan Poltawski
ed8e053e64
MDL-33724 repository_equella: missing string
2012-06-14 17:01:39 +08:00
Dan Poltawski
4585e6ac98
Merge branch 'wip-MDL-33550-master' of git://github.com/marinaglancy/moodle
2012-06-14 16:23:08 +08:00
Marina Glancy
0b2bfbd1c6
MDL-33550 Correctly process situation when file reference source is missing
...
- do not die with fatal error if source file in moodle internal repository is missing;
- moved code duplication for moodle repositories into class repository (functions send_file, get_reference_details, get_file_by_reference, get_file_reference);
- update file status after repository::sync_external_file so we know that it is missing (or not missing anymore). Do not run this function more than once for file within one request;
- display readable name for Private Files and Server files with the new format;
- display broken icon in filemanager if we know that source is missing, display information (for admin) where it was located before: see repository::get_reference_details() and extending classes;
- removed unnecessary queries in stored_file::sync_external_file();
- syncronize files before displaying it's size in mod_resource, do not query directly
2012-06-13 12:11:06 +08:00
Dan Poltawski
4a126f1725
MDL-32573 - repository: make instance_config_form static
2012-06-12 22:17:29 +08:00
Eloy Lafuente (stronk7)
74ea1b95f4
MDL-32117 equella: add missing MOODLE_INTERNAL + phpdocs tidy
2012-06-12 02:23:14 +02:00
Dan Poltawski
d66e5720a1
MDL-32117 - equella: prevent errors when no username
2012-06-11 10:08:16 +08:00
nread
e3e4ca5ae9
MDL-32117 equella: owner field in JSON maps back to author
2012-06-05 13:45:25 +10:00
nread
826b34836a
MDL-32117 equella: pass through course shortname too
2012-06-05 11:45:24 +10:00
Dan Poltawski
095b8c5818
MDL-32117 equella: Add validation rules to instance form
...
Also change equella_action to hardcoded value
2012-06-04 15:29:46 +08:00
Dan Poltawski
e3e691cc6e
MDL-32117 equella: die after redirection
...
To make it clear that nothing else happens.
2012-06-04 15:29:46 +08:00
Dan Poltawski
2e47347c88
MDL-32117 equella: callback.php params
...
* Properly cleaned and filtered
* Add utf8 content type
(Thanks Petr Škoda)
2012-06-04 15:29:45 +08:00
Dan Poltawski
c1e688bba4
MDL-32117 equella: Moodle style checker issues
...
* Whitespace around control statements
* DOS formated version.php
2012-06-04 15:29:45 +08:00
Dan Poltawski
1256d67102
MDL-32117 equella: remove unused full_url() method
2012-06-04 15:29:45 +08:00
Dan Poltawski
dcd51551d2
MDL-32117 equella: improve version.php
...
* Include component name
* Include requires version
(Thanks Petr Škoda)
2012-06-04 15:29:12 +08:00
Dan Poltawski
bf4b1698a5
MDL-32117 equella: remove another unused global
2012-06-04 15:29:11 +08:00
Dan Poltawski
e38919c070
MDL-32117 equella: Make private functions private
...
Match mimetype function name to moodle coding style.
2012-06-04 12:32:15 +08:00
Dan Poltawski
7406ee9f57
MDL-32117 equella: Switch get_all_editing_roles to get_users_with_capability
...
This is the core function to do the same thing
2012-06-04 12:32:15 +08:00
Dan Poltawski
32f7f85862
MDL-32117 equella: Remove custom 'context tree' handling.
...
user_has_role_assignment will check parent contexts itself so there is
no need to do this manally
2012-06-04 12:32:10 +08:00
Dan Poltawski
3e3910a58d
MDL-32117 equella: Remove unusused globals
2012-06-04 12:30:40 +08:00
Dan Poltawski
130b3f8c4f
MDL-32117 equella: various E_STRICT fixes
...
* Make send_file compatible with its parent
* mktime -> time()
* callback.php: fix pass by reference warnings
2012-06-04 12:29:15 +08:00
Dongsheng Cai
e88aa1e34c
MDL-32117 Removed dots from language key names
2012-06-04 11:46:03 +08:00
Dongsheng Cai
da1f4aee95
MDL-32117 EQUELLA plugin: Added some TODO comments in callback.php and changed variable names to conform moodle coding style
2012-06-04 11:46:03 +08:00
Dongsheng Cai
36f8060a6b
MDL-32117 EQUELLA plugin: Fixed file downloading redirect issue
2012-06-04 11:46:02 +08:00
Dongsheng Cai
9225747e11
MDL-32117 EQUELLA plugin: Fixed callback parameters
2012-06-04 11:46:02 +08:00
nread
7283bb95ae
MDL-32117 EQUELLA plugin: EQUELLA only support references, not external files
2012-06-04 11:46:02 +08:00
nread
a3fde71746
MDL-32117 EQUELLA plugin: Remove warning when 'mimetypes' option is not set
2012-06-04 11:46:02 +08:00
nread
205f169edf
MDL-32117 EQUELLA plugin: Turn off the login, refresh buttons and the search box
2012-06-04 11:46:02 +08:00
nread
1b4e7fbc37
MDL-32117 EQUELLA plugin: else if -> elseif
2012-06-04 11:46:02 +08:00
nread
11a55b46ff
MDL-32117 EQUELLA plugin: Enforce selection restriction settings, but override if Moodle wants to restrict to specific MIME types as it is always going to be for resources only
2012-06-04 11:46:01 +08:00
nread
cb1871a829
MDL-32117 EQUELLA plugin: Don't restrict to MIME types if '*' is used, as user should be able to select any type at this point
2012-06-04 11:46:01 +08:00
nread
1be875bab7
MDL-32117 EQUELLA plugin: Don't include the 'mimeTypes' option if it's empty or we get the wrong stuff
2012-06-04 11:46:01 +08:00
nread
d3376ba684
MDL-32117 EQUELLA plugin: Spelling error in variable name
2012-06-04 11:46:01 +08:00
Dongsheng Cai
36bf3ff825
MDL-32117 EQUELLA plugin: Fixed the checking roles code when using filepicker in user context. Also format the SQL to use moodle coding style
2012-06-04 11:46:01 +08:00
nread
9c6d6c0eeb
MDL-32117 EQUELLA plugin: Dynamic configuration for roles, and use 'write' tokens when selecting stuff
2012-06-04 11:46:01 +08:00
nread
b709660fb2
MDL-32117 EQUELLA plugin: Don't show close icons or cancel links in EQUELLA because we're inside the File Picker dialog which has its own close button. Also, always return URLs for selected resources in the '?attachment.uuid=abcd' format so that URLs work if filenames are changed
2012-06-04 11:46:00 +08:00
Dongsheng Cai
27bb724f16
MDL-32117 EQUELLA plugin: initial commit
2012-06-04 11:46:00 +08:00