|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ILIAS\MetaData\Copyright\DatabaseRepository:
Collaboration diagram for ILIAS\MetaData\Copyright\DatabaseRepository:Public Member Functions | |
| __construct (\ilDBInterface $db) | |
| 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 | |
| ilDBInterface | $db |
Definition at line 25 of file DatabaseRepository.php.
| ILIAS\MetaData\Copyright\DatabaseRepository::__construct | ( | \ilDBInterface | $db | ) |
Definition at line 29 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\$db.
|
protected |
Definition at line 207 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\createEntry(), and ILIAS\MetaData\Copyright\DatabaseRepository\updateEntry().
Here is the caller graph for this function:| 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 118 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\checkTitle(), ILIAS\MetaData\Copyright\DatabaseRepository\getNextPosition(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ILIAS\MetaData\Copyright\DatabaseRepository::deleteEntry | ( | int | $id | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 110 of file DatabaseRepository.php.
References ilDBConstants\T_INTEGER.
|
protected |
Definition at line 83 of file DatabaseRepository.php.
References $data, and ILIAS\MetaData\Copyright\DatabaseRepository\getURI().
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\getActiveEntries(), ILIAS\MetaData\Copyright\DatabaseRepository\getAllEntries(), ILIAS\MetaData\Copyright\DatabaseRepository\getDefaultEntry(), and ILIAS\MetaData\Copyright\DatabaseRepository\getEntry().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 59 of file DatabaseRepository.php.
References $res, and ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
Here is the call graph for this function:| 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 47 of file DatabaseRepository.php.
References $res, and ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
Here is the call graph for this function:| ILIAS\MetaData\Copyright\DatabaseRepository::getDefaultEntry | ( | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 71 of file DatabaseRepository.php.
References $res, and ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
Here is the call graph for this function:
|
protected |
Definition at line 229 of file DatabaseRepository.php.
References $res.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\reorderEntries().
Here is the caller graph for this function:| ILIAS\MetaData\Copyright\DatabaseRepository::getEntry | ( | int | $id | ) |
Implements ILIAS\MetaData\Copyright\RepositoryInterface.
Definition at line 34 of file DatabaseRepository.php.
References $res, ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:
|
protected |
Definition at line 159 of file DatabaseRepository.php.
References $res.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\createEntry().
Here is the caller graph for this function:
|
protected |
Definition at line 105 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\entryFromRow().
Here is the caller graph for this function:| 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 216 of file DatabaseRepository.php.
References $id, ILIAS\MetaData\Copyright\DatabaseRepository\getDefaultID(), and ILIAS\MetaData\Copyright\DatabaseRepository\updatePosition().
Here is the call graph for this function:| 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 169 of file DatabaseRepository.php.
References ILIAS\MetaData\Copyright\DatabaseRepository\checkTitle(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:
|
protected |
Definition at line 241 of file DatabaseRepository.php.
References ilDBConstants\T_INTEGER.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\reorderEntries().
Here is the caller graph for this function:
|
protected |
Definition at line 27 of file DatabaseRepository.php.
Referenced by ILIAS\MetaData\Copyright\DatabaseRepository\__construct().