ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAdminGSToolProvider Class Reference

Administration GS tool provider. More...

+ Inheritance diagram for ilAdminGSToolProvider:
+ Collaboration diagram for ilAdminGSToolProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getToolsForContextStack (CalledContexts $called_contexts)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
 __construct (Container $dic)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Data Fields

const SHOW_ADMIN_TREE = 'show_admin_tree'
 

Private Member Functions

 getTree ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
ToolIdentificationProviderInterface $identification_provider
 
ContextCollection $context_collection
 
ToolFactory $factory
 

Detailed Description

Administration GS tool provider.

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..com

Definition at line 30 of file class.ilAdminGSToolProvider.php.

Member Function Documentation

◆ getToolsForContextStack()

ilAdminGSToolProvider::getToolsForContextStack ( CalledContexts  $called_contexts)
Parameters
CalledContexts$called_contexts
Returns
Tool[] These Slates can be passed to the MainMenu dynamic for a specific location/context.
See also
DynamicProvider

Implements ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider.

Definition at line 39 of file class.ilAdminGSToolProvider.php.

References $id, ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current(), factory(), and getTree().

39  : array
40  {
41  $tools = [];
42  $additional_data = $called_contexts->current()->getAdditionalData();
43  if ($additional_data->is(self::SHOW_ADMIN_TREE, true)) {
44  $iff = function ($id) {
45  return $this->identification_provider->contextAwareIdentifier($id, true);
46  };
47  $l = function (string $content) {
48  return $this->dic->ui()->factory()->legacy()->content($content);
49  };
50  $tools[] = $this->factory->tool($iff("tree"))
51  ->withTitle("Tree")
52  ->withContentWrapper(function () use ($l) {
53  return $l($this->getTree());
54  });
55  }
56 
57  return $tools;
58  }
factory()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ getTree()

ilAdminGSToolProvider::getTree ( )
private

Definition at line 60 of file class.ilAdminGSToolProvider.php.

Referenced by getToolsForContextStack().

60  : string
61  {
62  return (new ilAdministrationExplorerGUI("ilAdministrationGUI", "showTree"))->getHTML();
63  }
Administration explorer GUI class.
+ Here is the caller graph for this function:

◆ isInterestedInContexts()

ilAdminGSToolProvider::isInterestedInContexts ( )
Returns
ContextCollection

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 34 of file class.ilAdminGSToolProvider.php.

References ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\main().

+ Here is the call graph for this function:

Field Documentation

◆ SHOW_ADMIN_TREE

const ilAdminGSToolProvider::SHOW_ADMIN_TREE = 'show_admin_tree'

Definition at line 32 of file class.ilAdminGSToolProvider.php.

Referenced by ilAdministrationGUI\showTree().


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