File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -359,17 +359,17 @@ The footnote numbering can be controlled by setting the FootnoteProperties on th
359
359
360
360
.. code-block :: php
361
361
362
- $fp = new PhpWord\SimpleType \FootnoteProperties();
362
+ $fp = new \PhpOffice\ PhpWord\ComplexType \FootnoteProperties();
363
363
//sets the position of the footnote (pageBottom (default), beneathText, sectEnd, docEnd)
364
- $fp->setPos(FootnoteProperties::POSITION_DOC_END );
364
+ $fp->setPos(\PhpOffice\PhpWord\ComplexType\ FootnoteProperties::POSITION_BENEATH_TEXT );
365
365
//set the number format to use (decimal (default), upperRoman, upperLetter, ...)
366
- $fp->setNumFmt(FootnoteProperties::NUMBER_FORMAT_LOWER_ROMAN );
366
+ $fp->setNumFmt(\PhpOffice\PhpWord\SimpleType\NumberFormat::LOWER_ROMAN );
367
367
//force starting at other than 1
368
368
$fp->setNumStart(2);
369
369
//when to restart counting (continuous (default), eachSect, eachPage)
370
- $fp->setNumRestart(FootnoteProperties::RESTART_NUMBER_EACH_PAGE);
370
+ $fp->setNumRestart(\PhpOffice\PhpWord\ComplexType\ FootnoteProperties::RESTART_NUMBER_EACH_PAGE);
371
371
//And finaly, set it on the Section
372
- $section->setFootnoteProperties($properties );
372
+ $section->setFootnoteProperties($fp );
373
373
374
374
Checkboxes
375
375
----------
You can’t perform that action at this time.
0 commit comments