MDL-63044 course: add get_enrolled_courses_by_timeline_classification
[moodle.git] / lib / phpexcel / PHPExcel / Worksheet / RowDimension.php
blobc1474862c482bff01634caa29a2232a922bfae1d
1 <?php
3 /**
4 * PHPExcel_Worksheet_RowDimension
6 * Copyright (c) 2006 - 2015 PHPExcel
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 * @category PHPExcel
23 * @package PHPExcel_Worksheet
24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
26 * @version ##VERSION##, ##DATE##
28 class PHPExcel_Worksheet_RowDimension extends PHPExcel_Worksheet_Dimension
30 /**
31 * Row index
33 * @var int
35 private $rowIndex;
37 /**
38 * Row height (in pt)
40 * When this is set to a negative value, the row height should be ignored by IWriter
42 * @var double
44 private $height = -1;
46 /**
47 * ZeroHeight for Row?
49 * @var bool
51 private $zeroHeight = false;
53 /**
54 * Create a new PHPExcel_Worksheet_RowDimension
56 * @param int $pIndex Numeric row index
58 public function __construct($pIndex = 0)
60 // Initialise values
61 $this->rowIndex = $pIndex;
63 // set dimension as unformatted by default
64 parent::__construct(null);
67 /**
68 * Get Row Index
70 * @return int
72 public function getRowIndex()
74 return $this->rowIndex;
77 /**
78 * Set Row Index
80 * @param int $pValue
81 * @return PHPExcel_Worksheet_RowDimension
83 public function setRowIndex($pValue)
85 $this->rowIndex = $pValue;
86 return $this;
89 /**
90 * Get Row Height
92 * @return double
94 public function getRowHeight()
96 return $this->height;
99 /**
100 * Set Row Height
102 * @param double $pValue
103 * @return PHPExcel_Worksheet_RowDimension
105 public function setRowHeight($pValue = -1)
107 $this->height = $pValue;
108 return $this;
112 * Get ZeroHeight
114 * @return bool
116 public function getZeroHeight()
118 return $this->zeroHeight;
122 * Set ZeroHeight
124 * @param bool $pValue
125 * @return PHPExcel_Worksheet_RowDimension
127 public function setZeroHeight($pValue = false)
129 $this->zeroHeight = $pValue;
130 return $this;