Issue Details (XML | Word | Printable)

Key: MDL-13128
Type: Sub-task Sub-task
Status: In Progress In Progress
Priority: Minor Minor
Assignee: Jordi Piguillem Poch
Reporter: Martin Dougiamas
Votes: 0
Watchers: 4
Operations

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

get_courses

Created: 24/Jan/08 02:58 PM   Updated: 11/Nov/09 11:11 AM
Return to search
Component/s: Administration
Affects Version/s: 1.9
Fix Version/s: None

Participants: David Castro, Jordi Piguillem Poch and Martin Dougiamas
Security Level: None
Resolved date: 14/Oct/08
Affected Branches: MOODLE_19_STABLE


 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 added a comment - 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 added a comment - 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 added a comment - 08/Oct/08 12:31 AM
This funcionality is completed in CVS.
We have commit a simpletest.

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