Issue Details (XML | Word | Printable)

Key: MDL-15349
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Dongsheng Cai
Reporter: Martin Dougiamas
Votes: 0
Watchers: 2
Operations

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

Develop base class /repository/repository.class.php

Created: 23/Jun/08 02:15 PM   Updated: 04/Aug/08 02:46 PM
Return to search
Component/s: Repository API
Affects Version/s: 2.0
Fix Version/s: 2.0

File Attachments: 1. File curl.class.php (6 kB)
2. Text File environment.xml.patch (3 kB)
3. File repository.class.php (6 kB)


Participants: Dongsheng Cai and Martin Dougiamas
Security Level: None
Resolved date: 04/Aug/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Dongsheng Cai added a comment - 24/Jun/08 05:03 PM
Created a curl class to simplify the use of curl.

Martin Dougiamas added a comment - 25/Jun/08 11:59 AM
A curl wrapper is a good idea.

We had an old library at lib/snoopy (it's a bit old but we use it for things already). Looks like it's obsolete, though someone came up with this:

http://blog.adaniels.nl/articles/drop-in-replacement-for-snoopy/

You should have a look at it and see if that would be useful. If not, we should probably migrate all our code to use your new class (or someone's class).

Also look into http://framework.zend.com/manual/en/zend.http.html

Can you also make sure the curl library is listed as a prerequisite for 2.0 on the environment.xml for install/upgrade?


Dongsheng Cai added a comment - 26/Jun/08 01:22 AM
If we already had a curl lib (didn't know we have snoopy already), we should continue to use it, if the plug-in developers need other functionalities, they can include other libs in their plug-ins. I will test the new snoopy, and may do some hack.

Zend_Http is great, I really like the API, it has a Zend_REST and GData libs too, which will can help develop GDocs and the other RESTful plug-ins, but we need to introduce more Zend Framework files to Moodle, is that OK?

I found a Easter eggs: womenslib.php


Dongsheng Cai added a comment - 26/Jun/08 01:32 AM
Mark cURL as required.

Dongsheng Cai added a comment - 26/Jun/08 11:55 AM
A draft repository base class, it can play with box.net now, will be modified with the development of the other sub-tasks.

Dongsheng Cai added a comment - 30/Jun/08 07:13 PM
cURL is a prerequisite in 2.0 now.