ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\Copyright\NullRepository Class Reference
+ Inheritance diagram for ILIAS\MetaData\Copyright\NullRepository:
+ Collaboration diagram for ILIAS\MetaData\Copyright\NullRepository:

Public Member Functions

 getEntry (int $id)
 
 getAllEntries ()
 The default entry is returned first, and the remaining entries are returned according to their position. More...
 
 getActiveEntries ()
 The default entry is returned first, and the remaining entries are returned according to their position. More...
 
 getDefaultEntry ()
 
 deleteEntry (int $id)
 
 createEntry (string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
 Returns the ID of the newly created entry. More...
 
 updateEntry (int $id, string $title, string $description='', bool $is_outdated=false, string $full_name='', ?URI $link=null, URI|string $image='', string $alt_text='')
 
 reorderEntries (int ... $ids)
 Updates the position of entries according to the order their IDs are passed. More...
 

Detailed Description

Definition at line 25 of file NullRepository.php.

Member Function Documentation

◆ createEntry()

ILIAS\MetaData\Copyright\NullRepository::createEntry ( string  $title,
string  $description = '',
bool  $is_outdated = false,
string  $full_name = '',
?URI  $link = null,
URI|string  $image = '',
string  $alt_text = '' 
)

Returns the ID of the newly created entry.

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 51 of file NullRepository.php.

59  : int {
60  return 0;
61  }

◆ deleteEntry()

ILIAS\MetaData\Copyright\NullRepository::deleteEntry ( int  $id)

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 47 of file NullRepository.php.

47  : void
48  {
49  }

◆ getActiveEntries()

ILIAS\MetaData\Copyright\NullRepository::getActiveEntries ( )

The default entry is returned first, and the remaining entries are returned according to their position.

Outdated entries are skipped.

Returns
EntryInterface[]

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 37 of file NullRepository.php.

References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().

37  : \Generator
38  {
39  yield from [];
40  }
+ Here is the call graph for this function:

◆ getAllEntries()

ILIAS\MetaData\Copyright\NullRepository::getAllEntries ( )

The default entry is returned first, and the remaining entries are returned according to their position.

Returns
EntryInterface[]

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 32 of file NullRepository.php.

References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from().

32  : \Generator
33  {
34  yield from [];
35  }
+ Here is the call graph for this function:

◆ getDefaultEntry()

ILIAS\MetaData\Copyright\NullRepository::getDefaultEntry ( )

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 42 of file NullRepository.php.

42  : EntryInterface
43  {
44  return new NullEntry();
45  }

◆ getEntry()

ILIAS\MetaData\Copyright\NullRepository::getEntry ( int  $id)

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 27 of file NullRepository.php.

27  : EntryInterface
28  {
29  return new NullEntry();
30  }

◆ reorderEntries()

ILIAS\MetaData\Copyright\NullRepository::reorderEntries ( int ...  $ids)

Updates the position of entries according to the order their IDs are passed.

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 75 of file NullRepository.php.

75  : void
76  {
77  }

◆ updateEntry()

ILIAS\MetaData\Copyright\NullRepository::updateEntry ( int  $id,
string  $title,
string  $description = '',
bool  $is_outdated = false,
string  $full_name = '',
?URI  $link = null,
URI|string  $image = '',
string  $alt_text = '' 
)

Implements ILIAS\MetaData\Copyright\RepositoryInterface.

Definition at line 63 of file NullRepository.php.

72  : void {
73  }

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