addTableFigures

addTableFigures

TRIAL / ADVANCED / PREMIUM

Inserts a Table of Figures into the Word document.

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

This method allows you to include a Table of Figures in you Word document.

Parameters

options

The possible keys and values are:

Key Type Description
autoUpdate boolean If true it will try to update the content when first opened.
scope string Contents to display: table (default), figure and other custom values based on the content style ID.

legend

The possible keys and values are:

Key Type Description
text array The placeholder text that will be shown if the autoupdate option is not activated.
Code samples

Example #1

The resulting Word document looks like:

Release notes
  • phpdocx 10.0:
    • new method.