ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
RowDimension.php
Go to the documentation of this file.
1 <?php
2 
4 
5 class RowDimension extends Dimension
6 {
12  private $rowIndex;
13 
21  private $height = -1;
22 
28  private $zeroHeight = false;
29 
35  public function __construct($pIndex = 0)
36  {
37  // Initialise values
38  $this->rowIndex = $pIndex;
39 
40  // set dimension as unformatted by default
41  parent::__construct(null);
42  }
43 
47  public function getRowIndex(): int
48  {
49  return $this->rowIndex;
50  }
51 
57  public function setRowIndex(int $index)
58  {
59  $this->rowIndex = $index;
60 
61  return $this;
62  }
63 
69  public function getRowHeight()
70  {
71  return $this->height;
72  }
73 
81  public function setRowHeight($height)
82  {
83  $this->height = $height;
84 
85  return $this;
86  }
87 
91  public function getZeroHeight(): bool
92  {
93  return $this->zeroHeight;
94  }
95 
101  public function setZeroHeight(bool $pValue)
102  {
103  $this->zeroHeight = $pValue;
104 
105  return $this;
106  }
107 }
setZeroHeight(bool $pValue)
Set ZeroHeight.
__construct($pIndex=0)
Create a new RowDimension.
$index
Definition: metadata.php:60