TYPO3 CMS  TYPO3_8-7
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 
146  public function setPid($pid)
147  {
148  $this->pid = (int)$pid;
149  }
150 
156  public function getPid()
157  {
158  return $this->pid;
159  }
160 
166  public function setBackendUserUid($beUserUid)
167  {
168  $this->backendUserUid = $beUserUid;
169  }
170 
176  public function getBackendUserUid()
177  {
178  return $this->backendUserUid;
179  }
180 
186  public function setAction($action)
187  {
188  $this->action = $action;
189  }
190 
196  public function getAction()
197  {
198  return (int)$this->action;
199  }
200 
206  public function setRecordUid($recordUid)
207  {
208  $this->recordUid = $recordUid;
209  }
210 
216  public function getRecordUid()
217  {
218  return (int)$this->recordUid;
219  }
220 
226  public function setTableName($tableName)
227  {
228  $this->tableName = $tableName;
229  }
230 
236  public function getTableName()
237  {
238  return $this->tableName;
239  }
240 
246  public function setRecordPid($recordPid)
247  {
248  $this->recordPid = $recordPid;
249  }
250 
256  public function getRecordPid()
257  {
258  return (int)$this->recordPid;
259  }
260 
266  public function setError($error)
267  {
268  $this->error = $error;
269  }
270 
276  public function getError()
277  {
278  return (int)$this->error;
279  }
280 
286  public function setDetails($details)
287  {
288  $this->details = $details;
289  }
290 
296  public function getDetails()
297  {
298  return $this->details;
299  }
300 
306  public function setTstamp($tstamp)
307  {
308  $this->tstamp = $tstamp;
309  }
310 
316  public function getTstamp()
317  {
318  return (int)$this->tstamp;
319  }
320 
326  public function setType($type)
327  {
328  $this->type = $type;
329  }
330 
336  public function getType()
337  {
338  return (int)$this->type;
339  }
340 
347  {
348  $this->detailsNumber = $detailsNumber;
349  }
350 
356  public function getDetailsNumber()
357  {
358  return (int)$this->detailsNumber;
359  }
360 
366  public function setIp($ip)
367  {
368  $this->ip = $ip;
369  }
370 
376  public function getIp()
377  {
378  return $this->ip;
379  }
380 
386  public function setLogData($logData)
387  {
388  $this->logData = $logData;
389  }
390 
396  public function getLogData()
397  {
398  if ($this->logData === '') {
399  return [];
400  }
401  $logData = @unserialize($this->logData);
402  if (!is_array($logData)) {
403  $logData = [];
404  }
405  return $logData;
406  }
407 
413  public function setEventPid($eventPid)
414  {
415  $this->eventPid = $eventPid;
416  }
417 
423  public function getEventPid()
424  {
425  return (int)$this->eventPid;
426  }
427 
434  {
435  $this->workspaceUid = $workspaceUid;
436  }
437 
443  public function getWorkspaceUid()
444  {
445  return (int)$this->workspaceUid;
446  }
447 
453  public function setNewId($newId)
454  {
455  $this->newId = $newId;
456  }
457 
463  public function getNewId()
464  {
465  return $this->newId;
466  }
467 }
getLogData()
Definition: LogEntry.php:396
setTableName($tableName)
Definition: LogEntry.php:226
setBackendUserUid($beUserUid)
Definition: LogEntry.php:166
$details
Definition: LogEntry.php:83
setRecordPid($recordPid)
Definition: LogEntry.php:246
$workspaceUid
Definition: LogEntry.php:132
getError()
Definition: LogEntry.php:276
setEventPid($eventPid)
Definition: LogEntry.php:413
$action
Definition: LogEntry.php:48
getEventPid()
Definition: LogEntry.php:423
getAction()
Definition: LogEntry.php:196
getTableName()
Definition: LogEntry.php:236
$recordUid
Definition: LogEntry.php:55
$tableName
Definition: LogEntry.php:62
setPid($pid)
Definition: LogEntry.php:146
getIp()
Definition: LogEntry.php:376
setAction($action)
Definition: LogEntry.php:186
getRecordUid()
Definition: LogEntry.php:216
getTstamp()
Definition: LogEntry.php:316
getWorkspaceUid()
Definition: LogEntry.php:443
Definition: LogEntry.php:23
$eventPid
Definition: LogEntry.php:125
setLogData($logData)
Definition: LogEntry.php:386
getDetailsNumber()
Definition: LogEntry.php:356
setDetails($details)
Definition: LogEntry.php:286
$ip
Definition: LogEntry.php:111
setTstamp($tstamp)
Definition: LogEntry.php:306
$pid
Definition: LogEntry.php:30
$backendUserUid
Definition: LogEntry.php:41
$tstamp
Definition: LogEntry.php:90
setRecordUid($recordUid)
Definition: LogEntry.php:206
setDetailsNumber($detailsNumber)
Definition: LogEntry.php:346
$newId
Definition: LogEntry.php:139
$logData
Definition: LogEntry.php:118
setNewId($newId)
Definition: LogEntry.php:453
$type
Definition: LogEntry.php:97
getNewId()
Definition: LogEntry.php:463
$detailsNumber
Definition: LogEntry.php:104
getDetails()
Definition: LogEntry.php:296
setError($error)
Definition: LogEntry.php:266
getPid()
Definition: LogEntry.php:156
getType()
Definition: LogEntry.php:336
getRecordPid()
Definition: LogEntry.php:256
$error
Definition: LogEntry.php:76
setType($type)
Definition: LogEntry.php:326
setWorkspaceUid($workspaceUid)
Definition: LogEntry.php:433
getBackendUserUid()
Definition: LogEntry.php:176
setIp($ip)
Definition: LogEntry.php:366
$recordPid
Definition: LogEntry.php:69