ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MetaData\Elements\Data\Data Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\Data\Data:
+ Collaboration diagram for ILIAS\MetaData\Elements\Data\Data:

Public Member Functions

 __construct (Type $type, string $value, SlotIdentifier $vocabulary_slot)
 
 type ()
 LOM data type. More...
 
 value ()
 Value of the data, in a format according to its type. More...
 
 vocabularySlot ()
 Vocabulary slot the data belongs to (important for making vocab values/strings presentable). More...
 
 type ()
 LOM data type. More...
 
 value ()
 Value of the data, in a format according to its type. More...
 
 vocabularySlot ()
 Vocabulary slot the data belongs to (important for making vocab values/strings presentable). More...
 

Protected Attributes

Type $type
 
string $value
 
SlotIdentifier $vocabulary_slot
 

Detailed Description

Definition at line 25 of file Data.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Elements\Data\Data::__construct ( Type  $type,
string  $value,
SlotIdentifier  $vocabulary_slot 
)

Definition at line 31 of file Data.php.

35 {
36 $this->type = $type;
37 $this->value = $value;
38 $this->vocabulary_slot = $vocabulary_slot;
39 }
SlotIdentifier $vocabulary_slot
Definition: Data.php:29
value()
Value of the data, in a format according to its type.
Definition: Data.php:46

References ILIAS\MetaData\Elements\Data\Data\$type, ILIAS\MetaData\Elements\Data\Data\$value, ILIAS\MetaData\Elements\Data\Data\$vocabulary_slot, ILIAS\MetaData\Elements\Data\Data\type(), and ILIAS\MetaData\Elements\Data\Data\value().

+ Here is the call graph for this function:

Member Function Documentation

◆ type()

ILIAS\MetaData\Elements\Data\Data::type ( )

LOM data type.

Implements ILIAS\MetaData\Elements\Data\DataInterface.

Definition at line 41 of file Data.php.

41 : Type
42 {
43 return $this->type;
44 }

References ILIAS\MetaData\Elements\Data\Data\$type.

Referenced by ILIAS\MetaData\Elements\Data\Data\__construct().

+ Here is the caller graph for this function:

◆ value()

ILIAS\MetaData\Elements\Data\Data::value ( )

Value of the data, in a format according to its type.

Implements ILIAS\MetaData\Elements\Data\DataInterface.

Definition at line 46 of file Data.php.

46 : string
47 {
48 return $this->value;
49 }

References ILIAS\MetaData\Elements\Data\Data\$value.

Referenced by ILIAS\MetaData\Elements\Data\Data\__construct().

+ Here is the caller graph for this function:

◆ vocabularySlot()

ILIAS\MetaData\Elements\Data\Data::vocabularySlot ( )

Vocabulary slot the data belongs to (important for making vocab values/strings presentable).

Implements ILIAS\MetaData\Elements\Data\DataInterface.

Definition at line 51 of file Data.php.

51 : SlotIdentifier
52 {
54 }

References ILIAS\MetaData\Elements\Data\Data\$vocabulary_slot.

Field Documentation

◆ $type

Type ILIAS\MetaData\Elements\Data\Data::$type
protected

◆ $value

string ILIAS\MetaData\Elements\Data\Data::$value
protected

◆ $vocabulary_slot

SlotIdentifier ILIAS\MetaData\Elements\Data\Data::$vocabulary_slot
protected

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