‪TYPO3CMS  11.5
TYPO3\CMS\Belog\Domain\Model\Constraint Class Reference

Public Member Functions

 setUserOrGroup ($user)
 
string getUserOrGroup ()
 
 setNumber ($number)
 
int getNumber ()
 
 setWorkspaceUid ($workspace)
 
int getWorkspaceUid ()
 
 setChannel (string $channel)
 
 getChannel ()
 
 setLevel (string $level)
 
 getLevel ()
 
 setStartTimestamp ($timestamp)
 
int getStartTimestamp ()
 
 setEndTimestamp ($timestamp)
 
int getEndTimestamp ()
 
 setPageId ($id)
 
int getPageId ()
 
 setDepth ($depth)
 
int getDepth ()
 
 setManualDateStart (?\DateTime $manualDateStart=null)
 
DateTime null getManualDateStart ()
 
 setManualDateStop (?\DateTime $manualDateStop=null)
 
DateTime null getManualDateStop ()
 

Protected Attributes

string $userOrGroup = '0'
 
int $number = 20
 
int $workspaceUid = Workspace::UID_ANY_WORKSPACE
 
string $channel = ''
 
string $level = LogLevel::DEBUG
 
int $startTimestamp = 0
 
int $endTimestamp = 0
 
DateTime null $manualDateStart
 
DateTime null $manualDateStop
 
int $pageId = 0
 
int $depth = 0
 

Detailed Description

Constraints for log entries

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 24 of file Constraint.php.

Member Function Documentation

◆ getChannel()

TYPO3\CMS\Belog\Domain\Model\Constraint::getChannel ( )

◆ getDepth()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getDepth ( )

◆ getEndTimestamp()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getEndTimestamp ( )

Get calculated end timestamp from query constraints

Returns
‪int

Definition at line 219 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$endTimestamp.

Referenced by TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository\createQueryConstraints().

◆ getLevel()

TYPO3\CMS\Belog\Domain\Model\Constraint::getLevel ( )

◆ getManualDateStart()

DateTime null TYPO3\CMS\Belog\Domain\Model\Constraint::getManualDateStart ( )

Get manual date start

Returns
‪\DateTime|null

Definition at line 279 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStart.

Referenced by TYPO3\CMS\Belog\Controller\BackendLogController\setStartAndEndTimeFromTimeSelector().

◆ getManualDateStop()

DateTime null TYPO3\CMS\Belog\Domain\Model\Constraint::getManualDateStop ( )

Get manual date stop

Returns
‪\DateTime|null

Definition at line 299 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStop.

Referenced by TYPO3\CMS\Belog\Controller\BackendLogController\setStartAndEndTimeFromTimeSelector().

◆ getNumber()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getNumber ( )

Get number of log entries to show

Returns
‪int

Definition at line 127 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$number.

Referenced by TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository\findByConstraint().

◆ getPageId()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getPageId ( )

◆ getStartTimestamp()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getStartTimestamp ( )

Get calculated start timestamp from query constraints

Returns
‪int

Definition at line 199 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$startTimestamp.

Referenced by TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository\createQueryConstraints().

◆ getUserOrGroup()

string TYPO3\CMS\Belog\Domain\Model\Constraint::getUserOrGroup ( )

◆ getWorkspaceUid()

int TYPO3\CMS\Belog\Domain\Model\Constraint::getWorkspaceUid ( )

◆ setChannel()

TYPO3\CMS\Belog\Domain\Model\Constraint::setChannel ( string  $channel)

Set channel

Definition at line 155 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$channel.

◆ setDepth()

TYPO3\CMS\Belog\Domain\Model\Constraint::setDepth (   $depth)

Set page level depth

Parameters
int$depth

Definition at line 249 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$depth.

◆ setEndTimestamp()

TYPO3\CMS\Belog\Domain\Model\Constraint::setEndTimestamp (   $timestamp)

Set calculated end timestamp from query constraints

Parameters
int$timestamp

Definition at line 209 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Controller\BackendLogController\setStartAndEndTimeFromTimeSelector().

◆ setLevel()

