public function get_user_completion($user_id, $criteria) {
        $params = array(
            'course'        => $this->course_id,
            'userid'        => $user_id,
            'criteriaid'    => $criteria->id,
        );

        $completion = new completion_criteria_completion($params);
        return $completion;
    }
public function get_user_completion($user_id, $criteria) {
        $params = array(
            'course'        => $this->course_id,
            'userid'        => $user_id,
            'criteriaid'    => $criteria->id,
        );

        $completion = new completion_criteria_completion($params);
        return $completion;
    }
public function get_user_completion ( $ user_id , $ criteria ) { $ params = array ( 'course' => $ this -> course_id , 'userid' => $ user_id , 'criteriaid' => $ criteria -> id , ) ; $ completion = new completion_criteria_completion ( $ params ) ; return $ completion ; }
Get completion object for a user and a criteria

@param int $user_id User id
@param completion_criteria $criteria Criteria object
@return completion_criteria_completion
Get completion object for a user and a criteria