ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 (\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, array $data)
 
- 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'
 @inheritDoc More...
 
const F_EXTERNAL = 'external'
 ilMMAbstractBaseTypeHandlerAction constructor. More...
 

Protected Member Functions

 getFieldTranslation ()
 
 getFieldInfoTranslation ()
 

Protected Attributes

 $links = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMMAbstractBaseTypeHandlerAction::__construct ( )

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

29 {
30 $this->links = ilMMTypeActionStorage::getArray('identification', [self::F_ACTION, self::F_EXTERNAL]);
31 }
static getArray($key=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 ( \ILIAS\GlobalScreen\Identification\IdentificationInterface  $identification,
array  $data 
)

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

43 : bool
44 {
45 ilMMTypeActionStorage::find($identification->serialize())->setAction((string) $data[self::F_ACTION])->setExternal((bool) $data[self::F_EXTERNAL])->update();
46
47 return true;
48 }
static find($primary_key, array $add_constructor_args=array())
$data
Definition: storeScorm.php:23

References $data, and ilMMTypeActionStorage\find().

+ Here is the call graph for this function:

Field Documentation

◆ $links

ilMMAbstractBaseTypeHandlerAction::$links = []
protected

Definition at line 18 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: