ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
PageMargins.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_left;
44 
50  private $_right;
51 
57  private $_top;
58 
64  private $_bottom;
65 
71  private $_header;
72 
78  private $_footer;
79 
83  public function __construct()
84  {
85  // Initialise values
86  $this->_left = 0.7;
87  $this->_right = 0.7;
88  $this->_top = 0.75;
89  $this->_bottom = 0.75;
90  $this->_header = 0.3;
91  $this->_footer = 0.3;
92  }
93 
99  public function getLeft() {
100  return $this->_left;
101  }
102 
109  public function setLeft($pValue) {
110  $this->_left = $pValue;
111  return $this;
112  }
113 
119  public function getRight() {
120  return $this->_right;
121  }
122 
129  public function setRight($pValue) {
130  $this->_right = $pValue;
131  return $this;
132  }
133 
139  public function getTop() {
140  return $this->_top;
141  }
142 
149  public function setTop($pValue) {
150  $this->_top = $pValue;
151  return $this;
152  }
153 
159  public function getBottom() {
160  return $this->_bottom;
161  }
162 
169  public function setBottom($pValue) {
170  $this->_bottom = $pValue;
171  return $this;
172  }
173 
179  public function getHeader() {
180  return $this->_header;
181  }
182 
189  public function setHeader($pValue) {
190  $this->_header = $pValue;
191  return $this;
192  }
193 
199  public function getFooter() {
200  return $this->_footer;
201  }
202 
209  public function setFooter($pValue) {
210  $this->_footer = $pValue;
211  return $this;
212  }
213 
217  public function __clone() {
218  $vars = get_object_vars($this);
219  foreach ($vars as $key => $value) {
220  if (is_object($value)) {
221  $this->$key = clone $value;
222  } else {
223  $this->$key = $value;
224  }
225  }
226  }
227 }