ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Badge\Modal Class Reference
+ Collaboration diagram for ILIAS\Badge\Modal:

Public Member Functions

 __construct (private readonly Container $container, $sign_file=[ilWACSignedPath::class, 'signFile'])
 
 components (ModalContent $content)
 

Private Member Functions

 item (ModalContent $content)
 

Private Attributes

readonly Closure $sign_file
 

Detailed Description

Definition at line 32 of file Modal.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Badge\Modal::__construct ( private readonly Container  $container,
  $sign_file = [ilWACSignedPath::class,
'signFile']   
)

Definition at line 37 of file Modal.php.

40  {
41  $this->sign_file = Closure::fromCallable($sign_file);
42  }
readonly Closure $sign_file
Definition: Modal.php:35

Member Function Documentation

◆ components()

ILIAS\Badge\Modal::components ( ModalContent  $content)
Returns
list<Component>

Definition at line 47 of file Modal.php.

References ILIAS\Badge\ModalContent\badge(), and ILIAS\Badge\Modal\item().

47  : array
48  {
49  $modal_content = [];
50 
51  $modal_content[] = $this->container->ui()->factory()->image()->responsive(
52  ($this->sign_file)($content->badge()->getImagePath()),
53  $content->badge()->getImage()
54  );
55  $modal_content[] = $this->container->ui()->factory()->divider()->horizontal();
56  $modal_content[] = $this->item($content);
57 
58  return $modal_content;
59  }
item(ModalContent $content)
Definition: Modal.php:61
+ Here is the call graph for this function:

◆ item()

ILIAS\Badge\Modal::item ( ModalContent  $content)
private

Definition at line 61 of file Modal.php.

References ILIAS\Badge\ModalContent\badge(), and ILIAS\Badge\ModalContent\properties().

Referenced by ILIAS\Badge\Modal\components().

61  : Component
62  {
63  return $this->container
64  ->ui()
65  ->factory()
66  ->item()
67  ->standard($content->badge()->getTitle())
68  ->withDescription($content->badge()->getDescription())
69  ->withProperties($content->properties());
70  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $sign_file

readonly Closure ILIAS\Badge\Modal::$sign_file
private

Definition at line 35 of file Modal.php.


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