ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilAdminGSToolProvider Class Reference

Administration GS tool provider. More...

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

Public Member Functions

 isInterestedInContexts ()
 @inheritDoc More...
 
 getToolsForContextStack (CalledContexts $called_contexts)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
 __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 ()
 
 getToolsForContextStack (CalledContexts $called_contexts)
 
 isInterestedInContexts ()
 

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
 $identification_provider
 
 $context_collection
 
 $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Administration GS tool provider.

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

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

Member Function Documentation

◆ getToolsForContextStack()

ilAdminGSToolProvider::getToolsForContextStack ( CalledContexts  $called_contexts)

@inheritDoc

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

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

29 : array
30 {
31 $tools = [];
32 $additional_data = $called_contexts->current()->getAdditionalData();
33 if ($additional_data->is(self::SHOW_ADMIN_TREE, true)) {
34 $iff = function ($id) {
35 return $this->identification_provider->contextAwareIdentifier($id, true);
36 };
37 $l = function (string $content) {
38 return $this->dic->ui()->factory()->legacy($content);
39 };
40 $tools[] = $this->factory->tool($iff("tree"))
41 ->withTitle("Tree")
42 ->withContentWrapper(function () use ($l) {
43 return $l($this->getTree());
44 });
45 }
46
47 return $tools;
48 }

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

+ Here is the call graph for this function:

◆ getTree()

ilAdminGSToolProvider::getTree ( )
private
Parameters
int$ref_id
Returns
string

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

56 : string
57 {
58 $exp = new ilAdministrationExplorerGUI("ilAdministrationGUI", "showTree");
59
60 return $exp->getHTML();
61 }
Administration explorer GUI class.

Referenced by getToolsForContextStack().

+ Here is the caller graph for this function:

◆ isInterestedInContexts()

ilAdminGSToolProvider::isInterestedInContexts ( )

Field Documentation

◆ SHOW_ADMIN_TREE

const ilAdminGSToolProvider::SHOW_ADMIN_TREE = 'show_admin_tree'

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

Referenced by ilAdministrationGUI\showTree().


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