ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMMTypeHandlerTopLink Class Reference

Class ilMMTypeHandlerTopLink. More...

+ Inheritance diagram for ilMMTypeHandlerTopLink:
+ Collaboration diagram for ilMMTypeHandlerTopLink:

Public Member Functions

 matchesForType ()
 
 enrichItem (isItem $item)
 
Parameters
isItem$item
Returns
isItem
More...
 
- Public Member Functions inherited from ilMMAbstractBaseTypeHandlerAction
 __construct ()
 
 matchesForType ()
 
 enrichItem (isItem $item)
 
Parameters
isItem$item
Returns
isItem
More...
 
 saveFormFields (IdentificationInterface $identification, array $data)
 
Parameters
IdentificationInterface$identification
array$data
Returns
bool
More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Collector\Handler\TypeHandler
 getAdditionalFieldsForSubForm (IdentificationInterface $identification)
 

Protected Member Functions

 getFieldTranslation ()
 
 getFieldInfoTranslation ()
 
- Protected Member Functions inherited from ilMMAbstractBaseTypeHandlerAction
 getFieldTranslation ()
 
 getFieldInfoTranslation ()
 

Additional Inherited Members

- Data Fields inherited from ilMMAbstractBaseTypeHandlerAction
const F_ACTION = 'action'
 
const F_EXTERNAL = 'external'
 
- Protected Attributes inherited from ilMMAbstractBaseTypeHandlerAction
array $links = []
 

Detailed Description

Member Function Documentation

◆ enrichItem()

ilMMTypeHandlerTopLink::enrichItem ( isItem  $item)

Parameters
isItem$item
Returns
isItem

Implements ILIAS\GlobalScreen\Scope\MainMenu\Collector\Handler\TypeHandler.

Definition at line 42 of file class.ilMMTypeHandlerTopLink.php.

References ILIAS\GlobalScreen\isGlobalScreenItem\getProviderIdentification().

42  : isItem
43  {
44  if ($item instanceof hasAction && isset($this->links[$item->getProviderIdentification()->serialize()])) {
45  $action = (string) $this->links[$item->getProviderIdentification()->serialize()][self::F_ACTION];
46  $is_external = (bool) $this->links[$item->getProviderIdentification()->serialize()][self::F_EXTERNAL];
47  $item = $item->withAction($action)->withIsLinkToExternalAction($is_external);
48  }
49 
50  return $item;
51  }
+ Here is the call graph for this function:

◆ getFieldInfoTranslation()

ilMMTypeHandlerTopLink::getFieldInfoTranslation ( )
protected

Definition at line 68 of file class.ilMMTypeHandlerTopLink.php.

References $DIC.

68  : string
69  {
70  global $DIC;
71 
72  return $DIC->language()->txt("field_url_info");
73  }
global $DIC
Definition: shib_login.php:22

◆ getFieldTranslation()

ilMMTypeHandlerTopLink::getFieldTranslation ( )
protected

Definition at line 57 of file class.ilMMTypeHandlerTopLink.php.

References $DIC.

57  : string
58  {
59  global $DIC;
60 
61  return $DIC->language()->txt("field_url");
62  }
global $DIC
Definition: shib_login.php:22

◆ matchesForType()

ilMMTypeHandlerTopLink::matchesForType ( )
Returns
string Classname of matching Type this TypeHandler can handle

Implements ILIAS\GlobalScreen\Scope\MainMenu\Collector\Handler\TypeHandler.

Definition at line 33 of file class.ilMMTypeHandlerTopLink.php.

33  : string
34  {
35  return TopLinkItem::class;
36  }

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