‪TYPO3CMS  ‪main
ReportDemand.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
28 {
29  public ?‪ReportStatus ‪$status = ReportStatus::New;
30  public ?‪Scope ‪$scope = null;
31  public ?array ‪$summaries = null;
32  public ?int ‪$requestTime = null;
33  public bool ‪$afterRequestTime = false;
34  public ?string ‪$orderFieldName = 'created';
35  public ?string ‪$orderDirection = 'desc';
36 
37  public static function ‪create(): self
38  {
39  return GeneralUtility::makeInstance(self::class);
40  }
41 
42  public static function ‪forSummaries(array ‪$summaries): self
43  {
44  $target = ‪self::create();
45  $target->status = null;
46  $target->summaries = ‪$summaries;
47  return $target;
48  }
49 }
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$afterRequestTime
‪bool $afterRequestTime
Definition: ReportDemand.php:33
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\create
‪static create()
Definition: ReportDemand.php:37
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$scope
‪Scope $scope
Definition: ReportDemand.php:30
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$requestTime
‪int $requestTime
Definition: ReportDemand.php:32
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand
Definition: ReportDemand.php:28
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$summaries
‪array $summaries
Definition: ReportDemand.php:31
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportStatus
‪ReportStatus
Definition: ReportStatus.php:24
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$orderDirection
‪string $orderDirection
Definition: ReportDemand.php:35
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope
Definition: Scope.php:30
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting
Definition: Report.php:18
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$status
‪ReportStatus $status
Definition: ReportDemand.php:29
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:52
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\$orderFieldName
‪string $orderFieldName
Definition: ReportDemand.php:34
‪TYPO3\CMS\Core\Security\ContentSecurityPolicy\Reporting\ReportDemand\forSummaries
‪static forSummaries(array $summaries)
Definition: ReportDemand.php:42