ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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
 matchesForType ()
 
 enrichItem (isItem $item)
 
 getAdditionalFieldsForSubForm (IdentificationInterface $identification)
 
 saveFormFields (IdentificationInterface $identification, array $data)
 

Protected Member Functions

 getFieldTranslation ()
 @inheritDoc More...
 
 getFieldInfoTranslation ()
 @inheritDoc More...
 
 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.

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 }

References ilMMAbstractBaseTypeHandlerAction\F_ACTION, ilMMAbstractBaseTypeHandlerAction\F_EXTERNAL, and ILIAS\GlobalScreen\isGlobalScreenItem\getProviderIdentification().

+ Here is the call graph for this function:

◆ getFieldInfoTranslation()

ilMMTypeHandlerTopLink::getFieldInfoTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ getFieldTranslation()

ilMMTypeHandlerTopLink::getFieldTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ 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: