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.

(no description)

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

Defines 1 class

CellAddress:: (16 methods):
  __construct()
  validateColumnAndRow()
  fromColumnAndRow()
  fromColumnRowArray()
  fromCellAddress()
  fullCellAddress()
  worksheet()
  cellAddress()
  rowId()
  columnId()
  columnName()
  nextRow()
  previousRow()
  nextColumn()
  previousColumn()
  __toString()


Class: CellAddress  - X-Ref

__construct(string $cellAddress, ?Worksheet $worksheet = null)   X-Ref


validateColumnAndRow($columnId, $rowId)   X-Ref

param: mixed $columnId
param: mixed $rowId

fromColumnAndRow($columnId, $rowId, ?Worksheet $worksheet = null)   X-Ref

param: mixed $columnId
param: mixed $rowId

fromColumnRowArray(array $array, ?Worksheet $worksheet = null)   X-Ref
No description

fromCellAddress($cellAddress, ?Worksheet $worksheet = null)   X-Ref

param: mixed $cellAddress

fullCellAddress()   X-Ref
The returned address string will contain the worksheet name as well, if available,
(ie. if a Worksheet was provided to the constructor).
e.g. "'Mark''s Worksheet'!C5".


worksheet()   X-Ref
No description

cellAddress()   X-Ref
The returned address string will contain just the column/row address,
(even if a Worksheet was provided to the constructor).
e.g. "C5".


rowId()   X-Ref
No description

columnId()   X-Ref
No description

columnName()   X-Ref
No description

nextRow(int $offset = 1)   X-Ref
No description

previousRow(int $offset = 1)   X-Ref
No description

nextColumn(int $offset = 1)   X-Ref
No description

previousColumn(int $offset = 1)   X-Ref
No description

__toString()   X-Ref
The returned address string will contain the worksheet name as well, if available,
(ie. if a Worksheet was provided to the constructor).
e.g. "'Mark''s Worksheet'!C5".