Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 108 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Row:: (6 methods):
  __construct()
  __destruct()
  getRowIndex()
  getCellIterator()
  isEmpty()
  getWorksheet()


Class: Row  - X-Ref

__construct(Worksheet $worksheet, $rowIndex = 1)   X-Ref
Create a new row.

param: int $rowIndex

__destruct()   X-Ref
Destructor.


getRowIndex()   X-Ref
Get row index.


getCellIterator($startColumn = 'A', $endColumn = null)   X-Ref
Get cell iterator.

param: string $startColumn The column address at which to start iterating
param: string $endColumn Optionally, the column address at which to stop iterating
return: RowCellIterator

isEmpty(int $definitionOfEmptyFlags = 0)   X-Ref
Returns a boolean true if the row contains no cells. By default, this means that no cell records exist in the
collection for this row. false will be returned otherwise.
This rule can be modified by passing a $definitionOfEmptyFlags value:
1 - CellIterator::TREAT_NULL_VALUE_AS_EMPTY_CELL If the only cells in the collection are null value
cells, then the row will be considered empty.
2 - CellIterator::TREAT_EMPTY_STRING_AS_EMPTY_CELL If the only cells in the collection are empty
string value cells, then the row will be considered empty.
3 - CellIterator::TREAT_NULL_VALUE_AS_EMPTY_CELL | CellIterator::TREAT_EMPTY_STRING_AS_EMPTY_CELL
If the only cells in the collection are null value or empty string value cells, then the row
will be considered empty.

param: int $definitionOfEmptyFlags

getWorksheet()   X-Ref
Returns bound worksheet.