ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 26 of file class.ilMMTypeHandlerTopLink.php.

References ILIAS\GlobalScreen\isGlobalScreenItem\getProviderIdentification().

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

◆ getFieldInfoTranslation()

ilMMTypeHandlerTopLink::getFieldInfoTranslation ( )
protected

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

References $DIC.

52  : string
53  {
54  global $DIC;
55 
56  return $DIC->language()->txt("field_url_info");
57  }
global $DIC
Definition: feed.php:28

◆ getFieldTranslation()

ilMMTypeHandlerTopLink::getFieldTranslation ( )
protected

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

References $DIC.

41  : string
42  {
43  global $DIC;
44 
45  return $DIC->language()->txt("field_url");
46  }
global $DIC
Definition: feed.php:28

◆ matchesForType()

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

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

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

17  : string
18  {
19  return TopLinkItem::class;
20  }

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