History | Log In     View a printable version of the current page.  
We are currently focused especially on Moodle 2.0, Moodle 1.9.x bugs and Moodle 1.9.x testing.    Confused? Lost? Please read this introduction to the Tracker.
Issue Details (XML | Word | Printable)

Key: MDL-13128
Type: Sub-task Sub-task
Status: Reopened Reopened
Priority: Minor Minor
Assignee: David Castro
Reporter: Martin Dougiamas
Votes: 0
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Moodle
MDL-12886

get_courses

Created: 24/Jan/08 02:58 PM   Updated: 06/Nov/08 07:27 PM
Component/s: Administration
Affects Version/s: 1.9
Fix Version/s: None

Participants: David Castro, Jordi Piguillem Poch and Martin Dougiamas
Security Level: None


 Description  « Hide
Get one or more courses according to several criteria

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jordi Piguillem Poch - 10/Jul/08 03:55 PM
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){
}

Jordi Piguillem Poch - 10/Jul/08 03:59 PM
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.

David Castro - 08/Oct/08 12:31 AM
This funcionality is completed in CVS.
We have commit a simpletest.

David Castro - 14/Oct/08 01:00 AM
The params of this functionality has changed.
There are more information returned in this operation.