public static function update_date($courseid, $timeshift) {
        if ($criteria = self::fetch(array('course' => $courseid))) {
            $criteria->timeend = $criteria->timeend + $timeshift;
            $criteria->update();
        }
    }
public static function update_date($courseid, $timeshift) {
        if ($criteria = self::fetch(array('course' => $courseid))) {
            $criteria->timeend = $criteria->timeend + $timeshift;
            $criteria->update();
        }
    }
public static function update_date ( $ courseid , $ timeshift ) { if ( $ criteria = self :: fetch ( array ( 'course' => $ courseid ) ) ) { $ criteria -> timeend = $ criteria -> timeend + $ timeshift ; $ criteria -> update ( ) ; } }
Shift the date when resetting course.

@param int $courseid the course id
@param int $timeshift number of seconds to shift date
@return boolean was the operation successful?
Shift the date when resetting course .