ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 (\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, array $data)
 
 getAdditionalFieldsForSubForm (\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Collector\Handler\TypeHandler
 getAdditionalFieldsForSubForm (IdentificationInterface $identification)
 
 saveFormFields (IdentificationInterface $identification, array $data)
 

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'
 ilMMAbstractBaseTypeHandlerAction constructor. More...
 
- Protected Attributes inherited from ilMMAbstractBaseTypeHandlerAction
 $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 23 of file class.ilMMTypeHandlerTopLink.php.

References $action, and ILIAS\GlobalScreen\Scope\MainMenu\Factory\isItem\getProviderIdentification().

23  : isItem
24  {
25  if ($item instanceof hasAction && isset($this->links[$item->getProviderIdentification()->serialize()])) {
26  $action = (string) $this->links[$item->getProviderIdentification()->serialize()][self::F_ACTION];
27  $is_external = (bool) $this->links[$item->getProviderIdentification()->serialize()][self::F_EXTERNAL];
28  $item = $item->withAction($action)->withIsLinkToExternalAction($is_external);
29  }
30 
31  return $item;
32  }
$action
+ Here is the call graph for this function:

◆ getFieldInfoTranslation()

ilMMTypeHandlerTopLink::getFieldInfoTranslation ( )
protected

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

References $DIC.

49  : string
50  {
51  global $DIC;
52 
53  return $DIC->language()->txt("field_url_info");
54  }
global $DIC
Definition: saml.php:7

◆ getFieldTranslation()

ilMMTypeHandlerTopLink::getFieldTranslation ( )
protected

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

References $DIC.

38  : string
39  {
40  global $DIC;
41 
42  return $DIC->language()->txt("field_url");
43  }
global $DIC
Definition: saml.php:7

◆ matchesForType()

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

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

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

14  : string
15  {
16  return \ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem::class;
17  }

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