Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
OpenSpout\Common\Entity\Row Class Reference

Public Member Functions

 __construct (array $cells, ?Style $style=null)
 Row constructor.
 
 addCell (Cell $cell)
 
 getCellAtIndex (int $cellIndex)
 
 getCells ()
 
 getHeight ()
 Returns row height.
 
 getNumCells ()
 
 getStyle ()
 
 isEmpty ()
 Detect whether a row is considered empty.
 
 setCellAtIndex (Cell $cell, int $cellIndex)
 
 setCells (array $cells)
 
 setHeight (float $height)
 Set row height.
 
 setStyle (?Style $style)
 
 toArray ()
 

Static Public Member Functions

static fromValues (array $cellValues=[], ?Style $rowStyle=null)
 

Constructor & Destructor Documentation

◆ __construct()

OpenSpout\Common\Entity\Row::__construct ( array $cells,
?Style $style = null )

Row constructor.

Parameters
Cell[]$cells

Member Function Documentation

◆ fromValues()

static OpenSpout\Common\Entity\Row::fromValues ( array $cellValues = [],
?Style $rowStyle = null )
static
Parameters
list<null|bool|DateInterval|DateTimeInterface|float|int|string>$cellValues

◆ getCells()

OpenSpout\Common\Entity\Row::getCells ( )
Return values
Cell[]\$cells

◆ isEmpty()

OpenSpout\Common\Entity\Row::isEmpty ( )

Detect whether a row is considered empty.

An empty row has all of its cells empty.

◆ setCells()

OpenSpout\Common\Entity\Row::setCells ( array $cells)
Parameters
Cell[]$cells

◆ toArray()

OpenSpout\Common\Entity\Row::toArray ( )
Return values
list<null|bool|DateInterval|DateTimeInterface|float|int|string>The row values, as array

The documentation for this class was generated from the following file: