ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 (\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
 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'
 @inheritDoc More...
 
const F_EXTERNAL = 'external'
 ilMMAbstractBaseTypeHandlerAction constructor. More...
 
- Protected Attributes inherited from ilMMAbstractBaseTypeHandlerAction
 $links = []
 

Detailed Description

Member Function Documentation

◆ enrichItem()

ilMMTypeHandlerLink::enrichItem ( isItem  $item)

Parameters
isItem$item
Returns
isItem

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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 }
const F_EXTERNAL
ilMMAbstractBaseTypeHandlerAction constructor.
$action

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

+ Here is the call graph for this function:

◆ getFieldInfoTranslation()

ilMMTypeHandlerLink::getFieldInfoTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ getFieldTranslation()

ilMMTypeHandlerLink::getFieldTranslation ( )
protected

@inheritDoc

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

References $DIC.

◆ matchesForType()

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

Reimplemented from ilMMAbstractBaseTypeHandlerAction.

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

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

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