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

Public Member Functions

 __construct (SlotIdentifier $slot, Type $type, string $id, string $source, bool $is_active=true, bool $allows_custom_inputs=false, string ... $values)
 
 slot ()
 
 type ()
 
 id ()
 
 source ()
 
 values ()
 
 isActive ()
 
 allowsCustomInputs ()
 
 slot ()
 
 type ()
 
 id ()
 
 source ()
 
 values ()
 
 isActive ()
 
 allowsCustomInputs ()
 

Protected Attributes

SlotIdentifier $slot
 
Type $type
 
string $id
 
string $source
 
bool $is_active
 
bool $allows_custom_inputs
 
array $values
 

Detailed Description

Definition at line 25 of file Vocabulary.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Vocabularies\Vocabulary::__construct ( SlotIdentifier  $slot,
Type  $type,
string  $id,
string  $source,
bool  $is_active = true,
bool  $allows_custom_inputs = false,
string ...  $values 
)

Definition at line 39 of file Vocabulary.php.

References ILIAS\MetaData\Vocabularies\Vocabulary\$allows_custom_inputs, ILIAS\MetaData\Vocabularies\Vocabulary\$id, ILIAS\MetaData\Vocabularies\Vocabulary\$is_active, ILIAS\MetaData\Vocabularies\Vocabulary\$slot, ILIAS\MetaData\Vocabularies\Vocabulary\$source, ILIAS\MetaData\Vocabularies\Vocabulary\$type, ILIAS\MetaData\Vocabularies\Vocabulary\$values, ILIAS\MetaData\Vocabularies\Vocabulary\slot(), ILIAS\MetaData\Vocabularies\Vocabulary\source(), ILIAS\MetaData\Vocabularies\Vocabulary\type(), and ILIAS\MetaData\Vocabularies\Vocabulary\values().

+ Here is the call graph for this function:

Member Function Documentation

◆ allowsCustomInputs()

ILIAS\MetaData\Vocabularies\Vocabulary::allowsCustomInputs ( )

◆ id()

ILIAS\MetaData\Vocabularies\Vocabulary::id ( )

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 67 of file Vocabulary.php.

67 : string
68 {
69 return $this->id;
70 }

References ILIAS\MetaData\Vocabularies\Vocabulary\$id.

◆ isActive()

ILIAS\MetaData\Vocabularies\Vocabulary::isActive ( )

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 87 of file Vocabulary.php.

87 : bool
88 {
89 return $this->is_active;
90 }

References ILIAS\MetaData\Vocabularies\Vocabulary\$is_active.

◆ slot()

ILIAS\MetaData\Vocabularies\Vocabulary::slot ( )

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 57 of file Vocabulary.php.

57 : SlotIdentifier
58 {
59 return $this->slot;
60 }

References ILIAS\MetaData\Vocabularies\Vocabulary\$slot.

Referenced by ILIAS\MetaData\Vocabularies\Vocabulary\__construct().

+ Here is the caller graph for this function:

◆ source()

ILIAS\MetaData\Vocabularies\Vocabulary::source ( )

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 72 of file Vocabulary.php.

72 : string
73 {
74 return $this->source;
75 }

References ILIAS\MetaData\Vocabularies\Vocabulary\$source.

Referenced by ILIAS\MetaData\Vocabularies\Vocabulary\__construct().

+ Here is the caller graph for this function:

◆ type()

ILIAS\MetaData\Vocabularies\Vocabulary::type ( )

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 62 of file Vocabulary.php.

62 : Type
63 {
64 return $this->type;
65 }

References ILIAS\MetaData\Vocabularies\Vocabulary\$type.

Referenced by ILIAS\MetaData\Vocabularies\Vocabulary\__construct().

+ Here is the caller graph for this function:

◆ values()

ILIAS\MetaData\Vocabularies\Vocabulary::values ( )
Returns
string[]

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 80 of file Vocabulary.php.

80 : \Generator
81 {
82 foreach ($this->values as $value) {
83 yield $value;
84 }
85 }

References ILIAS\MetaData\Vocabularies\Vocabulary\values().

Referenced by ILIAS\MetaData\Vocabularies\Vocabulary\__construct(), and ILIAS\MetaData\Vocabularies\Vocabulary\values().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $allows_custom_inputs

bool ILIAS\MetaData\Vocabularies\Vocabulary::$allows_custom_inputs
protected

◆ $id

string ILIAS\MetaData\Vocabularies\Vocabulary::$id
protected

◆ $is_active

bool ILIAS\MetaData\Vocabularies\Vocabulary::$is_active
protected

◆ $slot

SlotIdentifier ILIAS\MetaData\Vocabularies\Vocabulary::$slot
protected

◆ $source

string ILIAS\MetaData\Vocabularies\Vocabulary::$source
protected

◆ $type

Type ILIAS\MetaData\Vocabularies\Vocabulary::$type
protected

◆ $values

array ILIAS\MetaData\Vocabularies\Vocabulary::$values
protected

Definition at line 37 of file Vocabulary.php.

Referenced by ILIAS\MetaData\Vocabularies\Vocabulary\__construct().


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