ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\MetaData\Copyright\RepositoryInterface Interface Reference
+ Inheritance diagram for ILIAS\MetaData\Copyright\RepositoryInterface:
+ Collaboration diagram for ILIAS\MetaData\Copyright\RepositoryInterface:

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 RepositoryInterface.php.

Member Function Documentation

◆ createEntry()

ILIAS\MetaData\Copyright\RepositoryInterface::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.

Implemented in ILIAS\MetaData\Copyright\DatabaseRepository, and ILIAS\MetaData\Copyright\NullRepository.

◆ deleteEntry()

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

◆ getActiveEntries()

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

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

Outdated entries are skipped.

Returns
EntryInterface[]

Implemented in ILIAS\MetaData\Copyright\DatabaseRepository, and ILIAS\MetaData\Copyright\NullRepository.

◆ getAllEntries()

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

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

Returns
EntryInterface[]

Implemented in ILIAS\MetaData\Copyright\DatabaseRepository, and ILIAS\MetaData\Copyright\NullRepository.

◆ getDefaultEntry()

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

◆ getEntry()

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

◆ reorderEntries()

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

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

Implemented in ILIAS\MetaData\Copyright\DatabaseRepository, and ILIAS\MetaData\Copyright\NullRepository.

◆ updateEntry()

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

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