| 
|   | __construct (private readonly Container $container, private readonly string $gui, private readonly Tile $tile, private readonly PresentationHeader $head, $assignments_of_user=[ilBadgeAssignment::class, 'getInstancesByUserId']) | 
|   | 
|   | show () | 
|   | 
Definition at line 29 of file TileView.php.
 
◆ __construct()
      
        
          | ILIAS\Badge\TileView::__construct  | 
          ( | 
          private readonly Container  | 
          $container,  | 
        
        
           | 
           | 
          private readonly string  | 
          $gui,  | 
        
        
           | 
           | 
          private readonly Tile  | 
          $tile,  | 
        
        
           | 
           | 
          private readonly PresentationHeader  | 
          $head,  | 
        
        
           | 
           | 
            | 
          $assignments_of_user = [ilBadgeAssignment::class,  | 
        
        
           | 
           | 
          'getInstancesByUserId']  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
  
 
Definition at line 37 of file TileView.php.
Closure $assignments_of_user
 
 
 
 
◆ badgesAndAssignments()
  
  
      
        
          | ILIAS\Badge\TileView::badgesAndAssignments  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ cardsAndModals()
  
  
      
        
          | ILIAS\Badge\TileView::cardsAndModals  | 
          ( | 
          array  | 
          $badge_and_assignments | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ componentsOfBadges()
  
  
      
        
          | ILIAS\Badge\TileView::componentsOfBadges  | 
          ( | 
          array  | 
          $badge_and_assignments | ) | 
           | 
         
       
   | 
  
private   | 
  
 
- Parameters
 - 
  
  
 
- Returns
 - list<Component> 
 
Definition at line 78 of file TileView.php.
References ILIAS\Badge\TileView\cardsAndModals().
Referenced by ILIAS\Badge\TileView\show().
   80         $cards_and_modals = array_map($this->
cardsAndModals(...), $badge_and_assignments);
    81         $components = array_column($cards_and_modals, 
'modal');
    82         $components[] = $this->container->ui()
    84                                         ->deck(array_column($cards_and_modals, 
'card'))
    85                                         ->withNormalCardsSize();
 cardsAndModals(array $badge_and_assignments)
 
 
 
 
◆ show()
      
        
          | ILIAS\Badge\TileView::show  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ sort()
  
  
      
        
          | ILIAS\Badge\TileView::sort  | 
          ( | 
          Sorting  | 
          $sort,  | 
         
        
           | 
           | 
          array  | 
          $badges_and_assignments  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ sortComponent()
  
  
      
        
          | ILIAS\Badge\TileView::sortComponent  | 
          ( | 
          Sorting  | 
          $sort | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ $assignments_of_user
  
  
      
        
          | Closure ILIAS\Badge\TileView::$assignments_of_user | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: