ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
PageMargins.php
Go to the documentation of this file.
1<?php
37{
43 private $_left = 0.7;
44
50 private $_right = 0.7;
51
57 private $_top = 0.75;
58
64 private $_bottom = 0.75;
65
71 private $_header = 0.3;
72
78 private $_footer = 0.3;
79
83 public function __construct()
84 {
85 }
86
92 public function getLeft() {
93 return $this->_left;
94 }
95
102 public function setLeft($pValue) {
103 $this->_left = $pValue;
104 return $this;
105 }
106
112 public function getRight() {
113 return $this->_right;
114 }
115
122 public function setRight($pValue) {
123 $this->_right = $pValue;
124 return $this;
125 }
126
132 public function getTop() {
133 return $this->_top;
134 }
135
142 public function setTop($pValue) {
143 $this->_top = $pValue;
144 return $this;
145 }
146
152 public function getBottom() {
153 return $this->_bottom;
154 }
155
162 public function setBottom($pValue) {
163 $this->_bottom = $pValue;
164 return $this;
165 }
166
172 public function getHeader() {
173 return $this->_header;
174 }
175
182 public function setHeader($pValue) {
183 $this->_header = $pValue;
184 return $this;
185 }
186
192 public function getFooter() {
193 return $this->_footer;
194 }
195
202 public function setFooter($pValue) {
203 $this->_footer = $pValue;
204 return $this;
205 }
206
210 public function __clone() {
211 $vars = get_object_vars($this);
212 foreach ($vars as $key => $value) {
213 if (is_object($value)) {
214 $this->$key = clone $value;
215 } else {
216 $this->$key = $value;
217 }
218 }
219 }
220}
An exception for terminatinating execution or to throw for unit testing.
setHeader($pValue)
Set Header.
setFooter($pValue)
Set Footer.
__construct()
Create a new PHPExcel_Worksheet_PageMargins.
Definition: PageMargins.php:83
setRight($pValue)
Set Right.
__clone()
Implement PHP __clone to create a deep clone, not just a shallow copy.
setBottom($pValue)
Set Bottom.