19 declare(strict_types=1);
    49                     public function __construct(
protected array $values)
    56                             public function __construct(
protected array $values)
    60                             public function values(): \Generator
    62                                 yield 
from $this->values;
    73         return new class ($cp_selection_active) extends 
NullSettings {
    74             public function __construct(
protected bool $cp_selection_active)
    78             public function isCopyrightSelectionActive(): 
bool    80                 return $this->cp_selection_active;
    90                 protected string $title
    94             public function id(): 
int    99             public function title(): 
string   114             public function __construct(
protected array $copyrights)
   118             public function getAllEntries(): \Generator
   120                 yield 
from $this->copyrights;
   128             public function buildIdentifierFromEntryID(
int $entry_id): 
string   130                 return 'id_' . $entry_id;
   144         $vocab = $bridge->vocabulary(SlotIdentifier::CLASSIFICATION_PURPOSE);
   146         $this->assertNull(
$vocab);
   158         $vocab = $bridge->vocabulary(SlotIdentifier::RIGHTS_DESCRIPTION);
   160         $this->assertNull(
$vocab);
   172         $vocab = $bridge->vocabulary(SlotIdentifier::RIGHTS_DESCRIPTION);
   174         $this->assertNotNull(
$vocab);
   176             [
'id_1', 
'id_2', 
'id_3'],
   177             iterator_to_array(
$vocab->values())
   190         $labelled_values = $bridge->labelsForValues(
   191             SlotIdentifier::CLASSIFICATION_PURPOSE,
   197         $this->assertNull($labelled_values->current());
   209         $labelled_values = $bridge->labelsForValues(
   210             SlotIdentifier::RIGHTS_DESCRIPTION,
   216         $this->assertNull($labelled_values->current());
   228         $labelled_values = $bridge->labelsForValues(
   229             SlotIdentifier::RIGHTS_DESCRIPTION,
   235         $label_1 = $labelled_values->current();
   236         $this->assertSame(
'id_1', $label_1->value());
   237         $this->assertSame(
'title cp 1', $label_1->label());
   238         $labelled_values->next();
   239         $label_3 = $labelled_values->current();
   240         $this->assertSame(
'id_3', $label_3->value());
   241         $this->assertSame(
'title cp 3', $label_3->label());
   242         $labelled_values->next();
   243         $this->assertNull($labelled_values->current());
 
__construct()
Constructor setup ILIAS global object  public. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins