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

Public Member Functions

 __construct (?Worksheet $parent=null, $columnIndex='A')
 Create a new column. More...
 
 __destruct ()
 Destructor. More...
 
 getColumnIndex ()
 Get column index as string eg: 'A'. More...
 
 getCellIterator ($startRow=1, $endRow=null)
 Get cell iterator. More...
 

Private Attributes

 $parent
 
 $columnIndex
 

Detailed Description

Definition at line 5 of file Column.php.

Constructor & Destructor Documentation

◆ __construct()

PhpOffice\PhpSpreadsheet\Worksheet\Column::__construct ( ?Worksheet  $parent = null,
  $columnIndex = 'A' 
)

Create a new column.

Parameters
Worksheet$parent
string$columnIndex

Definition at line 27 of file Column.php.

28 {
29 // Set parent and column index
30 $this->parent = $parent;
31 $this->columnIndex = $columnIndex;
32 }

References PhpOffice\PhpSpreadsheet\Worksheet\Column\$columnIndex, and PhpOffice\PhpSpreadsheet\Worksheet\Column\$parent.

◆ __destruct()

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

Destructor.

Definition at line 37 of file Column.php.

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

Member Function Documentation

◆ getCellIterator()

PhpOffice\PhpSpreadsheet\Worksheet\Column::getCellIterator (   $startRow = 1,
  $endRow = null 
)

Get cell iterator.

Parameters
int$startRowThe row number at which to start iterating
int$endRowOptionally, the row number at which to stop iterating
Returns
ColumnCellIterator

Definition at line 59 of file Column.php.

60 {
61 return new ColumnCellIterator($this->parent, $this->columnIndex, $startRow, $endRow);
62 }

◆ getColumnIndex()

PhpOffice\PhpSpreadsheet\Worksheet\Column::getColumnIndex ( )

Get column index as string eg: 'A'.

Definition at line 46 of file Column.php.

46 : string
47 {
48 return $this->columnIndex;
49 }

References PhpOffice\PhpSpreadsheet\Worksheet\Column\$columnIndex.

Field Documentation

◆ $columnIndex

PhpOffice\PhpSpreadsheet\Worksheet\Column::$columnIndex
private

◆ $parent

PhpOffice\PhpSpreadsheet\Worksheet\Column::$parent
private

Definition at line 12 of file Column.php.

Referenced by PhpOffice\PhpSpreadsheet\Worksheet\Column\__construct().


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