Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
|
Public Member Functions | |
__construct () | |
Create a new PageSetup. | |
addPrintArea (string $value, int $index=-1) | |
Add a new print area (e.g. | |
addPrintAreaByColumnAndRow (int $column1, int $row1, int $column2, int $row2, int $index=-1) | |
Add a new print area to the list of print areas. | |
clearPrintArea (int $index=0) | |
Clear a print area. | |
getColumnsToRepeatAtLeft () | |
Get Columns to repeat at left. | |
getFirstPageNumber () | |
Get first page number. | |
getFitToHeight () | |
Get Fit To Height. | |
getFitToPage () | |
Get Fit To Page. | |
getFitToWidth () | |
Get Fit To Width. | |
getHorizontalCentered () | |
Get center page horizontally. | |
getOrientation () | |
Get Orientation. | |
getPageOrder () | |
getPaperSize () | |
Get Paper Size. | |
getPrintArea (int $index=0) | |
Get print area. | |
getRowsToRepeatAtTop () | |
Get Rows to repeat at top. | |
getScale () | |
Get Scale. | |
getVerticalCentered () | |
Get center page vertically. | |
isColumnsToRepeatAtLeftSet () | |
Is Columns to repeat at left set? | |
isPrintAreaSet (int $index=0) | |
Is print area set? | |
isRowsToRepeatAtTopSet () | |
Is Rows to repeat at top set? | |
resetFirstPageNumber () | |
Reset first page number. | |
setColumnsToRepeatAtLeft (array $columnsToRepeatAtLeft) | |
Set Columns to repeat at left. | |
setColumnsToRepeatAtLeftByStartAndEnd (string $start, string $end) | |
Set Columns to repeat at left by start and end. | |
setFirstPageNumber (?int $value) | |
Set first page number. | |
setFitToHeight (?int $fitToHeight, bool $update=true) | |
Set Fit To Height. | |
setFitToPage (bool $fitToPage) | |
Set Fit To Page. | |
setFitToWidth (?int $value, bool $update=true) | |
Set Fit To Width. | |
setHorizontalCentered (bool $value) | |
Set center page horizontally. | |
setOrientation (string $orientation) | |
Set Orientation. | |
setPageOrder (?string $pageOrder) | |
setPaperSize (int $paperSize) | |
Set Paper Size. | |
setPrintArea (string $value, int $index=0, string $method=self::SETPRINTRANGE_OVERWRITE) | |
Set print area. | |
setPrintAreaByColumnAndRow (int $column1, int $row1, int $column2, int $row2, int $index=0, string $method=self::SETPRINTRANGE_OVERWRITE) | |
Set print area. | |
setRowsToRepeatAtTop (array $rowsToRepeatAtTop) | |
Set Rows to repeat at top. | |
setRowsToRepeatAtTopByStartAndEnd (int $start, int $end) | |
Set Rows to repeat at top by start and end. | |
setScale (?int $scale, bool $update=true) | |
Set Scale. | |
setVerticalCentered (bool $value) | |
Set center page vertically. | |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::addPrintArea | ( | string | $value, |
int | $index = -1 ) |
Add a new print area (e.g.
'A1:D10' or 'A1:D10,G5:M20') to the list of print areas.
int | $index | Identifier for a specific print area range allowing several ranges to be set A positive index will insert after that indexed entry in the print areas list, while a negative index will insert before the indexed entry. Specifying an index value of 0, will always append the new print range at the end of the list. Print areas are numbered from 1 |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::addPrintAreaByColumnAndRow | ( | int | $column1, |
int | $row1, | ||
int | $column2, | ||
int | $row2, | ||
int | $index = -1 ) |
Add a new print area to the list of print areas.
int | $column1 | Start Column for the print area |
int | $row1 | Start Row for the print area |
int | $column2 | End Column for the print area |
int | $row2 | End Row for the print area |
int | $index | Identifier for a specific print area range allowing several ranges to be set A positive index will insert after that indexed entry in the print areas list, while a negative index will insert before the indexed entry. Specifying an index value of 0, will always append the new print range at the end of the list. Print areas are numbered from 1 |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::clearPrintArea | ( | int | $index = 0 | ) |
Clear a print area.
int | $index | Identifier for a specific print area range if several ranges have been set Default behaviour, or an index value of 0, will clear all print ranges that are set Otherwise, the range identified by the value of $index will be removed from the series Print areas are numbered from 1 |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::getColumnsToRepeatAtLeft | ( | ) |
Get Columns to repeat at left.
array | Containing start column and end column, empty array if option unset |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::getPrintArea | ( | int | $index = 0 | ) |
Get print area.
int | $index | Identifier for a specific print area range if several ranges have been set Default behaviour, or a index value of 0, will return all ranges as a comma-separated string Otherwise, the specific range identified by the value of $index will be returned Print areas are numbered from 1 |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::getRowsToRepeatAtTop | ( | ) |
Get Rows to repeat at top.
array | Containing start column and end column, empty array if option unset |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::isPrintAreaSet | ( | int | $index = 0 | ) |
Is print area set?
int | $index | Identifier for a specific print area range if several ranges have been set Default behaviour, or an index value of 0, will identify whether any print range is set Otherwise, existence of the range identified by the value of $index will be returned Print areas are numbered from 1 |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::resetFirstPageNumber | ( | ) |
Reset first page number.
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setColumnsToRepeatAtLeft | ( | array | $columnsToRepeatAtLeft | ) |
Set Columns to repeat at left.
array | $columnsToRepeatAtLeft | Containing start column and end column, empty array if option unset |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setColumnsToRepeatAtLeftByStartAndEnd | ( | string | $start, |
string | $end ) |
Set Columns to repeat at left by start and end.
string | $start | eg: 'A' |
string | $end | eg: 'B' |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setFirstPageNumber | ( | ?int | $value | ) |
Set first page number.
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setFitToHeight | ( | ?int | $fitToHeight, |
bool | $update = true ) |
Set Fit To Height.
bool | $update | Update fitToPage so it applies rather than scaling |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setFitToPage | ( | bool | $fitToPage | ) |
Set Fit To Page.
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setFitToWidth | ( | ?int | $value, |
bool | $update = true ) |
Set Fit To Width.
bool | $update | Update fitToPage so it applies rather than scaling |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setHorizontalCentered | ( | bool | $value | ) |
Set center page horizontally.
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setOrientation | ( | string | $orientation | ) |
Set Orientation.
string | $orientation | see self::ORIENTATION_* |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setPaperSize | ( | int | $paperSize | ) |
Set Paper Size.
int | $paperSize | see self::PAPERSIZE_* |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setPrintArea | ( | string | $value, |
int | $index = 0, | ||
string | $method = self::SETPRINTRANGE_OVERWRITE ) |
Set print area.
e.g. 'A1:D10' or 'A1:D10,G5:M20'.
int | $index | Identifier for a specific print area range allowing several ranges to be set When the method is "O"verwrite, then a positive integer index will overwrite that indexed entry in the print areas list; a negative index value will identify which entry to overwrite working bacward through the print area to the list, with the last entry as -1. Specifying an index value of 0, will overwrite all existing print ranges. When the method is "I"nsert, then a positive index will insert after that indexed entry in the print areas list, while a negative index will insert before the indexed entry. Specifying an index value of 0, will always append the new print range at the end of the list. Print areas are numbered from 1 |
string | $method | Determines the method used when setting multiple print areas Default behaviour, or the "O" method, overwrites existing print area The "I" method, inserts the new print area before any specified index, or at the end of the list |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setPrintAreaByColumnAndRow | ( | int | $column1, |
int | $row1, | ||
int | $column2, | ||
int | $row2, | ||
int | $index = 0, | ||
string | $method = self::SETPRINTRANGE_OVERWRITE ) |
Set print area.
int | $column1 | Column 1 |
int | $row1 | Row 1 |
int | $column2 | Column 2 |
int | $row2 | Row 2 |
int | $index | Identifier for a specific print area range allowing several ranges to be set When the method is "O"verwrite, then a positive integer index will overwrite that indexed entry in the print areas list; a negative index value will identify which entry to overwrite working backward through the print area to the list, with the last entry as -1. Specifying an index value of 0, will overwrite all existing print ranges. When the method is "I"nsert, then a positive index will insert after that indexed entry in the print areas list, while a negative index will insert before the indexed entry. Specifying an index value of 0, will always append the new print range at the end of the list. Print areas are numbered from 1 |
string | $method | Determines the method used when setting multiple print areas Default behaviour, or the "O" method, overwrites existing print area The "I" method, inserts the new print area before any specified index, or at the end of the list |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setRowsToRepeatAtTop | ( | array | $rowsToRepeatAtTop | ) |
Set Rows to repeat at top.
array | $rowsToRepeatAtTop | Containing start column and end column, empty array if option unset |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setRowsToRepeatAtTopByStartAndEnd | ( | int | $start, |
int | $end ) |
Set Rows to repeat at top by start and end.
int | $start | eg: 1 |
int | $end | eg: 1 |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setScale | ( | ?int | $scale, |
bool | $update = true ) |
Set Scale.
Print scaling. Valid values range from 10 to 400 This setting is overridden when fitToWidth and/or fitToHeight are in use.
bool | $update | Update fitToPage so scaling applies rather than fitToHeight / fitToWidth |
$this |
PhpOffice\PhpSpreadsheet\Worksheet\PageSetup::setVerticalCentered | ( | bool | $value | ) |
Set center page vertically.
$this |