public function get_values($itemnumber) {
        if ($itemnumber <= 0 || $itemnumber > $this->get_number_of_items()) {
            $a = new stdClass();
            $a->id = $this->questionid;
            $a->item = $itemnumber;
            throw new moodle_exception('cannotgetdsfordependent', 'question', '', $a);
        }

        return $this->load_values($itemnumber);
    }
public function get_values($itemnumber) {
        if ($itemnumber <= 0 || $itemnumber > $this->get_number_of_items()) {
            $a = new stdClass();
            $a->id = $this->questionid;
            $a->item = $itemnumber;
            throw new moodle_exception('cannotgetdsfordependent', 'question', '', $a);
        }

        return $this->load_values($itemnumber);
    }
public function get_values ( $ itemnumber ) { if ( $ itemnumber <= 0 || $ itemnumber > $ this -> get_number_of_items ( ) ) { $ a = new stdClass ( ) ; $ a -> id = $ this -> questionid ; $ a -> item = $ itemnumber ; throw new moodle_exception ( 'cannotgetdsfordependent' , 'question' , '' , $ a ) ; } return $ this -> load_values ( $ itemnumber ) ; }
Load a particular set of values for each dataset used by this question.
@param int $itemnumber which set of values to load.
0 < $itemnumber <= {@link get_number_of_items()}.
@return array name => value.
Load a particular set of values for each dataset used by this question .