ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMMAbstractBaseTypeHandlerAction Class Reference

Class ilMMAbstractBaseTypeHandlerAction. More...

+ Inheritance diagram for ilMMAbstractBaseTypeHandlerAction:
+ Collaboration diagram for ilMMAbstractBaseTypeHandlerAction:

Public Member Functions

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

Data Fields

const F_ACTION = 'action'
 
const F_EXTERNAL = 'external'
 

Protected Member Functions

 getFieldTranslation ()
 
 getFieldInfoTranslation ()
 

Protected Attributes

array $links = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMMAbstractBaseTypeHandlerAction::__construct ( )

Definition at line 37 of file class.ilMMAbstractBaseTypeHandlerAction.php.

38 {
39 $this->links = ilMMTypeActionStorage::getArray('identification', [self::F_ACTION, self::F_EXTERNAL]);
40 }
static getArray(?string $key=null, string|array|null $values=null)

References ActiveRecord\getArray().

+ Here is the call graph for this function:

Member Function Documentation

◆ enrichItem()

ilMMAbstractBaseTypeHandlerAction::enrichItem ( isItem  $item)
abstract

◆ getFieldInfoTranslation()

ilMMAbstractBaseTypeHandlerAction::getFieldInfoTranslation ( )
abstractprotected

◆ getFieldTranslation()

ilMMAbstractBaseTypeHandlerAction::getFieldTranslation ( )
abstractprotected

◆ matchesForType()

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

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

Reimplemented in ilMMTypeHandlerLink, ilMMTypeHandlerRepositoryLink, and ilMMTypeHandlerTopLink.

◆ saveFormFields()

ilMMAbstractBaseTypeHandlerAction::saveFormFields ( IdentificationInterface  $identification,
array  $data 
)

Parameters
IdentificationInterface$identification
array$data
Returns
bool

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

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

52 : bool
53 {
54 $storage = ilMMTypeActionStorage::find($identification->serialize());
55 if (!$storage instanceof ilMMTypeActionStorage) {
56 return false;
57 }
58 $storage->setAction((string) ($data[self::F_ACTION] ?? '#'));
59 $storage->setExternal((bool) ($data[self::F_EXTERNAL] ?? false));
60 $storage->update();
61
62 return true;
63 }
Class ilMMTypeActionStorage.
static find($primary_key, array $add_constructor_args=[])

References $data, and ilMMTypeActionStorage\find().

+ Here is the call graph for this function:

Field Documentation

◆ $links

array ilMMAbstractBaseTypeHandlerAction::$links = []
protected

Definition at line 32 of file class.ilMMAbstractBaseTypeHandlerAction.php.

◆ F_ACTION

const ilMMAbstractBaseTypeHandlerAction::F_ACTION = 'action'

◆ F_EXTERNAL

const ilMMAbstractBaseTypeHandlerAction::F_EXTERNAL = 'external'

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