Moodle

Develop base class /repository/repository.class.php

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Repositories
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE
  1. curl.class.php
    24/Jun/08 5:03 PM
    6 kB
    Dongsheng Cai
  2. environment.xml.patch
    26/Jun/08 1:32 AM
    3 kB
    Dongsheng Cai
  3. repository.class.php
    26/Jun/08 11:55 AM
    6 kB
    Dongsheng Cai

Activity

Hide
Dongsheng Cai added a comment -

Created a curl class to simplify the use of curl.

Show
Dongsheng Cai added a comment - Created a curl class to simplify the use of curl.
Hide
Martin Dougiamas added a comment -

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?

Show
Martin Dougiamas added a comment - 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?
Hide
Dongsheng Cai added a comment -

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

Show
Dongsheng Cai added a comment - 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
Hide
Dongsheng Cai added a comment -

Mark cURL as required.

Show
Dongsheng Cai added a comment - Mark cURL as required.
Hide
Dongsheng Cai added a comment -

A draft repository base class, it can play with box.net now, will be modified with the development of the other sub-tasks.

Show
Dongsheng Cai added a comment - A draft repository base class, it can play with box.net now, will be modified with the development of the other sub-tasks.
Hide
Dongsheng Cai added a comment -

cURL is a prerequisite in 2.0 now.

Show
Dongsheng Cai added a comment - cURL is a prerequisite in 2.0 now.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: