ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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...
 

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.

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().

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

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

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

41  : Type
42  {
43  return $this->type;
44  }
+ 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.

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

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

46  : string
47  {
48  return $this->value;
49  }
+ 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.

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

52  {
54  }
SlotIdentifier $vocabulary_slot
Definition: Data.php:29

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: