ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SubjectConfirmationNotBefore.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
12 {
13  public function validate(
14  SubjectConfirmation $subjectConfirmation,
16  ) {
17  $notBefore = $subjectConfirmation->SubjectConfirmationData->NotBefore;
18  if ($notBefore && $notBefore > Temporal::getTime() + 60) {
19  $result->addError('NotBefore in SubjectConfirmationData is in the future');
20  }
21  }
22 }
$result
static getTime()
Getter for getting the current timestamp.
Definition: Temporal.php:13
Simple Result object.
Definition: Result.php:10