ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables 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 (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
 $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)

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

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

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

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  }
+ 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.

Referenced by getToolsForContextStack().

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