ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Public Member Functions | |
__construct (WrapperInterface $db_wrapper) | |
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... | |
Protected Member Functions | |
entryFromRow (array $row) | |
getURI (string $uri) | |
getNextPosition () | |
checkTitle (string $title) | |
getDefaultID () | |
updatePosition (int $id, int $position) | |
Protected Attributes | |
WrapperInterface | $db_wrapper |
Definition at line 26 of file DatabaseRepository.php.
ILIAS\MetaData\Copyright\DatabaseRepository::__construct | ( | WrapperInterface | $db_wrapper | ) |
Definition at line 30 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\$db_wrapper.
|
protected |
Definition at line 209 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\createEntry(), and ILIAS\MetaData\Copyright\DatabaseRepository\updateEntry().
ILIAS\MetaData\Copyright\DatabaseRepository::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 119 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\checkTitle(), ILIAS\MetaData\Copyright\DatabaseRepository\getNextPosition(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
ILIAS\MetaData\Copyright\DatabaseRepository::deleteEntry | ( | int | $id | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 111 of file DatabaseRepository.php.
|
protected |
Definition at line 84 of file DatabaseRepository.php.
References $data, ILIAS\MetaData\Copyright\DatabaseRepository\getURI(), and null.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\getActiveEntries(), ILIAS\MetaData\Copyright\DatabaseRepository\getAllEntries(), ILIAS\MetaData\Copyright\DatabaseRepository\getDefaultEntry(), and ILIAS\MetaData\Copyright\DatabaseRepository\getEntry().
ILIAS\MetaData\Copyright\DatabaseRepository::getActiveEntries | ( | ) |
The default entry is returned first, and the remaining entries are returned according to their position.
Outdated entries are skipped.
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 60 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
ILIAS\MetaData\Copyright\DatabaseRepository::getAllEntries | ( | ) |
The default entry is returned first, and the remaining entries are returned according to their position.
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 48 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
ILIAS\MetaData\Copyright\DatabaseRepository::getDefaultEntry | ( | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 72 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
|
protected |
Definition at line 231 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\reorderEntries().
ILIAS\MetaData\Copyright\DatabaseRepository::getEntry | ( | int | $id | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 35 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
|
protected |
Definition at line 160 of file DatabaseRepository.php.
References ILIAS\Repository\int().
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\createEntry().
|
protected |
Definition at line 106 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
ILIAS\MetaData\Copyright\DatabaseRepository::reorderEntries | ( | int ... | $ids | ) |
Updates the position of entries according to the order their IDs are passed.
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 218 of file DatabaseRepository.php.
References $id, ILIAS\MetaData\Copyright\DatabaseRepository\getDefaultID(), and ILIAS\MetaData\Copyright\DatabaseRepository\updatePosition().
ILIAS\MetaData\Copyright\DatabaseRepository::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 171 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\checkTitle(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
protected |
Definition at line 243 of file DatabaseRepository.php.
References ilDBConstants\T_INTEGER.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\reorderEntries().
|
protected |
Definition at line 28 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\__construct().