ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Worksheet\Row Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Worksheet\Row:

Public Member Functions

 __construct (?Worksheet $worksheet=null, $rowIndex=1)
 Create a new row. More...
 
 __destruct ()
 Destructor. More...
 
 getRowIndex ()
 Get row index. More...
 
 getCellIterator ($startColumn='A', $endColumn=null)
 Get cell iterator. More...
 
 getWorksheet ()
 Returns bound worksheet. More...
 

Private Attributes

 $worksheet
 
 $rowIndex = 0
 

Detailed Description

Definition at line 5 of file Row.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\Row::__construct ( ?Worksheet  $worksheet = null,
  $rowIndex = 1 
)

Create a new row.

Parameters
Worksheet$worksheet
int$rowIndex

Definition at line 27 of file Row.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Row\$rowIndex, and PhpOffice\PhpSpreadsheet\Worksheet\Row\$worksheet.

28  {
29  // Set parent and row index
30  $this->worksheet = $worksheet;
31  $this->rowIndex = $rowIndex;
32  }

◆ __destruct()

PhpOffice\PhpSpreadsheet\Worksheet\Row::__destruct ( )

Destructor.

Definition at line 37 of file Row.php.

38  {
39  // @phpstan-ignore-next-line
40  $this->worksheet = null;
41  }

Member Function Documentation

◆ getCellIterator()

PhpOffice\PhpSpreadsheet\Worksheet\Row::getCellIterator (   $startColumn = 'A',
  $endColumn = null 
)

Get cell iterator.

Parameters
string$startColumnThe column address at which to start iterating
string$endColumnOptionally, the column address at which to stop iterating
Returns
RowCellIterator

Definition at line 59 of file Row.php.

Referenced by PhpOffice\PhpSpreadsheet\Writer\Ods\Content\writeRows().

60  {
61  return new RowCellIterator($this->worksheet, $this->rowIndex, $startColumn, $endColumn);
62  }
+ Here is the caller graph for this function:

◆ getRowIndex()

PhpOffice\PhpSpreadsheet\Worksheet\Row::getRowIndex ( )

Get row index.

Definition at line 46 of file Row.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Row\$rowIndex.

46  : int
47  {
48  return $this->rowIndex;
49  }

◆ getWorksheet()

PhpOffice\PhpSpreadsheet\Worksheet\Row::getWorksheet ( )

Returns bound worksheet.

Definition at line 67 of file Row.php.

References PhpOffice\PhpSpreadsheet\Worksheet\Row\$worksheet.

67  : Worksheet
68  {
69  return $this->worksheet;
70  }

Field Documentation

◆ $rowIndex

PhpOffice\PhpSpreadsheet\Worksheet\Row::$rowIndex = 0
private

◆ $worksheet

PhpOffice\PhpSpreadsheet\Worksheet\Row::$worksheet
private

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