SECTIONS
Table of Contents
Constants
- DEFAULT_PAGENUM_ALIGN : mixed = 0
- DEFAULT_PAGENUM_LOC : mixed = 0
- DEFAULT_PAGENUM_RESTART : mixed = FALSE
- DEFAULT_SECTION : mixed = 'A4'
- SECTIONSIZE : mixed = ['A4' => ['size' => ['width' => 11906, 'height'...
- USABLEHEIGHT : mixed = [ // Set to paper height less margin top and ma...
- USABLEWIDTH : mixed = [ // Set to paper width less margin left and ma...
Functions
- sections() : mixed
- Set and get the initial sectPr element
- writeSections() : string
- Insert section breaks other than the default (i.e., section breaks have been inserted in the WP).
- pageNums() : mixed
- Set and get page number options. These are written as part of the section block.
Constants
DEFAULT_PAGENUM_ALIGN
public
mixed
DEFAULT_PAGENUM_ALIGN
= 0
DEFAULT_PAGENUM_LOC
public
mixed
DEFAULT_PAGENUM_LOC
= 0
DEFAULT_PAGENUM_RESTART
public
mixed
DEFAULT_PAGENUM_RESTART
= FALSE
DEFAULT_SECTION
public
mixed
DEFAULT_SECTION
= 'A4'
SECTIONSIZE
public
mixed
SECTIONSIZE
= ['A4' => ['size' => ['width' => 11906, 'height' => 16838, 'code' => 9], 'margins' => ['top' => 1440, 'right' => 1440, 'bottom' => 1440, 'left' => 1440, 'header' => 720, 'footer' => 720, 'gutter' => 0], 'cols' => ['space' => 720], 'grid' => ['linePitch' => 360]], 'letter' => ['size' => ['width' => 12240, 'height' => 15840, 'code' => 1], 'margins' => ['top' => 1440, 'right' => 1440, 'bottom' => 1440, 'left' => 1440, 'header' => 720, 'footer' => 720, 'gutter' => 0], 'cols' => ['space' => 720], 'grid' => ['linePitch' => 360]], 'A5' => ['size' => ['width' => 8400, 'height' => 11900, 'code' => 11], 'margins' => ['top' => 1440, 'right' => 1440, 'bottom' => 1440, 'left' => 1440, 'header' => 720, 'footer' => 720, 'gutter' => 0], 'cols' => ['space' => 720], 'grid' => ['linePitch' => 360]], 'legal' => ['size' => ['width' => 12240, 'height' => 20160, 'code' => 5], 'margins' => ['top' => 1440, 'right' => 1440, 'bottom' => 1440, 'left' => 1440, 'header' => 720, 'footer' => 720, 'gutter' => 0], 'cols' => ['space' => 720], 'grid' => ['linePitch' => 360]], 'executive' => ['size' => ['width' => 10440, 'height' => 15120, 'code' => 7], 'margins' => ['top' => 1440, 'right' => 1440, 'bottom' => 1440, 'left' => 1440, 'header' => 720, 'footer' => 720, 'gutter' => 0], 'cols' => ['space' => 720], 'grid' => ['linePitch' => 360]]]
USABLEHEIGHT
public
mixed
USABLEHEIGHT
= [
// Set to paper height less margin top and margin bottom. For e.g., images
'A4' => 13958,
'letter' => 12960,
'A5' => 9020,
'legal' => 17280,
'executive' => 12240,
]
USABLEWIDTH
public
mixed
USABLEWIDTH
= [
// Set to paper width less margin left and margin right. For e.g., images
'A4' => 9026,
'letter' => 9360,
'A5' => 5520,
'legal' => 9360,
'executive' => 7560,
]
Functions
sections()
Set and get the initial sectPr element
sections(string $method[, XMLWriter $xml = null ][, string $section = '' ]) : mixed
Parameters
- $method : string
- $xml : XMLWriter = null
-
Default NULL
- $section : string = ''
-
Default ''
writeSections()
Insert section breaks other than the default (i.e., section breaks have been inserted in the WP).
writeSections(string $input) : string
Note that the code here only allows for one set of section variables regarding page dimensions. This is fine for our purposes . . .
Parameters
- $input : string
Return values
stringpageNums()
Set and get page number options. These are written as part of the section block.
pageNums(string $method[, string $input = '' ]) : mixed
Parameters
- $method : string
- $input : string = ''