|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilWebLinkDatabaseRepository:
Collaboration diagram for ilWebLinkDatabaseRepository:Data Fields | |
| const | ITEMS_TABLE = 'webr_items' |
| const | LISTS_TABLE = 'webr_lists' |
| const | PARAMS_TABLE = 'webr_params' |
Protected Member Functions | |
| getParametersByLinkId (int $link_id) | |
| validateParameter (ilWebLinkBaseParameter $parameter) | |
| validateInternalItemTarget (ilWebLinkDraftItem $item) | |
| getCurrentTime () | |
| getNewDateTimeImmutable () | |
Protected Attributes | |
| int | $webr_id |
| ilDBInterface | $db |
| ilObjUser | $user |
| bool | $update_history |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 24 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::__construct | ( | int | $webr_id, |
| bool | $update_history = true |
||
| ) |
Definition at line 35 of file class.ilWebLinkDatabaseRepository.php.
References $DIC, $update_history, $webr_id, and ILIAS\Repository\user().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::createAllItemsInDraftContainer | ( | ilWebLinkDraftItemsContainer | $container | ) |
Implements ilWebLinkRepository.
Definition at line 167 of file class.ilWebLinkDatabaseRepository.php.
References $container, createItem(), and getWebrId().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::createItem | ( | ilWebLinkDraftItem | $item | ) |
Creates a new item, complete with parameters.
New parameters cannot be created on their own, but only by adding them as drafts to a drafted item, and then updating or creating with it.
Implements ilWebLinkRepository.
Definition at line 45 of file class.ilWebLinkDatabaseRepository.php.
References Vendor\Package\$e, ilHistory\_createEntry(), ilWebLinkBaseItem\getDescription(), ilWebLinkBaseItem\getParameters(), ilWebLinkBaseItem\getTarget(), ilWebLinkBaseItem\getTitle(), getWebrId(), ilWebLinkBaseItem\isActive(), ilWebLinkDraftItem\isInternal(), isUpdateHistory(), ILIAS\Repository\user(), validateInternalItemTarget(), and validateParameter().
Referenced by createAllItemsInDraftContainer().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebLinkDatabaseRepository::createList | ( | ilWebLinkDraftList | $list | ) |
Implements ilWebLinkRepository.
Definition at line 133 of file class.ilWebLinkDatabaseRepository.php.
References ilHistory\_createEntry(), ilWebLinkBaseList\getDescription(), ilWebLinkBaseList\getTitle(), getWebrId(), and isUpdateHistory().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::deleteAllItems | ( | ) |
Implements ilWebLinkRepository.
Definition at line 469 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::deleteItemByLinkID | ( | int | $link_id | ) |
Implements ilWebLinkRepository.
Definition at line 482 of file class.ilWebLinkDatabaseRepository.php.
References ilHistory\_createEntry().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::deleteList | ( | ) |
Implements ilWebLinkRepository.
Definition at line 521 of file class.ilWebLinkDatabaseRepository.php.
References $res, and ilHistory\_createEntry().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::deleteParameterByLinkIdAndParamId | ( | int | $link_id, |
| int | $param_id | ||
| ) |
Implements ilWebLinkRepository.
Definition at line 509 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::doesListExist | ( | ) |
Implements ilWebLinkRepository.
Definition at line 320 of file class.ilWebLinkDatabaseRepository.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
| ilWebLinkDatabaseRepository::doesOnlyOneItemExist | ( | bool | $only_active = false | ) |
Implements ilWebLinkRepository.
Definition at line 256 of file class.ilWebLinkDatabaseRepository.php.
References $query, ilDBConstants\FETCHMODE_OBJECT, and getWebrId().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::getAllItemsAsContainer | ( | bool | $only_active = false | ) |
Implements ilWebLinkRepository.
Definition at line 181 of file class.ilWebLinkDatabaseRepository.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getParametersByLinkId(), and getWebrId().
Here is the call graph for this function:
|
protected |
Definition at line 612 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::getItemByLinkId | ( | int | $link_id | ) |
Implements ilWebLinkRepository.
Definition at line 221 of file class.ilWebLinkDatabaseRepository.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getParametersByLinkId(), and getWebrId().
Here is the call graph for this function:| ilWebLinkDatabaseRepository::getList | ( | ) |
Implements ilWebLinkRepository.
Definition at line 298 of file class.ilWebLinkDatabaseRepository.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
|
protected |
Definition at line 617 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::getParameterinItemByParamId | ( | ilWebLinkItem | $item, |
| int | $param_id | ||
| ) |
Implements ilWebLinkRepository.
Definition at line 271 of file class.ilWebLinkDatabaseRepository.php.
References ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Definition at line 544 of file class.ilWebLinkDatabaseRepository.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\user().
Referenced by getAllItemsAsContainer(), and getItemByLinkId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilWebLinkDatabaseRepository::getWebrId | ( | ) |
Definition at line 597 of file class.ilWebLinkDatabaseRepository.php.
Referenced by createAllItemsInDraftContainer(), createItem(), createList(), doesOnlyOneItemExist(), getAllItemsAsContainer(), and getItemByLinkId().
Here is the caller graph for this function:| ilWebLinkDatabaseRepository::isUpdateHistory | ( | ) |
Definition at line 602 of file class.ilWebLinkDatabaseRepository.php.
Referenced by createItem(), and createList().
Here is the caller graph for this function:| ilWebLinkDatabaseRepository::setUpdateHistory | ( | bool | $update_history | ) |
Definition at line 607 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::updateItem | ( | ilWebLinkItem | $item, |
| ilWebLinkDraftItem | $drafted_item | ||
| ) |
Updates an item.
New parameters added as drafts update the parameter they replace, or else are created fresh. Current parameters of the item not added to the draft are deleted.
Implements ilWebLinkRepository.
Definition at line 332 of file class.ilWebLinkDatabaseRepository.php.
| ilWebLinkDatabaseRepository::updateList | ( | ilWebLinkList | $list, |
| ilWebLinkDraftList | $drafted_list | ||
| ) |
Implements ilWebLinkRepository.
Definition at line 438 of file class.ilWebLinkDatabaseRepository.php.
|
protected |
| ilWebLinkDatabaseRepositoryException |
Definition at line 585 of file class.ilWebLinkDatabaseRepository.php.
References ilWebLinkBaseItem\getTarget(), ilWebLinkDraftItem\isInternal(), and ilLinkInputGUI\isInternalLink().
Referenced by createItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilWebLinkDatabaseRepositoryException |
Definition at line 570 of file class.ilWebLinkDatabaseRepository.php.
References ilWebLinkBaseParameter\getValue(), and ilWebLinkBaseParameter\VALUES.
Referenced by createItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 31 of file class.ilWebLinkDatabaseRepository.php.
|
protected |
Definition at line 33 of file class.ilWebLinkDatabaseRepository.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilWebLinkDatabaseRepository.php.
|
protected |
Definition at line 30 of file class.ilWebLinkDatabaseRepository.php.
Referenced by __construct().
| const ilWebLinkDatabaseRepository::ITEMS_TABLE = 'webr_items' |
Definition at line 26 of file class.ilWebLinkDatabaseRepository.php.
Referenced by ilWebResourceDatabaseRepositoryTest\testCreateExternalItem(), ilWebResourceDatabaseRepositoryTest\testCreateInternalItemWithBrokenParameter(), and ilWebResourceDatabaseRepositoryTest\testCreateItemBrokenInternalLinkException().
| const ilWebLinkDatabaseRepository::LISTS_TABLE = 'webr_lists' |
Definition at line 27 of file class.ilWebLinkDatabaseRepository.php.
Referenced by ilWebResourceDatabaseRepositoryTest\testCreateList().
| const ilWebLinkDatabaseRepository::PARAMS_TABLE = 'webr_params' |
Definition at line 28 of file class.ilWebLinkDatabaseRepository.php.
Referenced by ilWebResourceDatabaseRepositoryTest\testCreateExternalItem(), and ilWebResourceDatabaseRepositoryTest\testCreateInternalItemWithBrokenParameter().