Moodle

moodle_course_get_courses

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Web Services
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Get one or more courses according to several criteria

Issue Links

Activity

Hide
Jordi Piguillem Poch added a comment -

Some more PHPDoc:

/**

  • Get a course from the course table
  • @private ?
  • @param string $field
  • Possible values:
  • <ul>
  • <li>id</li>
  • <li>name</li>
  • <li>idnumber</li>
  • <li>shortname</li>
  • </ul>
  • @param string $value
  • @return course Return a course record
    */
    function get_course($field, $value){

}

/**

  • Get some courses from the course table
  • @param string $field
  • Possible values:
  • <ul>
  • <li>id</li>
  • <li>name</li>
  • <li>idnumber</li>
  • <li>shortname</li>
  • </ul>
  • @param array $values
  • @return array Returns an array of course records
    */
    function get_courses($field,$values){
    }
Show
Jordi Piguillem Poch added a comment - Some more PHPDoc: /**
  • Get a course from the course table
  • @private ?
  • @param string $field
  • Possible values:
  • <ul>
  • <li>id</li>
  • <li>name</li>
  • <li>idnumber</li>
  • <li>shortname</li>
  • </ul>
  • @param string $value
  • @return course Return a course record */ function get_course($field, $value){
} /**
  • Get some courses from the course table
  • @param string $field
  • Possible values:
  • <ul>
  • <li>id</li>
  • <li>name</li>
  • <li>idnumber</li>
  • <li>shortname</li>
  • </ul>
  • @param array $values
  • @return array Returns an array of course records */ function get_courses($field,$values){ }
Hide
Jordi Piguillem Poch added a comment -

What is a COURSE? Course table record? Something to remove or add?

Adding URL to the course to this object would be a great idea.

Show
Jordi Piguillem Poch added a comment - What is a COURSE? Course table record? Something to remove or add? Adding URL to the course to this object would be a great idea.
Hide
David Castro added a comment -

This funcionality is completed in CVS.
We have commit a simpletest.

Show
David Castro added a comment - This funcionality is completed in CVS. We have commit a simpletest.
Hide
David Castro added a comment -

The params of this functionality has changed.
There are more information returned in this operation.

Show
David Castro added a comment - The params of this functionality has changed. There are more information returned in this operation.

People

Dates

  • Created:
    Updated:
    Resolved: