InsertIndex()
(mPDF ≥ 6.0)
InsertIndex — Generate an Index for the document
Description
void InsertIndex ( [ int $usedivletters [, boolean $uselinking [, string $indexCollationLocale [, string $indexCollationGroup ]]]])
Inserts an Index for the document based on index entries made using <indexentry> or IndexEntry().
Parameters
- $usedivletters
-
Defines whether to divide index entries starting with the same letter, using a (large) letter as a heading.
Default:
1
Values
1
: show dividing letters in the Index0
: do not show dividing letters in the Index
BLANK or omitted uses a default value of
1
- $uselinking
-
Specify whether to add hyperlinks (internal links) to the entries in the document Index.
Default:
false
Values
true
or1
: add links to Index- BLANK or omitted,
0
orfalse
: do not add links to the Index
- $indexCollationLocale
-
Set a Locale to determine the overall sort order of index entries e.g.
en_GB.utf8
. Available options are determined by the locales available in your system configuration. Always use a utf-8 locale.BLANK or omitted uses current locale set in your system.
- $indexCollationGroup
-
If you have set your index to use Dividing letters, this value will determine how letters are grouped under a dividing letter. Values should be selected from the files in directory /data/collations/ e.g.
English_United_Kingdom
.NB This will not affect the overall order of entries, which is determined by the value above.
BLANK or omitted - grouping occurs under the first letter of the index entries.
Changelog
Version | Description |
---|---|
6.0 | Function was added |