public function mark_inprogress($timestarted = null) {

        $timenow = time();

        // Set reaggregate flag
        $this->reaggregate = $timenow;

        if (!$this->timestarted) {

            if (!$timestarted) {
                $timestarted = $timenow;
            }

            $this->timestarted = $timestarted;
        }

        return $this->_save();
    }
public function mark_inprogress($timestarted = null) {

        $timenow = time();

        // Set reaggregate flag
        $this->reaggregate = $timenow;

        if (!$this->timestarted) {

            if (!$timestarted) {
                $timestarted = $timenow;
            }

            $this->timestarted = $timestarted;
        }

        return $this->_save();
    }
public function mark_inprogress ( $ timestarted = null ) { $ timenow = time ( ) ; // Set reaggregate flag $ this -> reaggregate = $ timenow ; if ( ! $ this -> timestarted ) { if ( ! $ timestarted ) { $ timestarted = $ timenow ; } $ this -> timestarted = $ timestarted ; } return $ this -> _save ( ) ; }
Mark this user as inprogress in this course

If the user is already marked as inprogress, the time will not be changed

@param integer $timestarted Time started (optional)
Mark this user as inprogress in this course