addBibliography

addBibliography

ADVANCED / PREMIUM TRIAL

Inserts a bibliography into the Word document.

Description
public addBibliography ( [array $options [, array $legend]] )

This method allows to include a bibliography in the Word document.

New contents to be displayed in a bibliography can be added using addSource and addCitation methods.

Parameters

options

The possible keys and values are:

Key Type Description
autoUpdate boolean If true it will try to update the bibliography when first opened.

legend

The possible keys and values are:

Key Type Description
text string The placeholder text that will be shown if the autoupdate option is not activated.
Styles from addText.
Exceptions

Method not available.

Code samples

Example #1

The resulting Word document looks like:

Release notes
  • phpdocx 12.0:
    • new method.