ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilHelpMetaBarProvider Class Reference

Help meta bar provider. More...

+ Inheritance diagram for ilHelpMetaBarProvider:
+ Collaboration diagram for ilHelpMetaBarProvider:

Public Member Functions

 getMetaBarItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticMetaBarProvider
 __construct (Container $dic)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\MetaBarProviderInterface
 getProviderNameForPresentation ()
 

Private Member Functions

 getId ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticMetaBarProvider
 $dic
 
 $if
 
 $meta_bar
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Help meta bar provider.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 13 of file class.ilHelpMetaBarProvider.php.

Member Function Documentation

◆ getId()

ilHelpMetaBarProvider::getId ( )
private
Returns
IdentificationInterface

Definition at line 20 of file class.ilHelpMetaBarProvider.php.

Referenced by getMetaBarItems().

21  {
22  return $this->if->identifier('help');
23  }
+ Here is the caller graph for this function:

◆ getMetaBarItems()

ilHelpMetaBarProvider::getMetaBarItems ( )

Implements ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider.

Definition at line 28 of file class.ilHelpMetaBarProvider.php.

References $c, $DIC, Vendor\Package\$f, getId(), ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), and ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol().

28  : array
29  {
30  global $DIC;
31 
32  $mb = $this->globalScreen()->metaBar();
33 
34  $f = $DIC->ui()->factory();
35 
36  $title = $DIC->language()->txt("help");
37 
38  if ($this->showHelpTool()) {
39  // position should be 0, see bug #26794
40  $item = $mb->topLinkItem($this->getId())
41  ->addComponentDecorator(static function (ILIAS\UI\Component\Component $c) : ILIAS\UI\Component\Component {
42  if ($c instanceof BulkyButton || $c instanceof BulkyLink) {
43  return $c->withAdditionalOnLoadCode(static function (string $id) : string {
44  return "$('#$id').on('click', function() {
45  $('body').trigger('il-help-toggle-slate');
46  return false;
47  })";
48  });
49  }
50  return $c;
51  })
52 // ->withAction($this->dic->ctrl()->getLinkTargetByClass(ilDashboardGUI::class, "toggleHelp"))
53  ->withSymbol($f->symbol()->glyph()->help())
54  ->withTitle($title)
55  ->withPosition(0);
56 
57  return [$item];
58  }
59 
60  return [];
61  }
Class Factory.
$c
Definition: cli.php:37
Class ChatMainBarProvider .
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:

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