TYPO3 CMS  TYPO3_7-6
LogEntry.php
Go to the documentation of this file.
1 <?php
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 [];
413  }
414  $logData = @unserialize($this->logData);
415  if (!is_array($logData)) {
416  $logData = [];
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 }
getLogData()
Definition: LogEntry.php:409
setTableName($tableName)
Definition: LogEntry.php:231
setBackendUserUid($beUserUid)
Definition: LogEntry.php:168
$details
Definition: LogEntry.php:83
setRecordPid($recordPid)
Definition: LogEntry.php:252
$workspaceUid
Definition: LogEntry.php:132
getError()
Definition: LogEntry.php:283
setEventPid($eventPid)
Definition: LogEntry.php:427
$action
Definition: LogEntry.php:48
getEventPid()
Definition: LogEntry.php:437
getAction()
Definition: LogEntry.php:199
getTableName()
Definition: LogEntry.php:241
$recordUid
Definition: LogEntry.php:55
$tableName
Definition: LogEntry.php:62
setPid($pid)
Definition: LogEntry.php:147
getIp()
Definition: LogEntry.php:388
setAction($action)
Definition: LogEntry.php:189
getRecordUid()
Definition: LogEntry.php:220
getTstamp()
Definition: LogEntry.php:325
getWorkspaceUid()
Definition: LogEntry.php:458
Definition: LogEntry.php:23
$eventPid
Definition: LogEntry.php:125
setLogData($logData)
Definition: LogEntry.php:399
getDetailsNumber()
Definition: LogEntry.php:367
setDetails($details)
Definition: LogEntry.php:294
$ip
Definition: LogEntry.php:111
setTstamp($tstamp)
Definition: LogEntry.php:315
$pid
Definition: LogEntry.php:30
$backendUserUid
Definition: LogEntry.php:41
$tstamp
Definition: LogEntry.php:90
setRecordUid($recordUid)
Definition: LogEntry.php:210
setDetailsNumber($detailsNumber)
Definition: LogEntry.php:357
$newId
Definition: LogEntry.php:139
$logData
Definition: LogEntry.php:118
setNewId($newId)
Definition: LogEntry.php:469
$type
Definition: LogEntry.php:97
getNewId()
Definition: LogEntry.php:479
$detailsNumber
Definition: LogEntry.php:104
getDetails()
Definition: LogEntry.php:304
setError($error)
Definition: LogEntry.php:273
getPid()
Definition: LogEntry.php:157
getType()
Definition: LogEntry.php:346
getRecordPid()
Definition: LogEntry.php:262
$error
Definition: LogEntry.php:76
setType($type)
Definition: LogEntry.php:336
setWorkspaceUid($workspaceUid)
Definition: LogEntry.php:448
getBackendUserUid()
Definition: LogEntry.php:178
setIp($ip)
Definition: LogEntry.php:378
$recordPid
Definition: LogEntry.php:69