ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMMItemFacade Class Reference

Class ilMMItemFacade. More...

+ Inheritance diagram for ilMMItemFacade:
+ Collaboration diagram for ilMMItemFacade:

Public Member Functions

 __construct (\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
 
 isCustom ()
 
 isEditable ()
 
 isDeletable ()
 
 setType (string $type)
 
 setAction (string $action)
 
- Public Member Functions inherited from ilMMAbstractItemFacade
 __construct (\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
 ilMMAbstractItemFacade constructor. More...
 
 getId ()
 
 hasStorage ()
 
 isEmpty ()
 
 itemStorage ()
 
 identification ()
 
 item ()
 
 getAmountOfChildren ()
 
 isAvailable ()
 
 isActivated ()
 
 isAlwaysAvailable ()
 
 getProviderNameForPresentation ()
 
 getDefaultTitle ()
 
 setDefaultTitle (string $default_title)
 
 getStatus ()
 
 getTypeForPresentation ()
 
 getParentIdentificationString ()
 
 isCustomType ()
 
 isTopItem ()
 
 isInLostItem ()
 
 setIsTopItm (bool $top_item)
 
 getType ()
 FSX check if doublette. More...
 
 setParent (string $parent)
 
 setPosition (int $position)
 
Parameters
int$position
More...
 
 setActiveStatus (bool $status)
 
 update ()
 
 create ()
 
 delete ()
 

Protected Attributes

 $type
 
- Protected Attributes inherited from ilMMAbstractItemFacade
 $type_information
 
 $mm_item
 
 $gs_item
 
 $identification
 
 $default_title = "-"
 

Additional Inherited Members

- Protected Member Functions inherited from ilMMAbstractItemFacade
 deleteAssociatedTranslations ()
 deletes all translations associated with the current identification. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMMItemFacade::__construct ( \ILIAS\GlobalScreen\Identification\IdentificationInterface  $identification,
Main  $collector 
)

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

18  {
19  parent::__construct($identification, $collector);
20  }

Member Function Documentation

◆ isCustom()

ilMMItemFacade::isCustom ( )
Returns
bool

Implements ilMMItemFacadeInterface.

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

32  : bool
33  {
34  return false;
35  }

◆ isDeletable()

ilMMItemFacade::isDeletable ( )

Implements ilMMItemFacadeInterface.

Definition at line 50 of file class.ilMMItemFacade.php.

50  : bool
51  {
52  return ($this->gs_item instanceof Lost);
53  }

◆ isEditable()

ilMMItemFacade::isEditable ( )

Implements ilMMItemFacadeInterface.

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

41  : bool
42  {
43  return (!$this->gs_item instanceof Lost);
44  }

◆ setAction()

ilMMItemFacade::setAction ( string  $action)

Implements ilMMItemFacadeInterface.

Definition at line 73 of file class.ilMMItemFacade.php.

74  {
75  // Setting action not possible for non custom items
76  return;
77  }

◆ setType()

ilMMItemFacade::setType ( string  $type)

Implements ilMMItemFacadeInterface.

Definition at line 64 of file class.ilMMItemFacade.php.

References $type.

65  {
66  $this->type = $type;
67  }

Field Documentation

◆ $type

ilMMItemFacade::$type
protected

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

Referenced by setType().


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