ILIAS  release_8 Revision v8.24
ilMMTypeHandlerLink Class Reference

Class ilMMTypeHandlerLink. More...

+ Inheritance diagram for ilMMTypeHandlerLink:
+ Collaboration diagram for ilMMTypeHandlerLink:

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()

ilMMTypeHandlerLink::enrichItem ( isItem  $item)

Parameters
isItem$item
Returns
isItem

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

Definition at line 26 of file class.ilMMTypeHandlerLink.php.

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 }

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

+ Here is the call graph for this function:

◆ getFieldInfoTranslation()

ilMMTypeHandlerLink::getFieldInfoTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ getFieldTranslation()

ilMMTypeHandlerLink::getFieldTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ matchesForType()

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

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

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