original_string: protected static function get_entry_return_structure($includecat = false) {
          $params = array(
              'id' => new external_value(PARAM_INT, 'The entry ID'),
              'glossaryid' => new external_value(PARAM_INT, 'The glossary ID'),
              'userid' => new external_value(PARAM_INT, 'Author ID'),
              'userfullname' => new external_value(PARAM_NOTAGS, 'Author full name'),
              'userpictureurl' => new external_value(PARAM_URL, 'Author picture'),
              'concept' => new external_value(PARAM_RAW, 'The concept'),
              'definition' => new external_value(PARAM_RAW, 'The definition'),
              'definitionformat' => new external_format_value('definition'),
              'definitiontrust' => new external_value(PARAM_BOOL, 'The definition trust flag'),
              'definitioninlinefiles' => new external_files('entry definition inline files', VALUE_OPTIONAL),
              'attachment' => new external_value(PARAM_BOOL, 'Whether or not the entry has attachments'),
              'attachments' => new external_files('attachments', VALUE_OPTIONAL),
              'timecreated' => new external_value(PARAM_INT, 'Time created'),
              'timemodified' => new external_value(PARAM_INT, 'Time modified'),
              'teacherentry' => new external_value(PARAM_BOOL, 'The entry was created by a teacher, or equivalent.'),
              'sourceglossaryid' => new external_value(PARAM_INT, 'The source glossary ID'),
              'usedynalink' => new external_value(PARAM_BOOL, 'Whether the concept should be automatically linked'),
              'casesensitive' => new external_value(PARAM_BOOL, 'When true, the matching is case sensitive'),
              'fullmatch' => new external_value(PARAM_BOOL, 'When true, the matching is done on full words only'),
              'approved' => new external_value(PARAM_BOOL, 'Whether the entry was approved'),
              'tags' => new external_multiple_structure(
                  \core_tag\external\tag_item_exporter::get_read_structure(), 'Tags', VALUE_OPTIONAL
              ),
          );
  
          if ($includecat) {
              $params['categoryid'] = new external_value(PARAM_INT, 'The category ID. This may be' .
                  ' \''. GLOSSARY_SHOW_NOT_CATEGORISED . '\' when the entry is not categorised', VALUE_DEFAULT,
                  GLOSSARY_SHOW_NOT_CATEGORISED);
              $params['categoryname'] = new external_value(PARAM_RAW, 'The category name. May be empty when the entry is' .
                  ' not categorised, or the request was limited to one category.', VALUE_DEFAULT, '');
          }
  
          return new external_single_structure($params);
      }
code: protected static function get_entry_return_structure($includecat = false) {
          $params = array(
              'id' => new external_value(PARAM_INT, 'The entry ID'),
              'glossaryid' => new external_value(PARAM_INT, 'The glossary ID'),
              'userid' => new external_value(PARAM_INT, 'Author ID'),
              'userfullname' => new external_value(PARAM_NOTAGS, 'Author full name'),
              'userpictureurl' => new external_value(PARAM_URL, 'Author picture'),
              'concept' => new external_value(PARAM_RAW, 'The concept'),
              'definition' => new external_value(PARAM_RAW, 'The definition'),
              'definitionformat' => new external_format_value('definition'),
              'definitiontrust' => new external_value(PARAM_BOOL, 'The definition trust flag'),
              'definitioninlinefiles' => new external_files('entry definition inline files', VALUE_OPTIONAL),
              'attachment' => new external_value(PARAM_BOOL, 'Whether or not the entry has attachments'),
              'attachments' => new external_files('attachments', VALUE_OPTIONAL),
              'timecreated' => new external_value(PARAM_INT, 'Time created'),
              'timemodified' => new external_value(PARAM_INT, 'Time modified'),
              'teacherentry' => new external_value(PARAM_BOOL, 'The entry was created by a teacher, or equivalent.'),
              'sourceglossaryid' => new external_value(PARAM_INT, 'The source glossary ID'),
              'usedynalink' => new external_value(PARAM_BOOL, 'Whether the concept should be automatically linked'),
              'casesensitive' => new external_value(PARAM_BOOL, 'When true, the matching is case sensitive'),
              'fullmatch' => new external_value(PARAM_BOOL, 'When true, the matching is done on full words only'),
              'approved' => new external_value(PARAM_BOOL, 'Whether the entry was approved'),
              'tags' => new external_multiple_structure(
                  \core_tag\external\tag_item_exporter::get_read_structure(), 'Tags', VALUE_OPTIONAL
              ),
          );
  
          if ($includecat) {
              $params['categoryid'] = new external_value(PARAM_INT, 'The category ID. This may be' .
                  ' \''. GLOSSARY_SHOW_NOT_CATEGORISED . '\' when the entry is not categorised', VALUE_DEFAULT,
                  GLOSSARY_SHOW_NOT_CATEGORISED);
              $params['categoryname'] = new external_value(PARAM_RAW, 'The category name. May be empty when the entry is' .
                  ' not categorised, or the request was limited to one category.', VALUE_DEFAULT, '');
          }
  
          return new external_single_structure($params);
      }
