Updated gui for user facility settings (#1327)
[openemr.git] / vendor / phpoffice / phpexcel / Classes / PHPExcel / Worksheet / CellIterator.php
blob239cb4ff1f571858e5b5fdc0278b4efb0e969c6e
1 <?php
2 /**
3 * PHPExcel
5 * Copyright (c) 2006 - 2014 PHPExcel
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 * @category PHPExcel
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.8.0, 2014-03-02
29 /**
30 * PHPExcel_Worksheet_CellIterator
32 * Used to iterate rows in a PHPExcel_Worksheet
34 * @category PHPExcel
35 * @package PHPExcel_Worksheet
36 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
38 abstract class PHPExcel_Worksheet_CellIterator
40 /**
41 * PHPExcel_Worksheet to iterate
43 * @var PHPExcel_Worksheet
45 protected $_subject;
47 /**
48 * Current iterator position
50 * @var mixed
52 protected $_position = null;
54 /**
55 * Iterate only existing cells
57 * @var boolean
59 protected $_onlyExistingCells = false;
61 /**
62 * Destructor
64 public function __destruct() {
65 unset($this->_subject);
68 /**
69 * Get loop only existing cells
71 * @return boolean
73 public function getIterateOnlyExistingCells() {
74 return $this->_onlyExistingCells;
77 /**
78 * Validate start/end values for "IterateOnlyExistingCells" mode, and adjust if necessary
80 * @throws PHPExcel_Exception
82 abstract protected function adjustForExistingOnlyRange();
84 /**
85 * Set the iterator to loop only existing cells
87 * @param boolean $value
88 * @throws PHPExcel_Exception
90 public function setIterateOnlyExistingCells($value = true) {
91 $this->_onlyExistingCells = (boolean) $value;
93 $this->adjustForExistingOnlyRange();