PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.5
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.5
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Services / Spout / Reader / CSV / Sheet.php

Sheet.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.5, at app/Services/Spout/Reader/CSV/Sheet.php

63 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 \Box\Spout\Reader\CSV\ReaderOptions $options
20 * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper
21 */
22 public function __construct($filePointer, $options, $globalFunctionsHelper)
23 {
24 $this->rowIterator = new RowIterator($filePointer, $options, $globalFunctionsHelper);
25 }
26
27 /**
28 * @api
29 * @return \Box\Spout\Reader\CSV\RowIterator
30 */
31 public function getRowIterator()
32 {
33 return $this->rowIterator;
34 }
35
36 /**
37 * @api
38 * @return int Index of the sheet
39 */
40 public function getIndex()
41 {
42 return 0;
43 }
44
45 /**
46 * @api
47 * @return string Name of the sheet - empty string since CSV does not support that
48 */
49 public function getName()
50 {
51 return '';
52 }
53
54 /**
55 * @api
56 * @return bool Always TRUE as there is only one sheet
57 */
58 public function isActive()
59 {
60 return true;
61 }
62 }
63