Issue Details (XML | Word | Printable)

Key: MDL-13766
Type: New Feature New Feature
Status: Open Open
Priority: Blocker Blocker
Assignee: Dongsheng Cai
Reporter: Martin Dougiamas
Votes: 17
Watchers: 30
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

META: Develop new Repository API

Created: 04/Mar/08 01:19 PM   Updated: 30/Oct/09 02:27 PM
Component/s: Repository API
Affects Version/s: 2.0
Fix Version/s: 2.0

File Attachments: 1. Text File repo_refactor.patch (76 kB)

Issue Links:
Dependency
Duplicate
 
Relates

Participants: Dongsheng Cai, Leo Thiessen, Martin Dougiamas, Nick Thompson, Nicolas Connault and Petr Skoda
Security Level: None
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
This meta bug lists and links all the subtasks for developing the repository API which is specified here:

   http://docs.moodle.org/en/Development:Repository_API

Some discussion and a large number of votes is on MDL-9134

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Nicolas Connault added a comment - 17/Nov/08 03:40 PM
Attached a proposed refactoring of repo code.

Petr Skoda added a comment - 04/Jun/09 05:52 PM
the latest commit http://cvs.moodle.org/moodle/repository/mahara/repository.class.php?r1=1.5&r2=1.6
does not seem correct, there is probably problem with $PAGE not pixpath, in any case pixpath is mandatory, you should not work around it

Dongsheng Cai added a comment - 04/Jun/09 07:09 PM
I talked to Time about this issue before, the problem is, in web service, there is no moodle_page existed (exchanging json string only), do we really need to setup a useless $PAGE object just in order to use pixpath?

Leo Thiessen added a comment - 26/Jul/09 04:11 AM
MrCUTE Jr. is a simple version of a shared url/file repository that currently works for moodle 1.9.5 to provide a quick solution for shared resource needs. It provides a search box to find the shared resources you are looking for based on kewords and other data associated with the shared resource when it was entered into the MrCUTE Jr. repository.

I flagged this as "duplicates" the repository api, based on it being the nearest match; but it doesn't do what the repository api does - rather provides a function that the repository api will enable, more fully, in the future. I hope this will solve some simpler needs for Moodle 1.9.5 users in the meantime.

Feedback is welcomed, please!


Nick Thompson added a comment - 30/Oct/09 01:13 AM
Maybe I'm missing something, but according to the specs found here:
http://docs.moodle.org/en/Development:Repository_API

For every file I should be able to choose to copy the file into moodle, or link to it externally.
"only return the URL to the file if it's desired to keep it external"

I don't see that option anywhere...


Martin Dougiamas added a comment - 30/Oct/09 02:27 PM
Nick, see MDL-20602. It's not in CVS yet.