TYPO3  7.6
LogEntry.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Belog\Domain\Model;
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
24 {
30  protected $pid = 0;
31 
41  protected $backendUserUid = 0;
42 
48  protected $action = 0;
49 
55  protected $recordUid = 0;
56 
62  protected $tableName = 0;
63 
69  protected $recordPid = 0;
70 
76  protected $error = 0;
77 
83  protected $details = '';
84 
90  protected $tstamp = 0;
91 
97  protected $type = 0;
98 
104  protected $detailsNumber = 0;
105 
111  protected $ip = '';
112 
118  protected $logData = '';
119 
125  protected $eventPid = 0;
126 
132  protected $workspaceUid = 0;
133 
139  protected $newId = 0;
140 
147  public function setPid($pid)
148  {
149  $this->pid = (int)$pid;
150  }
151 
157  public function getPid()
158  {
159  return $this->pid;
160  }
161 
168  public function setBackendUserUid($beUserUid)
169  {
170  $this->backendUserUid = $beUserUid;
171  }
172 
178  public function getBackendUserUid()
179  {
180  return $this->backendUserUid;
181  }
182 
189  public function setAction($action)
190  {
191  $this->action = $action;
192  }
193 
199  public function getAction()
200  {
201  return (int)$this->action;
202  }
203 
210  public function setRecordUid($recordUid)
211  {
212  $this->recordUid = $recordUid;
213  }
214 
220  public function getRecordUid()
221  {
222  return (int)$this->recordUid;
223  }
224 
231  public function setTableName($tableName)
232  {
233  $this->tableName = $tableName;
234  }
235 
241  public function getTableName()
242  {
243  return $this->tableName;
244  }
245 
252  public function setRecordPid($recordPid)
253  {
254  $this->recordPid = $recordPid;
255  }
256 
262  public function getRecordPid()
263  {
264  return (int)$this->recordPid;
265  }
266 
273  public function setError($error)
274  {
275  $this->error = $error;
276  }
277 
283  public function getError()
284  {
285  return (int)$this->error;
286  }
287 
294  public function setDetails($details)
295  {
296  $this->details = $details;
297  }
298 
304  public function getDetails()
305  {
306  return $this->details;
307  }
308 
315  public function setTstamp($tstamp)
316  {
317  $this->tstamp = $tstamp;
318  }
319 
325  public function getTstamp()
326  {
327  return (int)$this->tstamp;
328  }
329 
336  public function setType($type)
337  {
338  $this->type = $type;
339  }
340 
346  public function getType()
347  {
348  return (int)$this->type;
349  }
350 
358  {
359  $this->detailsNumber = $detailsNumber;
360  }
361 
367  public function getDetailsNumber()
368  {
369  return (int)$this->detailsNumber;
370  }
371 
378  public function setIp($ip)
379  {
380  $this->ip = $ip;
381  }
382 
388  public function getIp()
389  {
390  return $this->ip;
391  }
392 
399  public function setLogData($logData)
400  {
401  $this->logData = $logData;
402  }
403 
409  public function getLogData()
410  {
411  if ($this->logData === '') {
412  return array();
413  }
414  $logData = @unserialize($this->logData);
415  if (!is_array($logData)) {
416  $logData = array();
417  }
418  return $logData;
419  }
420 
427  public function setEventPid($eventPid)
428  {
429  $this->eventPid = $eventPid;
430  }
431 
437  public function getEventPid()
438  {
439  return (int)$this->eventPid;
440  }
441 
449  {
450  $this->workspaceUid = $workspaceUid;
451  }
452 
458  public function getWorkspaceUid()
459  {
460  return (int)$this->workspaceUid;
461  }
462 
469  public function setNewId($newId)
470  {
471  $this->newId = $newId;
472  }
473 
479  public function getNewId()
480  {
481  return $this->newId;
482  }
483 }