public function get_data() {
        $data = parent::get_data();
        if ($data && !empty($this->_customdata->istool)) {
            // Content item checkbox is disabled in tool settings, so this cannot be edited. Just unset it.
            unset($data->lti_contentitem);
        }
        return $data;
    }
public function get_data() {
        $data = parent::get_data();
        if ($data && !empty($this->_customdata->istool)) {
            // Content item checkbox is disabled in tool settings, so this cannot be edited. Just unset it.
            unset($data->lti_contentitem);
        }
        return $data;
    }
public function get_data ( ) { $ data = parent :: get_data ( ) ; if ( $ data && ! empty ( $ this -> _customdata -> istool ) ) { // Content item checkbox is disabled in tool settings, so this cannot be edited. Just unset it. unset ( $ data -> lti_contentitem ) ; } return $ data ; }
Retrieves the data of the submitted form.

@return stdClass
Retrieves the data of the submitted form .