TYPO3\CMS\Belog\Domain\Model\Constraint::setLevel ( string  $level)

Set level

Definition at line 171 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$level.

◆ setManualDateStart()

TYPO3\CMS\Belog\Domain\Model\Constraint::setManualDateStart ( ?\DateTime  $manualDateStart = null)

Set manual date start

Parameters
\DateTime | null$manualDateStart

Definition at line 269 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStart.

◆ setManualDateStop()

TYPO3\CMS\Belog\Domain\Model\Constraint::setManualDateStop ( ?\DateTime  $manualDateStop = null)

Set manual date stop

Parameters
\DateTime$manualDateStop

Definition at line 289 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$manualDateStop.

◆ setNumber()

TYPO3\CMS\Belog\Domain\Model\Constraint::setNumber (   $number)

Set number of log rows to show

Parameters
int$number

Definition at line 117 of file Constraint.php.

References TYPO3\CMS\Belog\Domain\Model\Constraint\$number.

◆ setPageId()

TYPO3\CMS\Belog\Domain\Model\Constraint::setPageId (   $id)

Set page id

Parameters
int$id

Definition at line 229 of file Constraint.php.

◆ setStartTimestamp()

TYPO3\CMS\Belog\Domain\Model\Constraint::setStartTimestamp (   $timestamp)

Set calculated start timestamp from query constraints

Parameters
int$timestamp

Definition at line 189 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Controller\BackendLogController\setStartAndEndTimeFromTimeSelector().

◆ setUserOrGroup()

TYPO3\CMS\Belog\Domain\Model\Constraint::setUserOrGroup (   $user)

Set user

Parameters
string$user

Definition at line 97 of file Constraint.php.

◆ setWorkspaceUid()

TYPO3\CMS\Belog\Domain\Model\Constraint::setWorkspaceUid (   $workspace)

Set workspace

Parameters
int$workspace

Definition at line 137 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Controller\BackendLogController\forceWorkspaceSelectionIfInWorkspace().

Member Data Documentation

◆ $channel

string TYPO3\CMS\Belog\Domain\Model\Constraint::$channel = ''
protected

◆ $depth

int TYPO3\CMS\Belog\Domain\Model\Constraint::$depth = 0
protected

◆ $endTimestamp

int TYPO3\CMS\Belog\Domain\Model\Constraint::$endTimestamp = 0
protected

Calculated end timestamp

Definition at line 68 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getEndTimestamp().

◆ $level

string TYPO3\CMS\Belog\Domain\Model\Constraint::$level = LogLevel::DEBUG
protected

◆ $manualDateStart

DateTime null TYPO3\CMS\Belog\Domain\Model\Constraint::$manualDateStart
protected

◆ $manualDateStop

DateTime null TYPO3\CMS\Belog\Domain\Model\Constraint::$manualDateStop
protected

◆ $number

int TYPO3\CMS\Belog\Domain\Model\Constraint::$number = 20
protected

Number of log rows to show

Definition at line 36 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getNumber(), and TYPO3\CMS\Belog\Domain\Model\Constraint\setNumber().

◆ $pageId

int TYPO3\CMS\Belog\Domain\Model\Constraint::$pageId = 0
protected

Selected page ID in page context

Definition at line 84 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getPageId().

◆ $startTimestamp

int TYPO3\CMS\Belog\Domain\Model\Constraint::$startTimestamp = 0
protected

Calculated start timestamp

Definition at line 62 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getStartTimestamp().

◆ $userOrGroup

string TYPO3\CMS\Belog\Domain\Model\Constraint::$userOrGroup = '0'
protected

Selected user/group; possible values are "gr-<uid>" for a group, "us-<uid>" for a user or -1 for "all users"

Definition at line 30 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getUserOrGroup().

◆ $workspaceUid

int TYPO3\CMS\Belog\Domain\Model\Constraint::$workspaceUid = Workspace::UID_ANY_WORKSPACE
protected

UID of selected workspace

Definition at line 42 of file Constraint.php.

Referenced by TYPO3\CMS\Belog\Domain\Model\Constraint\getWorkspaceUid().