You are here

class PHPExcel_Worksheet_Column in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php \PHPExcel_Worksheet_Column

PHPExcel_Worksheet_Column

Represents a column in PHPExcel_Worksheet, used by PHPExcel_Worksheet_ColumnIterator

@category PHPExcel @package PHPExcel_Worksheet @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

Hierarchy

Expanded class hierarchy of PHPExcel_Worksheet_Column

4 string references to 'PHPExcel_Worksheet_Column'
ColumnIteratorTest::testIteratorFullRange in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/ColumnIteratorTest.php
ColumnIteratorTest::testIteratorStartEndRange in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/ColumnIteratorTest.php
WorksheetColumnTest::testInstantiateColumnDefault in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/WorksheetColumnTest.php
WorksheetColumnTest::testInstantiateColumnSpecified in vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Worksheet/WorksheetColumnTest.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/Column.php, line 38

View source
class PHPExcel_Worksheet_Column {

  /**
   * PHPExcel_Worksheet
   *
   * @var PHPExcel_Worksheet
   */
  private $_parent;

  /**
   * Column index
   *
   * @var string
   */
  private $_columnIndex;

  /**
   * Create a new column
   *
   * @param PHPExcel_Worksheet 	$parent
   * @param string				$columnIndex
   */
  public function __construct(PHPExcel_Worksheet $parent = null, $columnIndex = 'A') {

    // Set parent and column index
    $this->_parent = $parent;
    $this->_columnIndex = $columnIndex;
  }

  /**
   * Destructor
   */
  public function __destruct() {
    unset($this->_parent);
  }

  /**
   * Get column index
   *
   * @return int
   */
  public function getColumnIndex() {
    return $this->_columnIndex;
  }

  /**
   * Get cell iterator
   *
   * @param	integer				$startRow	    The row number at which to start iterating
   * @param	integer				$endRow	        Optionally, the row number at which to stop iterating
   * @return PHPExcel_Worksheet_CellIterator
   */
  public function getCellIterator($startRow = 1, $endRow = null) {
    return new PHPExcel_Worksheet_ColumnCellIterator($this->_parent, $this->_columnIndex, $startRow, $endRow);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPExcel_Worksheet_Column::$_columnIndex private property * Column index * *
PHPExcel_Worksheet_Column::$_parent private property * PHPExcel_Worksheet * *
PHPExcel_Worksheet_Column::getCellIterator public function * Get cell iterator * *
PHPExcel_Worksheet_Column::getColumnIndex public function * Get column index * *
PHPExcel_Worksheet_Column::__construct public function * Create a new column * *
PHPExcel_Worksheet_Column::__destruct public function * Destructor