ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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

- Data Fields inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\StaticMetaBarProvider
const PURPOSE_MBS = "meta_bar_static"
 
- 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 12 of file class.ilHelpMetaBarProvider.php.

Member Function Documentation

◆ getId()

ilHelpMetaBarProvider::getId ( )
private
Returns
IdentificationInterface

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

Referenced by getMetaBarItems().

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

◆ getMetaBarItems()

ilHelpMetaBarProvider::getMetaBarItems ( )

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

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

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

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

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