public static function get_user_id_for_uniqueid_static($assignid, $uniqueid) {
        global $DB;

        // Search for a record.
        if ($record = $DB->get_record('assign_user_mapping',
                                      array('assignment'=>$assignid, 'id'=>$uniqueid),
                                      'userid',
                                      IGNORE_MISSING)) {
            return $record->userid;
        }

        return false;
    }
public static function get_user_id_for_uniqueid_static($assignid, $uniqueid) {
        global $DB;

        // Search for a record.
        if ($record = $DB->get_record('assign_user_mapping',
                                      array('assignment'=>$assignid, 'id'=>$uniqueid),
                                      'userid',
                                      IGNORE_MISSING)) {
            return $record->userid;
        }

        return false;
    }
public static function get_user_id_for_uniqueid_static ( $ assignid , $ uniqueid ) { global $ DB ; // Search for a record. if ( $ record = $ DB -> get_record ( 'assign_user_mapping' , array ( 'assignment' => $ assignid , 'id' => $ uniqueid ) , 'userid' , IGNORE_MISSING ) ) { return $ record -> userid ; } return false ; }
Lookup this unique id and return the user id for this assignment.

@param int $assignid The id of the assignment this user mapping is in
@param int $uniqueid The uniqueid to lookup
@return int The user id or false if they don't exist
Lookup this unique id and return the user id for this assignment .