[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/spout/src/Spout/Reader/CSV/ -> Sheet.php (source)

   1  <?php
   2  
   3  namespace Box\Spout\Reader\CSV;
   4  
   5  use Box\Spout\Reader\SheetInterface;
   6  
   7  /**
   8   * Class Sheet
   9   *
  10   * @package Box\Spout\Reader\CSV
  11   */
  12  class Sheet implements SheetInterface
  13  {
  14      /** @var \Box\Spout\Reader\CSV\RowIterator To iterate over the CSV's rows */
  15      protected $rowIterator;
  16  
  17      /**
  18       * @param resource $filePointer Pointer to the CSV file to read
  19       * @param string $fieldDelimiter Character that delimits fields
  20       * @param string $fieldEnclosure Character that enclose fields
  21       * @param string $encoding Encoding of the CSV file to be read
  22       * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper
  23       */
  24      public function __construct($filePointer, $fieldDelimiter, $fieldEnclosure, $encoding, $endOfLineCharacter, $globalFunctionsHelper)
  25      {
  26          $this->rowIterator = new RowIterator($filePointer, $fieldDelimiter, $fieldEnclosure, $encoding, $endOfLineCharacter, $globalFunctionsHelper);
  27      }
  28  
  29      /**
  30       * @api
  31       * @return \Box\Spout\Reader\CSV\RowIterator
  32       */
  33      public function getRowIterator()
  34      {
  35          return $this->rowIterator;
  36      }
  37  }


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1