ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 ()
 

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.

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

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

◆ isActive()

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

◆ slot()

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

Implements ILIAS\MetaData\Vocabularies\VocabularyInterface.

Definition at line 57 of file Vocabulary.php.

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

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

58  {
59  return $this->slot;
60  }
+ 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.

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

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

72  : string
73  {
74  return $this->source;
75  }
+ 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.

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.

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

80  : \Generator
81  {
82  foreach ($this->values as $value) {
83  yield $value;
84  }
85  }
+ 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: