ILIAS
eassessment Revision 61809
|
Class ilObjLinkResourceGUI. More...
Public Member Functions | |
__construct () | |
Constructor public. | |
executeCommand () | |
execute command | |
createObject () | |
Overwritten to offer object cloning. | |
initImportForm ($a_new_type="") | |
Init object import form. | |
saveObject () | |
Save new object public. | |
editLinkObject () | |
Edit a single link. | |
updateLinkObject () | |
Save after editing. | |
addLinkObject () | |
Add an additional link. | |
saveAddLinkObject () | |
Save form data. | |
viewObject () | |
View object. | |
infoScreenObject () | |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed | |
infoScreen () | |
show information screen | |
historyObject () | |
formatInvalidLinkArray (Array $row) | |
saveLinkCheckObject () | |
refreshLinkCheckObject () | |
__initLinkChecker () | |
setTabs () | |
get tabs public | |
__prepareOutput () | |
__setHeader () | |
__setLocator () | |
_goto ($a_target) | |
Public Member Functions inherited from ilObjectGUI | |
ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true) | |
Constructor public. | |
withReferences () | |
determines wether objects are referenced or not (got ref ids or not) | |
setCreationMode ($a_mode=true) | |
if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui | |
getCreationMode () | |
get creation mode | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
getHTML () | |
undeleteObject () | |
Get objects back from trash. | |
confirmedDeleteObject () | |
confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
editObject () | |
edit object | |
updateObject () | |
updates object entry in object_data | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
isVisible ($a_ref_id, $a_type) | |
deleteObject ($a_error=false) | |
Display deletion confirmation screen. | |
trashObject () | |
Show trash content of object. | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. |
Data Fields | |
const | VIEW_MODE_VIEW = 1 |
const | VIEW_MODE_MANAGE = 2 |
const | VIEW_MODE_SORT = 3 |
const | LINK_MOD_CREATE = 1 |
const | LINK_MOD_EDIT = 2 |
const | LINK_MOD_ADD = 3 |
Data Fields inherited from ilObjectGUI | |
const | COPY_WIZARD_NEEDS_PAGE = 1 |
$ilias | |
$objDefinition | |
$tpl | |
$tree | |
$lng | |
$data | |
$object | |
$ref_id | |
$obj_id | |
$maxcount | |
$formaction | |
$return_location | |
$target_frame | |
$tab_target_script | |
$actions | |
$sub_objects | |
$omit_locator = false |
Protected Member Functions | |
importFileObject () | |
Import. | |
settingsObject () | |
Edit settings Title, Description, Sorting. | |
saveSettingsObject () | |
Save container settings. | |
initFormSettings () | |
Show settings form. | |
deleteParameterObject () | |
Delete a dynamic parameter. | |
deleteParameterFormObject () | |
updateLinksObject () | |
Update all visible links. | |
setValuesFromLink ($a_link_id) | |
Set form values from link. | |
checkLinkInput ($a_mode, $a_webr_id=0, $a_link_id=0) | |
Check input after creating a new link. | |
initFormLink ($a_mode) | |
Show create/edit single link. | |
isContainerMetaDataRequired () | |
Check if a new container title is required Necessary if there is more than one link. | |
switchViewModeObject () | |
Switch between "View" "Manage" and "Sort". | |
editLinksObject () | |
Start with manage mode. | |
manageObject () | |
Manage links. | |
showLinksObject () | |
Show all active links. | |
sortObject () | |
Sort web links. | |
saveSortingObject () | |
Save nmanual sorting. | |
showToolbar ($a_tpl_var) | |
Show toolbar. | |
confirmDeleteLinkObject () | |
Show delete confirmation screen. | |
deleteLinksObject () | |
Delete links. | |
deactivateLinkObject () | |
Deactivate links. | |
linkCheckerObject () | |
Show link validation. | |
activateTabs ($a_active_tab, $a_active_subtab= '') | |
Activate tab and subtabs. | |
Protected Member Functions inherited from ilObjectGUI | |
assignObject () | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
setAdminTabs () | |
set admin tabs public | |
setLocator () | |
set Locator | |
addLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
afterUpdate () | |
setFormAction ($a_cmd, $a_formaction) | |
set specific form action for command | |
getReturnLocation ($a_cmd, $a_location="") | |
get return location for command (command is method name without "Object", e.g. | |
setReturnLocation ($a_cmd, $a_location) | |
set specific return location for command | |
getTargetFrame ($a_cmd, $a_target_frame="") | |
get target frame for command (command is method name without "Object", e.g. | |
setTargetFrame ($a_cmd, $a_target_frame) | |
set specific target frame for command | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
getTabs (&$tabs_gui) | |
get tabs abstract method. | |
__showButton ($a_cmd, $a_text, $a_target= '') | |
hitsperpageObject () | |
& | __initTableGUI () |
__setTableGUIBasicData (&$tbl, &$result_set, $a_from="") | |
standard implementation for tables use 'from' variable use different initial setting of table | |
__showClipboardTable ($a_result_set, $a_from="") | |
redirectToRefId ($a_ref_id, $a_cmd="") | |
redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value | |
fillCloneTemplate ($a_tpl_varname, $a_type) | |
Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") |
Class ilObjLinkResourceGUI.
ilObjLinkResourceGUI: ilMDEditorGUI, ilPermissionGUI, ilInfoScreenGUI, ilObjectCopyGUI ilObjLinkResourceGUI: ilExportGUI
Definition at line 21 of file class.ilObjLinkResourceGUI.php.
ilObjLinkResourceGUI::__construct | ( | ) |
ilObjLinkResourceGUI::__initLinkChecker | ( | ) |
Definition at line 1317 of file class.ilObjLinkResourceGUI.php.
References $ilDB.
Referenced by linkCheckerObject(), and refreshLinkCheckObject().
ilObjLinkResourceGUI::__prepareOutput | ( | ) |
Definition at line 1457 of file class.ilObjLinkResourceGUI.php.
References __setHeader(), __setLocator(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilObjLinkResourceGUI::__setHeader | ( | ) |
Definition at line 1479 of file class.ilObjLinkResourceGUI.php.
References ilUtil\getImagePath(), and setTabs().
Referenced by __prepareOutput().
ilObjLinkResourceGUI::__setLocator | ( | ) |
Definition at line 1492 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\$lng, $row, ilObjectGUI\$tree, and ilUtil\getImagePath().
Referenced by __prepareOutput().
ilObjLinkResourceGUI::_goto | ( | $a_target | ) |
Definition at line 1552 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, ilUtil\redirect(), and ilUtil\sendFailure().
|
protected |
Activate tab and subtabs.
string | $a_active_tab | |
string | $a_active_subtab | [optional] |
Definition at line 1336 of file class.ilObjLinkResourceGUI.php.
References $ilCtrl, ilObjectGUI\$lng, ilContainerSortingSettings\_lookupSortMode(), ilLinkResourceItems\lookupNumberOfLinks(), and ilContainer\SORT_MANUAL.
Referenced by addLinkObject(), confirmDeleteLinkObject(), editLinkObject(), manageObject(), saveAddLinkObject(), showLinksObject(), sortObject(), and updateLinksObject().
ilObjLinkResourceGUI::addLinkObject | ( | ) |
Add an additional link.
Definition at line 432 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and initFormLink().
|
protected |
Check input after creating a new link.
object | $a_mode | |
object | $a_webr_id | [optional] |
object | $a_link_id | [optional] |
Definition at line 663 of file class.ilObjLinkResourceGUI.php.
References $valid, ilParameterAppender\_isEnabled(), LINKS_ERR_NO_NAME, LINKS_ERR_NO_NAME_VALUE, and LINKS_ERR_NO_VALUE.
Referenced by saveAddLinkObject(), saveObject(), and updateLinkObject().
|
protected |
Show delete confirmation screen.
Definition at line 1048 of file class.ilObjLinkResourceGUI.php.
References $_GET, $_POST, activateTabs(), ilObjectGUI\checkPermission(), ilUtil\sendFailure(), and viewObject().
ilObjLinkResourceGUI::createObject | ( | ) |
Overwritten to offer object cloning.
public
Reimplemented from ilObjectGUI.
Definition at line 136 of file class.ilObjLinkResourceGUI.php.
References $_REQUEST, ilObjectGUI\fillCloneTemplate(), initFormLink(), and initImportForm().
Referenced by saveObject().
|
protected |
Deactivate links.
Definition at line 1107 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\checkPermission(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete links.
Definition at line 1086 of file class.ilObjLinkResourceGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\checkPermission(), ilLinkResourceItems\delete(), and ilUtil\sendSuccess().
|
protected |
Definition at line 507 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\checkPermission(), ilParameterAppender\delete(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete a dynamic parameter.
Definition at line 485 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\checkPermission(), ilParameterAppender\delete(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::editLinkObject | ( | ) |
Edit a single link.
Definition at line 377 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, activateTabs(), ilObjectGUI\checkPermission(), initFormLink(), ilUtil\sendFailure(), and setValuesFromLink().
|
protected |
Start with manage mode.
Definition at line 902 of file class.ilObjLinkResourceGUI.php.
References $_GET, switchViewModeObject(), and VIEW_MODE_MANAGE.
ilObjLinkResourceGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 49 of file class.ilObjLinkResourceGUI.php.
References $_GET, $cmd, $ilCtrl, $ret, __prepareOutput(), ilMDUtils\_fillHTMLMetaTags(), ilMDEditorGUI\addObserver(), ilObjectGUI\getCreationMode(), infoScreen(), and ilObjectGUI\prepareOutput().
ilObjLinkResourceGUI::formatInvalidLinkArray | ( | Array | $row | ) |
array | Unformatted array |
Implements ilLinkCheckerGUIRowHandling.
Definition at line 1192 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\$actions, and $row.
ilObjLinkResourceGUI::historyObject | ( | ) |
Definition at line 1165 of file class.ilObjLinkResourceGUI.php.
References $_GET, ilObjectGUI\checkPermission(), and ilHistoryGUI\getHistoryTable().
|
protected |
Import.
public
Definition at line 183 of file class.ilObjLinkResourceGUI.php.
References $_GET, $_POST, $ilErr, ilObjectGUI\$lng, ilObjectGUI\$objDefinition, ilObjectGUI\$tpl, ilObjectFactory\getInstanceByObjId(), initImportForm(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::infoScreen | ( | ) |
show information screen
Definition at line 1145 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\checkPermission().
Referenced by executeCommand(), and infoScreenObject().
ilObjLinkResourceGUI::infoScreenObject | ( | ) |
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
Definition at line 1135 of file class.ilObjLinkResourceGUI.php.
References infoScreen().
|
protected |
Show create/edit single link.
int | form mode |
Definition at line 715 of file class.ilObjLinkResourceGUI.php.
References $_GET, $_REQUEST, $desc, $title, ilParameterAppender\_getOptionSelect(), ilParameterAppender\_getParams(), ilParameterAppender\_isEnabled(), ilSubEnabledFormPropertyGUI\addSubItem(), isContainerMetaDataRequired(), ilParameterAppender\parameterToInfo(), ilUtil\sendInfo(), ilCheckboxInputGUI\setChecked(), ilNonEditableValueGUI\setInfo(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilTextInputGUI\setSize(), ilTextInputGUI\setValue(), and ilCheckboxInputGUI\setValue().
Referenced by addLinkObject(), createObject(), editLinkObject(), saveAddLinkObject(), saveObject(), and updateLinkObject().
|
protected |
Show settings form.
Definition at line 324 of file class.ilObjLinkResourceGUI.php.
References ilContainerSortingSettings\_lookupSortMode(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setValue(), ilTextAreaInputGUI\setValue(), ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.
Referenced by saveSettingsObject(), and settingsObject().
ilObjLinkResourceGUI::initImportForm | ( | $a_new_type = "" | ) |
Init object import form.
string | new type |
Definition at line 153 of file class.ilObjLinkResourceGUI.php.
References $ilCtrl, ilObjectGUI\$lng, and ilFileInputGUI\setSuffixes().
Referenced by createObject(), and importFileObject().
|
protected |
Check if a new container title is required Necessary if there is more than one link.
Definition at line 880 of file class.ilObjLinkResourceGUI.php.
References ilLinkResourceItems\lookupNumberOfLinks().
Referenced by initFormLink(), saveAddLinkObject(), updateLinkObject(), and updateLinksObject().
|
protected |
Show link validation.
Definition at line 1219 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\$ilias, ilObjectGUI\$tpl, __initLinkChecker(), ilLinkCheckNotify\_getNotifyStatus(), ilObjectGUI\checkPermission(), and ilCheckboxInputGUI\setValue().
Referenced by refreshLinkCheckObject(), and saveLinkCheckObject().
|
protected |
Manage links.
Definition at line 950 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and showToolbar().
Referenced by viewObject().
ilObjLinkResourceGUI::refreshLinkCheckObject | ( | ) |
Definition at line 1283 of file class.ilObjLinkResourceGUI.php.
References __initLinkChecker(), linkCheckerObject(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::saveAddLinkObject | ( | ) |
Save form data.
Definition at line 445 of file class.ilObjLinkResourceGUI.php.
References $ilCtrl, ilParameterAppender\_isEnabled(), activateTabs(), checkLinkInput(), ilObjectGUI\checkPermission(), initFormLink(), isContainerMetaDataRequired(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::saveLinkCheckObject | ( | ) |
Definition at line 1256 of file class.ilObjLinkResourceGUI.php.
References $_POST, $ilDB, linkCheckerObject(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::saveObject | ( | ) |
Save new object public.
Reimplemented from ilObjectGUI.
Definition at line 224 of file class.ilObjLinkResourceGUI.php.
References $_POST, $_REQUEST, $ilCtrl, ilParameterAppender\_isEnabled(), checkLinkInput(), createObject(), ilObjectGUI\fillCloneTemplate(), initFormLink(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Save container settings.
Definition at line 291 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\checkPermission(), initFormSettings(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilContainerSortingSettings\setSortMode().
|
protected |
Save nmanual sorting.
Definition at line 1005 of file class.ilObjLinkResourceGUI.php.
References $_POST, ilContainerSorting\_getInstance(), ilObjectGUI\checkPermission(), ilUtil\sendSuccess(), and viewObject().
ilObjLinkResourceGUI::setTabs | ( | ) |
get tabs public
Reimplemented from ilObjectGUI.
Definition at line 1383 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\$lng, ilObjectGUI\getCreationMode(), and ilLinkResourceItems\lookupNumberOfLinks().
Referenced by __setHeader().
|
protected |
Edit settings Title, Description, Sorting.
Definition at line 276 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\checkPermission(), and initFormSettings().
|
protected |
Set form values from link.
object | $a_link_id |
Definition at line 632 of file class.ilObjLinkResourceGUI.php.
References ilParameterAppender\_isEnabled(), and ilLinkResourceItems\getItem().
Referenced by editLinkObject().
|
protected |
Show all active links.
Definition at line 969 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and showToolbar().
Referenced by viewObject().
|
protected |
Show toolbar.
string | $a_tpl_var | Name of template variable |
Definition at line 1023 of file class.ilObjLinkResourceGUI.php.
Referenced by manageObject(), showLinksObject(), and sortObject().
|
protected |
Sort web links.
Definition at line 987 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and showToolbar().
Referenced by viewObject().
|
protected |
Switch between "View" "Manage" and "Sort".
Definition at line 890 of file class.ilObjLinkResourceGUI.php.
References $_GET, $_REQUEST, $ilCtrl, and viewObject().
Referenced by editLinksObject().
ilObjLinkResourceGUI::updateLinkObject | ( | ) |
Save after editing.
Definition at line 399 of file class.ilObjLinkResourceGUI.php.
References $_REQUEST, $ilCtrl, ilParameterAppender\_isEnabled(), checkLinkInput(), initFormLink(), isContainerMetaDataRequired(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Update all visible links.
Definition at line 533 of file class.ilObjLinkResourceGUI.php.
References $_POST, ilObjectGUI\$data, $ilCtrl, activateTabs(), ilObjectGUI\checkPermission(), isContainerMetaDataRequired(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilParameterAppender\setName(), and ilUtil\stripSlashes().
ilObjLinkResourceGUI::viewObject | ( | ) |
View object.
Reimplemented from ilObjectGUI.
Definition at line 913 of file class.ilObjLinkResourceGUI.php.
References $_GET, $_REQUEST, $ilErr, ilObjectGUI\checkPermission(), manageObject(), showLinksObject(), and sortObject().
Referenced by confirmDeleteLinkObject(), saveSortingObject(), and switchViewModeObject().
const ilObjLinkResourceGUI::LINK_MOD_ADD = 3 |
Definition at line 29 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::LINK_MOD_CREATE = 1 |
Definition at line 27 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::LINK_MOD_EDIT = 2 |
Definition at line 28 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::VIEW_MODE_MANAGE = 2 |
Definition at line 24 of file class.ilObjLinkResourceGUI.php.
Referenced by editLinksObject().
const ilObjLinkResourceGUI::VIEW_MODE_SORT = 3 |
Definition at line 25 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::VIEW_MODE_VIEW = 1 |
Definition at line 23 of file class.ilObjLinkResourceGUI.php.