private function get_gradebook_data_for_user($userid) {
        if (isset($this->gradinginfo->items[0]) && $this->gradinginfo->items[0]->grades[$userid]) {
            return $this->gradinginfo->items[0]->grades[$userid];
        }
        return false;
    }
private function get_gradebook_data_for_user($userid) {
        if (isset($this->gradinginfo->items[0]) && $this->gradinginfo->items[0]->grades[$userid]) {
            return $this->gradinginfo->items[0]->grades[$userid];
        }
        return false;
    }
private function get_gradebook_data_for_user ( $ userid ) { if ( isset ( $ this -> gradinginfo -> items [ 0 ] ) && $ this -> gradinginfo -> items [ 0 ] -> grades [ $ userid ] ) { return $ this -> gradinginfo -> items [ 0 ] -> grades [ $ userid ] ; } return false ; }
Return a users grades from the listing of all grade data for this assignment.

@param int $userid
@return mixed stdClass or false
Return a users grades from the listing of all grade data for this assignment .