original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Retrieves the data of the submitted form.
  
  @return stdClass
docstring_tokens: Retrieves the data of the submitted form .