ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
28 class Factory implements B\Factory
29 {
30  public function standard(string $label, $action): Standard
31  {
32  return new Standard($label, $action);
33  }
34 
35  public function primary(string $label, $action): Primary
36  {
37  return new Primary($label, $action);
38  }
39 
40  public function close(): Close
41  {
42  return new Close();
43  }
44 
45  public function minimize(): Minimize
46  {
47  return new Minimize();
48  }
49 
50  public function tag(string $label, $action): Tag
51  {
52  return new Tag($label, $action);
53  }
54 
55  public function shy(string $label, $action): Shy
56  {
57  return new Shy($label, $action);
58  }
59 
60  public function month(string $default): Month
61  {
62  return new Month($default);
63  }
64 
65  public function bulky(Symbol $symbol, string $label, string $action): Bulky
66  {
67  return (new Bulky($label, $action))->withSymbol($symbol);
68  }
69 
70  public function toggle(
71  string $label,
72  $on_action,
73  $off_action,
74  bool $is_on = false,
75  ?Signal $click_signal = null
76  ): Toggle {
77  return new Toggle($label, $on_action, $off_action, $is_on, $click_signal);
78  }
79 }
This describes a symbol.
Definition: Symbol.php:29
standard(string $label, $action)
description: purpose: > The standard button is the default button to be used in ILIAS.
Definition: Factory.php:30
primary(string $label, $action)
description: purpose: > The primary button indicates the most important action on a screen...
Definition: Factory.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
toggle(string $label, $on_action, $off_action, bool $is_on=false, ?Signal $click_signal=null)
description: purpose: > The Toggle Button triggers the activation/deactivation of some control alrea...
Definition: Factory.php:70
Builds a Color from either hex- or rgb values.
Definition: Factory.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
tag(string $label, $action)
description: purpose: > Tags classify entities.
Definition: Factory.php:50
shy(string $label, $action)
description: purpose: > Shy buttons are used in contexts that need a less obtrusive presentation tha...
Definition: Factory.php:55
close()
description: purpose: > The close button triggers the closing of some collection displayed temporari...
Definition: Factory.php:40
month(string $default)
description: purpose: > The Month Button enables to select a specific month to fire some action (pro...
Definition: Factory.php:60
minimize()
description: purpose: The minimize button triggers the minimizing of a collection or an overlay...
Definition: Factory.php:45
bulky(Symbol $symbol, string $label, string $action)
description: purpose: > The Bulky Button is highly obtrusive.
Definition: Factory.php:65