ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilObjLinkResourceGUI. More...
Public Member Functions | |
ilLinkResourceItems ($webr_id) | |
Constructor public. | |
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 () | |
cloneItems ($a_new_id) | |
Copy web resource items. | |
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) | |
getActivatedItems () | |
getCheckItems ($a_offset=0) | |
_deleteAll ($webr_id) | |
validate () | |
Validate required settings. | |
toXML (ilXmlWriter $writer) | |
Write link XML. |
Static Public Member Functions | |
static | lookupItem ($a_webr_id, $a_link_id) |
static | updateTitle ($a_link_id, $a_title) |
Update title. | |
static | getAllItemIds ($a_webr_id) |
Get all link ids. | |
static | _isSingular ($a_webr_id) |
Check whether there is only one active link in the web resource. | |
static | lookupNumberOfLinks ($a_webr_id) |
Get number of assigned links. | |
static | _getFirstLink ($a_webr_id) |
Get first link item Check before with _isSingular() if there is more or less than one. |
Class ilObjLinkResourceGUI.
Definition at line 15 of file class.ilLinkResourceItems.php.
ilLinkResourceItems::__setCreateDate | ( | $a_date | ) |
Definition at line 143 of file class.ilLinkResourceItems.php.
Referenced by add(), and readItem().
ilLinkResourceItems::__setLastUpdateDate | ( | $a_date | ) |
Definition at line 152 of file class.ilLinkResourceItems.php.
Referenced by add(), readItem(), and update().
ilLinkResourceItems::_deleteAll | ( | $webr_id | ) |
Definition at line 567 of file class.ilLinkResourceItems.php.
Referenced by ilObjLinkResource\delete().
|
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 619 of file class.ilLinkResourceItems.php.
Referenced by ilObjLinkResourceListGUI\__readLink(), ilObjLinkResourceGUI\callDirectLink(), ilObjLinkResource\cloneObject(), and ilObjLinkResource\MDUpdateListener().
|
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 584 of file class.ilLinkResourceItems.php.
Referenced by ilObjLinkResourceAccess\_checkDirectLink(), ilObjLinkResourceGUI\callDirectLink(), and ilObjLinkResource\cloneObject().
ilLinkResourceItems::add | ( | $a_update_history = true | ) |
Definition at line 361 of file class.ilLinkResourceItems.php.
References $query, $res, __setCreateDate(), __setLastUpdateDate(), ilHistory\_createEntry(), getActiveStatus(), getCreateDate(), getDescription(), getDisableCheckStatus(), getLastUpdateDate(), getLinkResourceId(), getTarget(), getTitle(), getValidStatus(), and setLinkId().
ilLinkResourceItems::cloneItems | ( | $a_new_id | ) |
Copy web resource items.
public
int | obj_id of new object |
Definition at line 184 of file class.ilLinkResourceItems.php.
References ilParameterAppender\_getParams(), getAllItems(), getLinkResourceId(), and ilLinkResourceItems().
ilLinkResourceItems::delete | ( | $a_item_id, | |
$a_update_history = true |
|||
) |
Definition at line 214 of file class.ilLinkResourceItems.php.
References $query, $res, ilHistory\_createEntry(), getItem(), and getLinkResourceId().
Referenced by ilObjLinkResourceGUI\deleteLinks().
ilLinkResourceItems::getActivatedItems | ( | ) |
Definition at line 534 of file class.ilLinkResourceItems.php.
References getAllItems().
ilLinkResourceItems::getActiveStatus | ( | ) |
Definition at line 130 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
|
static |
Get all link ids.
int | $a_webr_id |
Definition at line 452 of file class.ilLinkResourceItems.php.
References $query, $res, $row, and DB_FETCHMODE_ASSOC.
ilLinkResourceItems::getAllItems | ( | ) |
Definition at line 466 of file class.ilLinkResourceItems.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getLinkResourceId().
Referenced by cloneItems(), getActivatedItems(), and getCheckItems().
ilLinkResourceItems::getCheckItems | ( | $a_offset = 0 | ) |
Definition at line 546 of file class.ilLinkResourceItems.php.
References getAllItems().
ilLinkResourceItems::getCreateDate | ( | ) |
Definition at line 147 of file class.ilLinkResourceItems.php.
Referenced by add().
ilLinkResourceItems::getDescription | ( | ) |
Definition at line 114 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
ilLinkResourceItems::getDisableCheckStatus | ( | ) |
Definition at line 138 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
ilLinkResourceItems::getItem | ( | $a_link_id | ) |
Definition at line 422 of file class.ilLinkResourceItems.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, and getLinkResourceId().
Referenced by delete(), and ilObjLinkResourceGUI\setValuesFromLink().
ilLinkResourceItems::getLastCheckDate | ( | ) |
Definition at line 164 of file class.ilLinkResourceItems.php.
Referenced by update().
ilLinkResourceItems::getLastUpdateDate | ( | ) |
Definition at line 156 of file class.ilLinkResourceItems.php.
Referenced by add(), and update().
ilLinkResourceItems::getLinkId | ( | ) |
Definition at line 98 of file class.ilLinkResourceItems.php.
Referenced by update(), updateActive(), updateDisableCheck(), and updateValid().
ilLinkResourceItems::getLinkResourceId | ( | ) |
Definition at line 90 of file class.ilLinkResourceItems.php.
Referenced by add(), cloneItems(), delete(), getAllItems(), getItem(), sortItems(), toXML(), update(), updateLastCheck(), and updateValidByCheck().
ilLinkResourceItems::getLinkResourceRefId | ( | ) |
Definition at line 82 of file class.ilLinkResourceItems.php.
ilLinkResourceItems::getTarget | ( | ) |
Definition at line 122 of file class.ilLinkResourceItems.php.
Referenced by add(), update(), and validate().
ilLinkResourceItems::getTitle | ( | ) |
Definition at line 106 of file class.ilLinkResourceItems.php.
Referenced by add(), update(), and validate().
ilLinkResourceItems::getValidStatus | ( | ) |
Definition at line 172 of file class.ilLinkResourceItems.php.
References $valid.
Referenced by add(), and update().
ilLinkResourceItems::ilLinkResourceItems | ( | $webr_id | ) |
Constructor public.
Definition at line 21 of file class.ilLinkResourceItems.php.
Referenced by cloneItems().
|
static |
Definition at line 32 of file class.ilLinkResourceItems.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjLinkResourceSubItemListGUI\getHTML(), toXML(), and ilObjLinkResourceGUI\updateLinks().
|
static |
Get number of assigned links.
int | $a_webr_id |
Definition at line 600 of file class.ilLinkResourceItems.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjLinkResourceGUI\activateTabs(), ilObjLinkResourceGUI\isContainerMetaDataRequired(), ilObjLinkResource\MDUpdateListener(), and ilObjLinkResourceGUI\setTabs().
ilLinkResourceItems::readItem | ( | $a_link_id | ) |
Definition at line 397 of file class.ilLinkResourceItems.php.
References $query, $res, $row, __setCreateDate(), __setLastUpdateDate(), DB_FETCHMODE_OBJECT, setActiveStatus(), setDescription(), setDisableCheckStatus(), setLastCheckDate(), setLinkId(), setTarget(), setTitle(), and setValidStatus().
ilLinkResourceItems::setActiveStatus | ( | $a_status | ) |
Definition at line 126 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setDescription | ( | $a_description | ) |
Definition at line 110 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setDisableCheckStatus | ( | $a_status | ) |
Definition at line 134 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setLastCheckDate | ( | $a_date | ) |
Definition at line 160 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setLinkId | ( | $a_id | ) |
Definition at line 94 of file class.ilLinkResourceItems.php.
Referenced by add(), and readItem().
ilLinkResourceItems::setLinkResourceId | ( | $a_id | ) |
Definition at line 86 of file class.ilLinkResourceItems.php.
ilLinkResourceItems::setLinkResourceRefId | ( | $a_ref_id | ) |
Definition at line 78 of file class.ilLinkResourceItems.php.
ilLinkResourceItems::setTarget | ( | $a_target | ) |
Definition at line 118 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setTitle | ( | $a_title | ) |
Definition at line 102 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::setValidStatus | ( | $a_status | ) |
Definition at line 168 of file class.ilLinkResourceItems.php.
Referenced by readItem().
ilLinkResourceItems::sortItems | ( | $a_items | ) |
Sort items (sorting mode depends on sorting setting)
object | $a_items |
Definition at line 495 of file class.ilLinkResourceItems.php.
References ilContainerSortingSettings\_lookupSortMode(), getLinkResourceId(), ilContainerSorting\lookupPositions(), ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, and ilUtil\sortArray().
ilLinkResourceItems::toXML | ( | ilXmlWriter | $writer | ) |
Write link XML.
ilXmlWriter | $writer |
Definition at line 642 of file class.ilLinkResourceItems.php.
References ilParameterAppender\_getParams(), getLinkResourceId(), LINKS_LOGIN, LINKS_MATRICULATION, LINKS_USER_ID, lookupItem(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
ilLinkResourceItems::update | ( | $a_update_history = true | ) |
Definition at line 235 of file class.ilLinkResourceItems.php.
References $query, $res, __setLastUpdateDate(), ilHistory\_createEntry(), getActiveStatus(), getDescription(), getDisableCheckStatus(), getLastCheckDate(), getLastUpdateDate(), getLinkId(), getLinkResourceId(), getTarget(), getTitle(), and getValidStatus().
ilLinkResourceItems::updateActive | ( | $a_status | ) |
Definition at line 280 of file class.ilLinkResourceItems.php.
References $query, and getLinkId().
ilLinkResourceItems::updateDisableCheck | ( | $a_status | ) |
Definition at line 292 of file class.ilLinkResourceItems.php.
References $query, $res, and getLinkId().
ilLinkResourceItems::updateLastCheck | ( | $a_offset = 0 | ) |
Definition at line 304 of file class.ilLinkResourceItems.php.
References $query, $res, and getLinkResourceId().
|
static |
Update title.
type | $a_link_id | |
type | $a_title |
Definition at line 64 of file class.ilLinkResourceItems.php.
References $query.
Referenced by ilObjLinkResource\cloneObject().
ilLinkResourceItems::updateValid | ( | $a_status | ) |
Definition at line 268 of file class.ilLinkResourceItems.php.
References $query, $res, and getLinkId().
ilLinkResourceItems::updateValidByCheck | ( | $a_offset = 0 | ) |
Definition at line 332 of file class.ilLinkResourceItems.php.
References $query, $res, and getLinkResourceId().
ilLinkResourceItems::validate | ( | ) |
Validate required settings.
Definition at line 631 of file class.ilLinkResourceItems.php.
References getTarget(), and getTitle().