ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilObjLinkResourceGUI. More...
Public Member Functions | |
__construct () | |
Constructor public. | |
executeCommand () | |
execute command | |
createObject () | |
Overwritten to offer object cloning. | |
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 () | |
saveLinkCheckObject () | |
refreshLinkCheckObject () | |
__initLinkChecker () | |
getTabs ($tabs_gui) | |
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 | |
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 () | |
setTabs () | |
set admin tabs public | |
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. | |
fillCloneSearchTemplate ($a_tpl_varname, $a_type) | |
Add an object search in case the number of existing objects is too big to offer a selection list. | |
searchCloneSourceObject () | |
Search clone source by title. | |
buildCloneSelect ($existing_objs) | |
Build a select box for clonable objects (permission write) | |
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
Definition at line 38 of file class.ilObjLinkResourceGUI.php.
ilObjLinkResourceGUI::__construct | ( | ) |
ilObjLinkResourceGUI::__initLinkChecker | ( | ) |
Definition at line 1257 of file class.ilObjLinkResourceGUI.php.
References $ilDB.
Referenced by linkCheckerObject(), and refreshLinkCheckObject().
ilObjLinkResourceGUI::__prepareOutput | ( | ) |
Definition at line 1389 of file class.ilObjLinkResourceGUI.php.
References __setHeader(), __setLocator(), ilUtil\infoPanel(), and ilUtil\sendInfo().
Referenced by executeCommand().
ilObjLinkResourceGUI::__setHeader | ( | ) |
Definition at line 1411 of file class.ilObjLinkResourceGUI.php.
References ilUtil\getImagePath(), and getTabs().
Referenced by __prepareOutput().
ilObjLinkResourceGUI::__setLocator | ( | ) |
Definition at line 1428 of file class.ilObjLinkResourceGUI.php.
References $key, ilObjectGUI\$lng, $row, ilObjectGUI\$tree, elseif(), and ilUtil\getImagePath().
Referenced by __prepareOutput().
ilObjLinkResourceGUI::_goto | ( | $a_target | ) |
Definition at line 1488 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 1276 of file class.ilObjLinkResourceGUI.php.
References $ilCtrl, ilLinkResourceItems\lookupNumberOfLinks(), ilContainerSortingSettings\readSortMode(), and ilContainer\SORT_MANUAL.
Referenced by addLinkObject(), confirmDeleteLinkObject(), editLinkObject(), manageObject(), saveAddLinkObject(), showLinksObject(), sortObject(), and updateLinksObject().
ilObjLinkResourceGUI::addLinkObject | ( | ) |
Add an additional link.
Definition at line 363 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 594 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 973 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 145 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\fillCloneTemplate(), and initFormLink().
Referenced by saveObject().
|
protected |
Deactivate links.
Definition at line 1032 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, ilObjectGUI\checkPermission(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete links.
Definition at line 1011 of file class.ilObjLinkResourceGUI.php.
References $_POST, $ilCtrl, ilObjectGUI\checkPermission(), ilLinkResourceItems\delete(), and ilUtil\sendSuccess().
|
protected |
Definition at line 438 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, $param, ilObjectGUI\checkPermission(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete a dynamic parameter.
Definition at line 416 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, $param, ilObjectGUI\checkPermission(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::editLinkObject | ( | ) |
Edit a single link.
Definition at line 308 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, activateTabs(), ilObjectGUI\checkPermission(), initFormLink(), ilUtil\sendFailure(), and setValuesFromLink().
|
protected |
Start with manage mode.
Definition at line 829 of file class.ilObjLinkResourceGUI.php.
References $_GET, switchViewModeObject(), and VIEW_MODE_MANAGE.
ilObjLinkResourceGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 66 of file class.ilObjLinkResourceGUI.php.
References $_GET, $cmd, $ilCtrl, $ret, __prepareOutput(), ilMDUtils\_fillHTMLMetaTags(), ilMDEditorGUI\addObserver(), ilObjectGUI\getCreationMode(), infoScreen(), and ilObjectGUI\prepareOutput().
ilObjLinkResourceGUI::getTabs | ( | $tabs_gui | ) |
get tabs public
object | tabs gui object |
Definition at line 1324 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\getCreationMode(), and ilLinkResourceItems\lookupNumberOfLinks().
Referenced by __setHeader().
ilObjLinkResourceGUI::historyObject | ( | ) |
Definition at line 1090 of file class.ilObjLinkResourceGUI.php.
References $_GET, ilObjectGUI\checkPermission(), and ilHistoryGUI\getHistoryTable().
ilObjLinkResourceGUI::infoScreen | ( | ) |
show information screen
Definition at line 1070 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 1060 of file class.ilObjLinkResourceGUI.php.
References infoScreen().
|
protected |
Show create/edit single link.
int | form mode |
Definition at line 646 of file class.ilObjLinkResourceGUI.php.
References $_GET, $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 255 of file class.ilObjLinkResourceGUI.php.
References ilContainerSortingSettings\readSortMode(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setValue(), ilTextAreaInputGUI\setValue(), ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.
Referenced by saveSettingsObject(), and settingsObject().
|
protected |
Check if a new container title is required Necessary if there is more than one link.
Definition at line 807 of file class.ilObjLinkResourceGUI.php.
References ilLinkResourceItems\lookupNumberOfLinks().
Referenced by initFormLink(), saveAddLinkObject(), updateLinkObject(), and updateLinksObject().
|
protected |
Show link validation.
Definition at line 1111 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\$ilias, __initLinkChecker(), ilLinkCheckNotify\_getNotifyStatus(), ilObjectGUI\checkPermission(), ilDatePresentation\formatDate(), ilUtil\formCheckbox(), ilUtil\getImagePath(), IL_CAL_UNIX, and ilUtil\switchColor().
Referenced by refreshLinkCheckObject(), and saveLinkCheckObject().
|
protected |
Manage links.
Definition at line 875 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and showToolbar().
Referenced by viewObject().
ilObjLinkResourceGUI::refreshLinkCheckObject | ( | ) |
Definition at line 1223 of file class.ilObjLinkResourceGUI.php.
References __initLinkChecker(), linkCheckerObject(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::saveAddLinkObject | ( | ) |
Save form data.
Definition at line 376 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 1196 of file class.ilObjLinkResourceGUI.php.
References $_POST, $ilDB, linkCheckerObject(), and ilUtil\sendSuccess().
ilObjLinkResourceGUI::saveObject | ( | ) |
Save new object public.
Reimplemented from ilObjectGUI.
Definition at line 159 of file class.ilObjLinkResourceGUI.php.
References $_POST, $ilCtrl, ilParameterAppender\_isEnabled(), checkLinkInput(), createObject(), ilObjectGUI\fillCloneTemplate(), initFormLink(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Save container settings.
Definition at line 224 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\checkPermission(), initFormSettings(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilContainerSortingSettings\setSortMode().
|
protected |
Save nmanual sorting.
Definition at line 930 of file class.ilObjLinkResourceGUI.php.
References $_POST, ilContainerSorting\_getInstance(), ilObjectGUI\checkPermission(), ilUtil\sendSuccess(), and viewObject().
|
protected |
Edit settings Title, Description, Sorting.
Definition at line 211 of file class.ilObjLinkResourceGUI.php.
References ilObjectGUI\checkPermission(), and initFormSettings().
|
protected |
Set form values from link.
object | $a_link_id |
Definition at line 563 of file class.ilObjLinkResourceGUI.php.
References ilParameterAppender\_isEnabled(), and ilLinkResourceItems\getItem().
Referenced by editLinkObject().
|
protected |
Show all active links.
Definition at line 894 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 948 of file class.ilObjLinkResourceGUI.php.
Referenced by manageObject(), showLinksObject(), and sortObject().
|
protected |
Sort web links.
Definition at line 912 of file class.ilObjLinkResourceGUI.php.
References activateTabs(), ilObjectGUI\checkPermission(), and showToolbar().
Referenced by viewObject().
|
protected |
Switch between "View" "Manage" and "Sort".
Definition at line 817 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilCtrl, and viewObject().
Referenced by editLinksObject().
ilObjLinkResourceGUI::updateLinkObject | ( | ) |
Save after editing.
Definition at line 330 of file class.ilObjLinkResourceGUI.php.
References $ilCtrl, ilParameterAppender\_isEnabled(), checkLinkInput(), initFormLink(), isContainerMetaDataRequired(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Update all visible links.
Definition at line 464 of file class.ilObjLinkResourceGUI.php.
References $_POST, ilObjectGUI\$data, $ilCtrl, $param, activateTabs(), ilObjectGUI\checkPermission(), isContainerMetaDataRequired(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilObjLinkResourceGUI::viewObject | ( | ) |
View object.
Reimplemented from ilObjectGUI.
Definition at line 840 of file class.ilObjLinkResourceGUI.php.
References $_GET, $ilErr, ilObjectGUI\checkPermission(), manageObject(), showLinksObject(), and sortObject().
Referenced by confirmDeleteLinkObject(), saveSortingObject(), and switchViewModeObject().
const ilObjLinkResourceGUI::LINK_MOD_ADD = 3 |
Definition at line 46 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::LINK_MOD_CREATE = 1 |
Definition at line 44 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::LINK_MOD_EDIT = 2 |
Definition at line 45 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::VIEW_MODE_MANAGE = 2 |
Definition at line 41 of file class.ilObjLinkResourceGUI.php.
Referenced by editLinksObject().
const ilObjLinkResourceGUI::VIEW_MODE_SORT = 3 |
Definition at line 42 of file class.ilObjLinkResourceGUI.php.
const ilObjLinkResourceGUI::VIEW_MODE_VIEW = 1 |
Definition at line 40 of file class.ilObjLinkResourceGUI.php.