ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
DocumentProperties.php
Go to the documentation of this file.
1 <?php
37 {
43  private $_creator;
44 
51 
57  private $_created;
58 
64  private $_modified;
65 
71  private $_title;
72 
78  private $_description;
79 
85  private $_subject;
86 
92  private $_keywords;
93 
99  private $_category;
100 
106  private $_company;
107 
111  public function __construct()
112  {
113  // Initialise values
114  $this->_creator = 'Unknown Creator';
115  $this->_lastModifiedBy = $this->_creator;
116  $this->_created = time();
117  $this->_modified = time();
118  $this->_title = "Untitled Spreadsheet";
119  $this->_subject = '';
120  $this->_description = '';
121  $this->_keywords = '';
122  $this->_category = '';
123  $this->_company = 'Microsoft Corporation';
124  }
125 
131  public function getCreator() {
132  return $this->_creator;
133  }
134 
141  public function setCreator($pValue = '') {
142  $this->_creator = $pValue;
143  return $this;
144  }
145 
151  public function getLastModifiedBy() {
152  return $this->_lastModifiedBy;
153  }
154 
161  public function setLastModifiedBy($pValue = '') {
162  $this->_lastModifiedBy = $pValue;
163  return $this;
164  }
165 
171  public function getCreated() {
172  return $this->_created;
173  }
174 
181  public function setCreated($pValue = null) {
182  if (is_null($pValue)) {
183  $pValue = time();
184  }
185  $this->_created = $pValue;
186  return $this;
187  }
188 
194  public function getModified() {
195  return $this->_modified;
196  }
197 
204  public function setModified($pValue = null) {
205  if (is_null($pValue)) {
206  $pValue = time();
207  }
208  $this->_modified = $pValue;
209  return $this;
210  }
211 
217  public function getTitle() {
218  return $this->_title;
219  }
220 
227  public function setTitle($pValue = '') {
228  $this->_title = $pValue;
229  return $this;
230  }
231 
237  public function getDescription() {
238  return $this->_description;
239  }
240 
247  public function setDescription($pValue = '') {
248  $this->_description = $pValue;
249  return $this;
250  }
251 
257  public function getSubject() {
258  return $this->_subject;
259  }
260 
267  public function setSubject($pValue = '') {
268  $this->_subject = $pValue;
269  return $this;
270  }
271 
277  public function getKeywords() {
278  return $this->_keywords;
279  }
280 
287  public function setKeywords($pValue = '') {
288  $this->_keywords = $pValue;
289  return $this;
290  }
291 
297  public function getCategory() {
298  return $this->_category;
299  }
300 
307  public function setCategory($pValue = '') {
308  $this->_category = $pValue;
309  return $this;
310  }
311 
317  public function getCompany() {
318  return $this->_company;
319  }
320 
327  public function setCompany($pValue = '') {
328  $this->_company = $pValue;
329  return $this;
330  }
331 
335  public function __clone() {
336  $vars = get_object_vars($this);
337  foreach ($vars as $key => $value) {
338  if (is_object($value)) {
339  $this->$key = clone $value;
340  } else {
341  $this->$key = $value;
342  }
343  }
344  }
345 }