ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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
 getAdditionalFieldsForSubForm (IdentificationInterface $identification)
 
 saveFormFields (IdentificationInterface $identification, array $data)
 

Data Fields

const F_ACTION = 'action'
 
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.

References enrichItem(), ActiveRecord\getArray(), and matchesForType().

29  {
30  $this->links = ilMMTypeActionStorage::getArray('identification', [self::F_ACTION, self::F_EXTERNAL]);
31  }
static getArray($key=null, $values=null)
+ Here is the call graph for this function:

Member Function Documentation

◆ enrichItem()

ilMMAbstractBaseTypeHandlerAction::enrichItem ( isItem  $item)
abstract

Parameters
isItem$item
Returns
isItem

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

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getFieldInfoTranslation()

ilMMAbstractBaseTypeHandlerAction::getFieldInfoTranslation ( )
abstractprotected

Referenced by saveFormFields().

+ Here is the caller graph for this function:

◆ getFieldTranslation()

ilMMAbstractBaseTypeHandlerAction::getFieldTranslation ( )
abstractprotected
Returns
string

Referenced by saveFormFields().

+ Here is the caller graph for this function:

◆ matchesForType()

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

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

Referenced by __construct().

+ Here is the caller graph for this function:

◆ saveFormFields()

ilMMAbstractBaseTypeHandlerAction::saveFormFields ( \ILIAS\GlobalScreen\Identification\IdentificationInterface  $identification,
array  $data 
)

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

References $DIC, $url, ilMMTypeActionStorage\find(), ILIAS\GlobalScreen\Scope\MainMenu\Collector\Handler\TypeHandler\getAdditionalFieldsForSubForm(), getFieldInfoTranslation(), and getFieldTranslation().

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  }
$data
Definition: storeScorm.php:23
static find($primary_key, array $add_constructor_args=array())
+ 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'

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

◆ F_EXTERNAL

const ilMMAbstractBaseTypeHandlerAction::F_EXTERNAL = 'external'

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