original_string: public function get_options() {
          if (empty($this->type)) {
              return array();
          }
  
          $params = array();
  
          if (!empty($this->plugin)) {
              $params['plugin'] = $this->plugin;
          }
  
          if (!empty($this->courseid)) {
              $params['id'] = $this->courseid;
          }
  
          if (!empty($this->userid)) {
              $params['userid'] = $this->userid;
          }
  
          if (!empty($this->groupid)) {
              $params['group'] = $this->groupid;
          }
  
          if (!empty($this->page)) {
              $params['page'] = $this->page;
          }
  
          return $params;
      }
code: public function get_options() {
          if (empty($this->type)) {
              return array();
          }
  
          $params = array();
  
          if (!empty($this->plugin)) {
              $params['plugin'] = $this->plugin;
          }
  
          if (!empty($this->courseid)) {
              $params['id'] = $this->courseid;
          }
  
          if (!empty($this->userid)) {
              $params['userid'] = $this->userid;
          }
  
          if (!empty($this->groupid)) {
              $params['group'] = $this->groupid;
          }
  
          if (!empty($this->page)) {
              $params['page'] = $this->page;
          }
  
          return $params;
      }
code_tokens: public function get_options ( ) { if ( empty ( $ this -> type ) ) { return array ( ) ; } $ params = array ( ) ; if ( ! empty ( $ this -> plugin ) ) { $ params [ 'plugin' ] = $ this -> plugin ; } if ( ! empty ( $ this -> courseid ) ) { $ params [ 'id' ] = $ this -> courseid ; } if ( ! empty ( $ this -> userid ) ) { $ params [ 'userid' ] = $ this -> userid ; } if ( ! empty ( $ this -> groupid ) ) { $ params [ 'group' ] = $ this -> groupid ; } if ( ! empty ( $ this -> page ) ) { $ params [ 'page' ] = $ this -> page ; } return $ params ; }
docstring: Returns return parameters as options array suitable for buttons.
  @return array options
docstring_tokens: Returns return parameters as options array suitable for buttons .