Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

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

Defines 1 class

Row:: (14 methods):
  __construct()
  fromValues()
  getCells()
  setCells()
  setCellAtIndex()
  getCellAtIndex()
  addCell()
  getNumCells()
  getStyle()
  setStyle()
  setHeight()
  getHeight()
  toArray()
  isEmpty()


Class: Row  - X-Ref

__construct(array $cells, ?Style $style = null)   X-Ref
Row constructor.

param: Cell[] $cells

fromValues(array $cellValues = [], ?Style $rowStyle = null)   X-Ref

param: list<null|bool|DateInterval|DateTimeInterface|float|int|string> $cellValues

getCells()   X-Ref

return: Cell[] $cells

setCells(array $cells)   X-Ref

param: Cell[] $cells

setCellAtIndex(Cell $cell, int $cellIndex)   X-Ref
No description

getCellAtIndex(int $cellIndex)   X-Ref
No description

addCell(Cell $cell)   X-Ref
No description

getNumCells()   X-Ref
No description

getStyle()   X-Ref
No description

setStyle(?Style $style)   X-Ref
No description

setHeight(float $height)   X-Ref
Set row height.


getHeight()   X-Ref
Returns row height.


toArray()   X-Ref

return: list<null|bool|DateInterval|DateTimeInterface|float|int|string> The row values, as array

isEmpty()   X-Ref
Detect whether a row is considered empty.
An empty row has all of its cells empty.