code_tokens: protected static function get_entry_return_structure ( $ includecat = false ) { $ params = array ( 'id' => new external_value ( PARAM_INT , 'The entry ID' ) , 'glossaryid' => new external_value ( PARAM_INT , 'The glossary ID' ) , 'userid' => new external_value ( PARAM_INT , 'Author ID' ) , 'userfullname' => new external_value ( PARAM_NOTAGS , 'Author full name' ) , 'userpictureurl' => new external_value ( PARAM_URL , 'Author picture' ) , 'concept' => new external_value ( PARAM_RAW , 'The concept' ) , 'definition' => new external_value ( PARAM_RAW , 'The definition' ) , 'definitionformat' => new external_format_value ( 'definition' ) , 'definitiontrust' => new external_value ( PARAM_BOOL , 'The definition trust flag' ) , 'definitioninlinefiles' => new external_files ( 'entry definition inline files' , VALUE_OPTIONAL ) , 'attachment' => new external_value ( PARAM_BOOL , 'Whether or not the entry has attachments' ) , 'attachments' => new external_files ( 'attachments' , VALUE_OPTIONAL ) , 'timecreated' => new external_value ( PARAM_INT , 'Time created' ) , 'timemodified' => new external_value ( PARAM_INT , 'Time modified' ) , 'teacherentry' => new external_value ( PARAM_BOOL , 'The entry was created by a teacher, or equivalent.' ) , 'sourceglossaryid' => new external_value ( PARAM_INT , 'The source glossary ID' ) , 'usedynalink' => new external_value ( PARAM_BOOL , 'Whether the concept should be automatically linked' ) , 'casesensitive' => new external_value ( PARAM_BOOL , 'When true, the matching is case sensitive' ) , 'fullmatch' => new external_value ( PARAM_BOOL , 'When true, the matching is done on full words only' ) , 'approved' => new external_value ( PARAM_BOOL , 'Whether the entry was approved' ) , 'tags' => new external_multiple_structure ( \ core_tag \ external \ tag_item_exporter :: get_read_structure ( ) , 'Tags' , VALUE_OPTIONAL ) , ) ; if ( $ includecat ) { $ params [ 'categoryid' ] = new external_value ( PARAM_INT , 'The category ID. This may be' . ' \'' . GLOSSARY_SHOW_NOT_CATEGORISED . '\' when the entry is not categorised' , VALUE_DEFAULT , GLOSSARY_SHOW_NOT_CATEGORISED ) ; $ params [ 'categoryname' ] = new external_value ( PARAM_RAW , 'The category name. May be empty when the entry is' . ' not categorised, or the request was limited to one category.' , VALUE_DEFAULT , '' ) ; } return new external_single_structure ( $ params ) ; }
docstring: Get the return value of an entry.
  
  @param bool $includecat Whether the definition should include category info.
  @return external_definition
docstring_tokens: Get the return value of an entry .