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-13130
Type: Sub-task Sub-task
Status: Reopened Reopened
Priority: Minor Minor
Assignee: David Castro
Reporter: Martin Dougiamas
Votes: 0
Watchers: 5
Operations

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

delete_courses

Created: 24/Jan/08 02:59 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
delete one or more courses according to criteria

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jordi Piguillem Poch - 10/Jul/08 03:52 PM
We have to work in this function definition. What about associated ressources, roles ... Must be destroyed?

/**
 * Deletes 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 boolean
 */
function delete_course($value, $field){
}

/**
 * Deletes 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
 *
 * @uses delete_course
 *
 * @return boolean
 */
function delete_courses($field, $values){
}

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