|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilLinkResourceItems. More...
Collaboration diagram for ilLinkResourceItems:Public Member Functions | |
| __construct ($webr_id) | |
| Constructor @access public. More... | |
| setLinkResourceRefId ($a_ref_id) | |
| getLinkResourceRefId () | |
| setLinkResourceId ($a_id) | |
| getLinkResourceId () | |
| setLinkId ($a_id) | |
| getLinkId () | |
| setTitle ($a_title) | |
| getTitle () | |
| setDescription ($a_description) | |
| getDescription () | |
| setTarget ($a_target) | |
| getTarget () | |
| setActiveStatus ($a_status) | |
| getActiveStatus () | |
| setDisableCheckStatus ($a_status) | |
| getDisableCheckStatus () | |
| __setCreateDate ($a_date) | |
| getCreateDate () | |
| __setLastUpdateDate ($a_date) | |
| getLastUpdateDate () | |
| setLastCheckDate ($a_date) | |
| getLastCheckDate () | |
| setValidStatus ($a_status) | |
| getValidStatus () | |
| setInternal ($a_status) | |
| getInternal () | |
| cloneItems ($a_new_id) | |
| Copy web resource items. More... | |
| delete ($a_item_id, $a_update_history=true) | |
| update ($a_update_history=true) | |
| updateValid ($a_status) | |
| updateActive ($a_status) | |
| updateDisableCheck ($a_status) | |
| updateLastCheck ($a_offset=0) | |
| updateValidByCheck ($a_offset=0) | |
| add ($a_update_history=true) | |
| readItem ($a_link_id) | |
| getItem ($a_link_id) | |
| getAllItems () | |
| sortItems ($a_items) | |
| Sort items (sorting mode depends on sorting setting) More... | |
| getActivatedItems () | |
| getCheckItems ($a_offset=0) | |
| validate () | |
| Validate required settings. More... | |
| toXML (ilXmlWriter $writer) | |
| Write link XML. More... | |
Static Public Member Functions | |
| static | lookupItem ($a_webr_id, $a_link_id) |
| static | updateTitle ($a_link_id, $a_title) |
| Update title. More... | |
| static | getAllItemIds ($a_webr_id) |
| Get all link ids. More... | |
| static | _deleteAll ($webr_id) |
| static | _isSingular ($a_webr_id) |
| Check whether there is only one active link in the web resource. More... | |
| static | lookupNumberOfLinks ($a_webr_id) |
| Get number of assigned links. More... | |
| static | _getFirstLink ($a_webr_id) |
| Get first link item Check before with _isSingular() if there is more or less than one. More... | |
| ilLinkResourceItems::__construct | ( | $webr_id | ) |
Constructor @access public.
Definition at line 21 of file class.ilLinkResourceItems.php.
| ilLinkResourceItems::__setCreateDate | ( | $a_date | ) |
Definition at line 148 of file class.ilLinkResourceItems.php.
Referenced by add(), and readItem().
Here is the caller graph for this function:| ilLinkResourceItems::__setLastUpdateDate | ( | $a_date | ) |
Definition at line 157 of file class.ilLinkResourceItems.php.
Referenced by add(), readItem(), and update().
Here is the caller graph for this function:
|
static |
Definition at line 592 of file class.ilLinkResourceItems.php.
Referenced by ilObjLinkResource\delete().
Here is the caller graph for this function:
|
static |
Get first link item Check before with _isSingular() if there is more or less than one.
| int | $a_webr_id | object id of web resource |
Definition at line 650 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, and ilObjLinkResourceAccess\_getFirstLink().
Referenced by ilObjLinkResourceListGUI\__readLink(), ilObjLinkResourceGUI\callDirectLink(), ilObjLinkResource\cloneObject(), and ilObjLinkResource\MDUpdateListener().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check whether there is only one active link in the web resource.
In this case this link is shown in a new browser window
| int | $a_webr_id | object id of web resource |
Definition at line 611 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and true.
Referenced by ilObjLinkResourceAccess\_checkDirectLink(), ilObjLinkResourceGUI\callDirectLink(), and ilObjLinkResource\cloneObject().
Here is the caller graph for this function:| ilLinkResourceItems::add | ( | $a_update_history = true | ) |
Definition at line 385 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, __setCreateDate(), __setLastUpdateDate(), ilHistory\_createEntry(), getActiveStatus(), getCreateDate(), getDescription(), getDisableCheckStatus(), getInternal(), getLastUpdateDate(), getLinkResourceId(), getTarget(), getTitle(), getValidStatus(), and setLinkId().
Here is the call graph for this function:| ilLinkResourceItems::cloneItems | ( | $a_new_id | ) |
Copy web resource items.
@access public
| int | obj_id of new object |
Definition at line 197 of file class.ilLinkResourceItems.php.
References $data, ilParameterAppender\_getParams(), getAllItems(), and getLinkResourceId().
Here is the call graph for this function:| ilLinkResourceItems::delete | ( | $a_item_id, | |
$a_update_history = true |
|||
| ) |
Definition at line 226 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, ilHistory\_createEntry(), getItem(), and getLinkResourceId().
Here is the call graph for this function:| ilLinkResourceItems::getActivatedItems | ( | ) |
Definition at line 564 of file class.ilLinkResourceItems.php.
References getAllItems().
Here is the call graph for this function:| ilLinkResourceItems::getActiveStatus | ( | ) |
Definition at line 135 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
Here is the caller graph for this function:
|
static |
Get all link ids.
| int | $a_webr_id |
Definition at line 485 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_ASSOC.
| ilLinkResourceItems::getAllItems | ( | ) |
Definition at line 500 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getLinkResourceId().
Referenced by cloneItems(), getActivatedItems(), getCheckItems(), and toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLinkResourceItems::getCheckItems | ( | $a_offset = 0 | ) |
Definition at line 574 of file class.ilLinkResourceItems.php.
References getAllItems().
Here is the call graph for this function:| ilLinkResourceItems::getCreateDate | ( | ) |
Definition at line 152 of file class.ilLinkResourceItems.php.
Referenced by add().
Here is the caller graph for this function:| ilLinkResourceItems::getDescription | ( | ) |
Definition at line 119 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
Here is the caller graph for this function:| ilLinkResourceItems::getDisableCheckStatus | ( | ) |
Definition at line 143 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
Here is the caller graph for this function:| ilLinkResourceItems::getInternal | ( | ) |
Definition at line 185 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
Here is the caller graph for this function:| ilLinkResourceItems::getItem | ( | $a_link_id | ) |
Definition at line 453 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and getLinkResourceId().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLinkResourceItems::getLastCheckDate | ( | ) |
Definition at line 169 of file class.ilLinkResourceItems.php.
Referenced by update().
Here is the caller graph for this function:| ilLinkResourceItems::getLastUpdateDate | ( | ) |
Definition at line 161 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
Here is the caller graph for this function:| ilLinkResourceItems::getLinkId | ( | ) |
Definition at line 103 of file class.ilLinkResourceItems.php.
Referenced by update(), updateActive(), updateDisableCheck(), and updateValid().
Here is the caller graph for this function:| ilLinkResourceItems::getLinkResourceId | ( | ) |
Definition at line 95 of file class.ilLinkResourceItems.php.
Referenced by add(), cloneItems(), delete(), getAllItems(), getItem(), sortItems(), toXML(), update(), updateLastCheck(), and updateValidByCheck().
Here is the caller graph for this function:| ilLinkResourceItems::getLinkResourceRefId | ( | ) |
Definition at line 87 of file class.ilLinkResourceItems.php.
| ilLinkResourceItems::getTarget | ( | ) |
Definition at line 127 of file class.ilLinkResourceItems.php.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:| ilLinkResourceItems::getTitle | ( | ) |
Definition at line 111 of file class.ilLinkResourceItems.php.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:| ilLinkResourceItems::getValidStatus | ( | ) |
Definition at line 177 of file class.ilLinkResourceItems.php.
References $valid.
Referenced by add(), and update().
Here is the caller graph for this function:
|
static |
Definition at line 34 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjLinkResourceSubItemListGUI\getHTML(), toXML(), and ilObjLinkResourceGUI\updateLinks().
Here is the caller graph for this function:
|
static |
Get number of assigned links.
| int | $a_webr_id |
Definition at line 629 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjLinkResourceGUI\activateTabs(), and ilObjLinkResource\MDUpdateListener().
Here is the caller graph for this function:| ilLinkResourceItems::readItem | ( | $a_link_id | ) |
Definition at line 426 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, __setCreateDate(), __setLastUpdateDate(), ilDBConstants\FETCHMODE_OBJECT, setActiveStatus(), setDescription(), setDisableCheckStatus(), setInternal(), setLastCheckDate(), setLinkId(), setTarget(), setTitle(), and setValidStatus().
Here is the call graph for this function:| ilLinkResourceItems::setActiveStatus | ( | $a_status | ) |
Definition at line 131 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setDescription | ( | $a_description | ) |
Definition at line 115 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setDisableCheckStatus | ( | $a_status | ) |
Definition at line 139 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setInternal | ( | $a_status | ) |
Definition at line 181 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setLastCheckDate | ( | $a_date | ) |
Definition at line 165 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setLinkId | ( | $a_id | ) |
Definition at line 99 of file class.ilLinkResourceItems.php.
Referenced by add(), and readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setLinkResourceId | ( | $a_id | ) |
Definition at line 91 of file class.ilLinkResourceItems.php.
| ilLinkResourceItems::setLinkResourceRefId | ( | $a_ref_id | ) |
Definition at line 83 of file class.ilLinkResourceItems.php.
| ilLinkResourceItems::setTarget | ( | $a_target | ) |
Definition at line 123 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setTitle | ( | $a_title | ) |
Definition at line 107 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::setValidStatus | ( | $a_status | ) |
Definition at line 173 of file class.ilLinkResourceItems.php.
Referenced by readItem().
Here is the caller graph for this function:| ilLinkResourceItems::sortItems | ( | $a_items | ) |
Sort items (sorting mode depends on sorting setting)
| object | $a_items |
Definition at line 531 of file class.ilLinkResourceItems.php.
References ilContainerSortingSettings\_lookupSortMode(), getLinkResourceId(), ilContainerSorting\lookupPositions(), ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, and ilUtil\sortArray().
Referenced by toXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLinkResourceItems::toXML | ( | ilXmlWriter | $writer | ) |
Write link XML.
| ilXmlWriter | $writer |
Definition at line 675 of file class.ilLinkResourceItems.php.
References $param, ilParameterAppender\_getParams(), getAllItems(), getLinkResourceId(), LINKS_LOGIN, LINKS_MATRICULATION, LINKS_USER_ID, lookupItem(), sortItems(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilLinkResourceItems::update | ( | $a_update_history = true | ) |
Definition at line 251 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, __setLastUpdateDate(), ilHistory\_createEntry(), getActiveStatus(), getDescription(), getDisableCheckStatus(), getInternal(), getLastCheckDate(), getLastUpdateDate(), getLinkId(), getLinkResourceId(), getTarget(), getTitle(), and getValidStatus().
Here is the call graph for this function:| ilLinkResourceItems::updateActive | ( | $a_status | ) |
Definition at line 302 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, and getLinkId().
Here is the call graph for this function:| ilLinkResourceItems::updateDisableCheck | ( | $a_status | ) |
Definition at line 316 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and getLinkId().
Here is the call graph for this function:| ilLinkResourceItems::updateLastCheck | ( | $a_offset = 0 | ) |
Definition at line 330 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and getLinkResourceId().
Here is the call graph for this function:
|
static |
Update title.
| type | $a_link_id | |
| type | $a_title |
Definition at line 67 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, and $query.
Referenced by ilObjLinkResource\cloneObject().
Here is the caller graph for this function:| ilLinkResourceItems::updateValid | ( | $a_status | ) |
Definition at line 288 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and getLinkId().
Here is the call graph for this function:| ilLinkResourceItems::updateValidByCheck | ( | $a_offset = 0 | ) |
Definition at line 357 of file class.ilLinkResourceItems.php.
References $DIC, $ilDB, $query, $res, and getLinkResourceId().
Here is the call graph for this function:| ilLinkResourceItems::validate | ( | ) |
Validate required settings.
Definition at line 664 of file class.ilLinkResourceItems.php.
References getTarget(), and getTitle().
Here is the call graph for this function: