ILIAS  release_7 Revision v7.30-3-g800a261c036
ilHelpMetaBarProvider Class Reference

Help meta bar provider. More...

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

Public Member Functions

 getMetaBarItems ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticMetaBarProvider
 __construct (Container $dic)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getMetaBarItems ()
 
- 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.

21 {
22 return $this->if->identifier('help');
23 }

Referenced by getMetaBarItems().

+ Here is the caller graph for this function:

◆ getMetaBarItems()

ilHelpMetaBarProvider::getMetaBarItems ( )

@inheritDoc

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

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

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 }
$c
Definition: cli.php:37
global $DIC
Definition: goto.php:24
withSymbol(Symbol $symbol)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.

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

+ Here is the call graph for this function:

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