ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\BookingManager\Notification\ReminderMailText Class Reference
+ Inheritance diagram for ILIAS\BookingManager\Notification\ReminderMailText:
+ Collaboration diagram for ILIAS\BookingManager\Notification\ReminderMailText:

Public Member Functions

 __construct (protected ?ReminderSection $personal=null, protected ?ReminderSection $admin=null)
 
 __toString ()
 

Private Member Functions

 sectionText (?ReminderSection $section)
 
 headerLine (PoolReservations $pool)
 
 divider ()
 

Detailed Description

Definition at line 23 of file ReminderMailText.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\BookingManager\Notification\ReminderMailText::__construct ( protected ?ReminderSection  $personal = null,
protected ?ReminderSection  $admin = null 
)

Definition at line 25 of file ReminderMailText.php.

28 {
29 }

Member Function Documentation

◆ __toString()

ILIAS\BookingManager\Notification\ReminderMailText::__toString ( )

Definition at line 31 of file ReminderMailText.php.

31 : string
32 {
33 return $this->sectionText($this->personal) . $this->sectionText($this->admin);
34 }

References ILIAS\BookingManager\Notification\ReminderMailText\sectionText().

+ Here is the call graph for this function:

◆ divider()

ILIAS\BookingManager\Notification\ReminderMailText::divider ( )
private

Definition at line 59 of file ReminderMailText.php.

59 : string
60 {
61 return str_repeat('-', 41);
62 }

References ILIAS\Scripts\PHPStan\str_repeat.

Referenced by ILIAS\BookingManager\Notification\ReminderMailText\sectionText().

+ Here is the caller graph for this function:

◆ headerLine()

ILIAS\BookingManager\Notification\ReminderMailText::headerLine ( PoolReservations  $pool)
private

Definition at line 54 of file ReminderMailText.php.

References ILIAS\BookingManager\Notification\PoolReservations\getGoto(), and ILIAS\BookingManager\Notification\PoolReservations\getTitle().

Referenced by ILIAS\BookingManager\Notification\ReminderMailText\sectionText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sectionText()

ILIAS\BookingManager\Notification\ReminderMailText::sectionText ( ?ReminderSection  $section)
private

Definition at line 36 of file ReminderMailText.php.

36 : string
37 {
38 if ($section === null) {
39 return '';
40 }
41
42 $text = "\n" . $section->getHeading() . "\n";
43 $text .= $this->divider() . "\n";
44 foreach ($section->getPools() as $pool) {
45 $text .= $this->headerLine($pool) . "\n";
46 foreach ($pool->getReservations() as $reservation) {
47 $text .= '- ' . $reservation . "\n";
48 }
49 }
50
51 return $text;
52 }
$text
Definition: xapiexit.php:21

References $text, ILIAS\BookingManager\Notification\ReminderMailText\divider(), ILIAS\BookingManager\Notification\ReminderSection\getHeading(), ILIAS\BookingManager\Notification\ReminderSection\getPools(), and ILIAS\BookingManager\Notification\ReminderMailText\headerLine().

Referenced by ILIAS\BookingManager\Notification\ReminderMailText\__toString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: