19 declare(strict_types=1);
    42         $url = $this->createMock(URI::class);
    43         $url->method(
'__toString')->willReturn($link);
    53         $url = is_null($link) ? null : $this->
getURI($link);
    58                 protected string $full_name,
    60                 protected bool $default
    64             public function id(): 
int    69             public function isDefault(): 
bool    71                 return $this->default;
    78                         protected string $full_name,
    83                     public function fullName(): 
string    85                         return $this->full_name;
   100             public function __construct(
protected array $entries)
   104             public function getAllEntries(): \Generator
   106                 yield 
from $this->entries;
   111                 foreach ($this->entries as $entry) {
   112                     if ($entry->id() === 
$id) {
   121                 foreach ($this->entries as $entry) {
   122                     if ($entry->isDefault()) {
   134             public function isIdentifierValid(
string $identifier): 
bool   136                 return str_contains($identifier, 
'valid_identifier_');
   139             public function parseEntryIDFromIdentifier(
string $identifier): 
int   141                 return (
int) str_replace(
'valid_identifier_', 
'', $identifier);
   144             public function buildIdentifierFromEntryID(
int $entry_id): 
string   146                 return 'valid_identifier_' . $entry_id;
   153         return new class ($selection_active) extends 
NullSettings {
   154             public function __construct(
protected bool $selection_active)
   158             public function isCopyrightSelectionActive(): 
bool   160                 return $this->selection_active;
   173         $this->assertTrue(
$handler->isCopyrightSelectionActive());
   184         $this->assertFalse(
$handler->isCopyrightSelectionActive());
   192             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   201             'http://www.example2.com',
   202             $handler->copyrightAsString(
'valid_identifier_55')
   211             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   220             'valid_identifier_55',
   221             $handler->copyrightAsString(
'valid_identifier_55')
   230             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   240             $handler->copyrightAsString(
'something invalid')
   249             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   259             $handler->copyrightAsString(
'valid_identifier_678')
   268             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   278             $handler->copyrightForExport(
'something invalid')
   287             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   297             $handler->copyrightForExport(
'valid_identifier_678')
   306             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   315             'valid_identifier_55',
   316             $handler->copyrightForExport(
'valid_identifier_55')
   325             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   334             'http://www.example2.com',
   344             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   353             'http://www.example2.com',
   354             $handler->copyrightForExport(
'valid_identifier_55')
   363             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   373             $handler->copyrightForExport(
'valid_identifier_55')
   382             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   391             'http://www.example2.com',
   392             $handler->copyrightForExport(
'valid_identifier_55')
   401             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   411             $handler->copyrightForExport(
'valid_identifier_55')
   420             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   430             $handler->copyrightFromExport(
'just some text')
   439             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   448             'https://www.nonmatching.com',
   449             $handler->copyrightFromExport(
'https://www.nonmatching.com')
   452             'http://www.nonmatching.com',
   453             $handler->copyrightFromExport(
'http://www.nonmatching.com')
   462             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   471             'just some text which contains first entry',
   472             $handler->copyrightFromExport(
'just some text which contains first entry')
   481             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   490             'some text containing http://www.example2.com',
   491             $handler->copyrightFromExport(
'some text containing http://www.example2.com')
   500             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   509             'valid_identifier_13',
   510             $handler->copyrightFromExport(
'first entry')
   513             'valid_identifier_55',
   514             $handler->copyrightFromExport(
'second entry')
   523             $this->
getCopyrightEntry(123, 
'second entry', 
'https://www.example3.com/something')
   532             'valid_identifier_55',
   533             $handler->copyrightFromExport(
'second entry')
   542             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   551             'valid_identifier_55',
   552             $handler->copyrightFromExport(
'some text containing http://www.example2.com')
   560             $this->
getCopyrightEntry(55, 
'second entry', 
'https://www.example3.com/something'),
   561             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   570             'valid_identifier_55',
   571             $handler->copyrightFromExport(
'some text containing https://www.example3.com/something')
   580             $this->
getCopyrightEntry(123, 
'third entry', 
'https://www.example3.com/something')
   589             'valid_identifier_55',
   590             $handler->copyrightFromExport(
'some text containing https://www.example2.com')
 
__construct()
Constructor setup ILIAS global object  public. 
 
The scope of this class is split ilias-conform URI's into components. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
link(string $caption, string $href, bool $new_viewport=false)