public function is_course_complete($user_id) {
        $params = array(
            'userid'    => $user_id,
            'course'  => $this->course_id
        );

        $ccompletion = new completion_completion($params);
        return $ccompletion->is_complete();
    }
public function is_course_complete($user_id) {
        $params = array(
            'userid'    => $user_id,
            'course'  => $this->course_id
        );

        $ccompletion = new completion_completion($params);
        return $ccompletion->is_complete();
    }
public function is_course_complete ( $ user_id ) { $ params = array ( 'userid' => $ user_id , 'course' => $ this -> course_id ) ; $ ccompletion = new completion_completion ( $ params ) ; return $ ccompletion -> is_complete ( ) ; }
Has the supplied user completed this course

@param int $user_id User's id
@return boolean
Has the supplied user completed this course