ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilObjExerciseGUI. More...
Public Member Functions | |
ilObjExerciseGUI ($a_data, $a_id, $a_call_by_reference, $a_prepare_output=true) | |
Constructor public. | |
getFiles () | |
setFiles ($a_files) | |
createObject ($a_reload=false) | |
viewObject () | |
list childs of current object | |
deliverObject () | |
Displays a form which allows members to deliver their solutions. | |
deliverFileObject () | |
downloadFileObject () | |
saveObject () | |
save object public | |
editObject () | |
edit object | |
initPropertiesForm ($a_mode="create") | |
Init properties form. | |
getPropertiesValues () | |
Get values for properties form. | |
updateObject () | |
Update exercise from values from form. | |
cancelEditObject () | |
uploadZipObject () | |
uploadFileObject () | |
updateMembersObject () | |
update data of members table | |
downloadReturnedObject () | |
Download submitted files of user. | |
downloadNewReturnedObject () | |
Download newly submitted files of user. | |
addMembersObject () | |
membersObject () | |
redirectFeedbackMailObject () | |
set feedback status for member and redirect to mail screen | |
downloadAllObject () | |
Download all submitted files (of all members). | |
newMembersObject () | |
__getMembersOfObject ($a_result, $a_type) | |
__showObjectSelect ($a_result, $a_type) | |
__showMembersSelect ($a_result) | |
__searchMembers ($a_search_str, $a_search_for) | |
__deassignMembers () | |
saveCommentsObject () | |
getComments ($member_id) | |
__saveStatus () | |
__getDateSelect ($a_type, $a_selected) | |
__filterAssignedUsers ($a_result) | |
getTabs (&$tabs_gui) | |
adds tabs to tab gui object | |
& | executeCommand () |
execute command | |
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 | |
_goto ($a_target) | |
redirect script | |
addLocatorItems () | |
Add locator item. | |
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 | |
assignObject () | |
prepareOutput () | |
prepare output | |
setTitleAndDescription () | |
called by prepare output | |
showUpperIcon () | |
showMountWebfolderIcon () | |
setTabs () | |
set admin tabs public | |
setAdminTabs () | |
set admin tabs public | |
getAdminTabs (&$tabs_gui) | |
administration tabs show only permissions and trash folder | |
getHTML () | |
setActions ($a_actions="") | |
set possible actions for objects in list. | |
setSubObjects ($a_sub_objects="") | |
set possible subobjects for this object. | |
setLocator () | |
set Locator | |
omitLocator ($a_omit=true) | |
addAdminLocatorItems () | |
should be overwritten to add object specific items (repository items are preloaded) | |
undeleteObject () | |
get object back from trash | |
insertSavedNodes ($a_source_id, $a_dest_id, $a_tree_id, &$a_affected_ids) | |
recursive method to insert all saved nodes of the clipboard (maybe this function could be moved to a rbac class ?) | |
confirmedDeleteObject () | |
confirmed deletion if object -> objects are moved to trash | |
cancelDeleteObject () | |
cancel deletion of object | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
removeDeletedNodes ($a_node_id, $a_checked, $a_delete_objects, &$a_affected_ids) | |
remove already deleted objects within the objects in trash recursive function | |
createObject () | |
create new object form | |
cancelObject ($in_rep=false) | |
cancel action and go back to previous page public | |
importObject () | |
import new object form | |
displayEditForm ($fields) | |
display edit form (usually called by editObject) | |
afterUpdate () | |
permObject () | |
show permissions of current node | |
getFormAction ($a_cmd, $a_formaction="") | |
get form action for command (command is method name without "Object", e.g. | |
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 | |
permSaveObject () | |
save permissions | |
isVisible ($a_ref_id, $a_type) | |
displayList () | |
display object list | |
deleteObject ($a_error=false) | |
display deletion confirmation screen only for referenced objects. | |
trashObject () | |
show trash content of object | |
addRoleObject () | |
adds a local role This method is only called when choose the option 'you may add local roles'. | |
showActions ($with_subobjects=false) | |
show possible action (form buttons) | |
getActions () | |
Get Actions. | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) | |
getTemplateFile ($a_cmd, $a_type="") | |
get a template blockfile format: tpl. | |
getTitlesByRefId ($a_ref_ids) | |
get Titles of objects this method is used for error messages in methods cut/copy/paste | |
__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="") | |
infoObject () | |
__buildRoleFilterSelect () | |
__filterRoles ($a_roles, $a_filter) | |
ownerObject () | |
changeOwnerObject () | |
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. | |
cloneAllObject () | |
Clone single (not container object) Method is overwritten in ilContainerGUI. | |
copyWizardHasOptions ($a_mode) | |
Check if there is any modules specific option. | |
getCenterColumnHTML () | |
Get center column. | |
getRightColumnHTML () | |
Display right column. | |
setColumnSettings ($column_gui) | |
May be overwritten in subclasses. | |
checkPermission ($a_perm, $a_cmd="") |
Additional Inherited Members | |
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 inherited from ilObjectGUI | |
searchCloneSourceObject () | |
Search clone source by title. | |
buildCloneSelect ($existing_objs) | |
Build a select box for clonable objects (permission write) |
Class ilObjExerciseGUI.
ilObjExerciseGUI: ilPermissionGUI, ilLearningProgressGUI, ilInfoScreenGUI, ilRepositorySearchGUI
Definition at line 37 of file class.ilObjExerciseGUI.php.
ilObjExerciseGUI::__deassignMembers | ( | ) |
Definition at line 1378 of file class.ilObjExerciseGUI.php.
References ilUtil\sendInfo().
Referenced by updateMembersObject().
ilObjExerciseGUI::__filterAssignedUsers | ( | $a_result | ) |
Definition at line 1506 of file class.ilObjExerciseGUI.php.
References $user.
ilObjExerciseGUI::__getDateSelect | ( | $a_type, | |
$a_selected | |||
) |
Definition at line 1465 of file class.ilObjExerciseGUI.php.
References formSelect().
Referenced by createObject().
ilObjExerciseGUI::__getMembersOfObject | ( | $a_result, | |
$a_type | |||
) |
Definition at line 1262 of file class.ilObjExerciseGUI.php.
References $result, and ilObjectFactory\getInstanceByRefId().
Referenced by newMembersObject().
ilObjExerciseGUI::__saveStatus | ( | ) |
Definition at line 1415 of file class.ilObjExerciseGUI.php.
References ilLPMarks\_lookupMark(), ilObjUser\_lookupName(), ilObjectGUI\checkPermission(), ilUtil\sendInfo(), ilLPMarks\setMark(), and ilUtil\stripSlashes().
Referenced by updateMembersObject().
ilObjExerciseGUI::__searchMembers | ( | $a_search_str, | |
$a_search_for | |||
) |
Definition at line 1352 of file class.ilObjExerciseGUI.php.
References $_SESSION, ilUtil\sendInfo(), and ilUtil\stripSlashes().
Referenced by newMembersObject().
ilObjExerciseGUI::__showMembersSelect | ( | $a_result | ) |
Definition at line 1315 of file class.ilObjExerciseGUI.php.
References $user, ilUtil\array_php2js(), and ilObjectFactory\getInstanceByObjId().
Referenced by newMembersObject().
ilObjExerciseGUI::__showObjectSelect | ( | $a_result, | |
$a_type | |||
) |
Definition at line 1291 of file class.ilObjExerciseGUI.php.
References ilObjectFactory\getInstanceByRefId().
Referenced by newMembersObject().
ilObjExerciseGUI::_goto | ( | $a_target | ) |
redirect script
string | $a_target |
Definition at line 1818 of file class.ilObjExerciseGUI.php.
References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendInfo().
ilObjExerciseGUI::addLocatorItems | ( | ) |
Add locator item.
Reimplemented from ilObjectGUI.
Definition at line 1847 of file class.ilObjExerciseGUI.php.
References $_GET.
ilObjExerciseGUI::addMembersObject | ( | ) |
Definition at line 708 of file class.ilObjExerciseGUI.php.
References $ilErr, ilObjectGUI\checkPermission(), and ilUtil\sendInfo().
ilObjExerciseGUI::cancelEditObject | ( | ) |
Definition at line 582 of file class.ilObjExerciseGUI.php.
References ilUtil\sendInfo().
ilObjExerciseGUI::createObject | ( | $a_reload = false | ) |
Definition at line 64 of file class.ilObjExerciseGUI.php.
References $_SESSION, ilObjectGUI\$tpl, __getDateSelect(), ilObjectGUI\createObject(), ilObjectGUI\fillCloneTemplate(), ilObjectGUI\getTemplateFile(), initPropertiesForm(), and ilUtil\prepareFormOutput().
ilObjExerciseGUI::deliverFileObject | ( | ) |
Definition at line 288 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\$lng, ilObjectGUI\checkPermission(), deliverObject(), and ilUtil\sendInfo().
ilObjExerciseGUI::deliverObject | ( | ) |
Displays a form which allows members to deliver their solutions.
public
Definition at line 184 of file class.ilObjExerciseGUI.php.
References $file, ilObjectGUI\checkPermission(), ilDatePresentation\formatDate(), ilUtil\getImagePath(), ilObjectGUI\getTemplateFile(), IL_CAL_TIMESTAMP, and ilUtil\sendInfo().
Referenced by deliverFileObject().
ilObjExerciseGUI::downloadAllObject | ( | ) |
Download all submitted files (of all members).
Definition at line 1140 of file class.ilObjExerciseGUI.php.
References ilObject\_exists(), ilObjectGUI\checkPermission(), and ilObjectFactory\getInstanceByObjId().
ilObjExerciseGUI::downloadFileObject | ( | ) |
Definition at line 314 of file class.ilObjExerciseGUI.php.
References $_GET, $file, $files, ilObjectGUI\checkPermission(), ilUtil\deliverFile(), exit, and ilUtil\sendInfo().
ilObjExerciseGUI::downloadNewReturnedObject | ( | ) |
Download newly submitted files of user.
Definition at line 697 of file class.ilObjExerciseGUI.php.
References $_GET, ilObjectGUI\checkPermission(), and exit.
ilObjExerciseGUI::downloadReturnedObject | ( | ) |
Download submitted files of user.
Definition at line 683 of file class.ilObjExerciseGUI.php.
References $_GET, ilObjectGUI\checkPermission(), and exit.
ilObjExerciseGUI::editObject | ( | ) |
edit object
public
Reimplemented from ilObjectGUI.
Definition at line 392 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), getPropertiesValues(), ilObjectGUI\getTemplateFile(), and initPropertiesForm().
& ilObjExerciseGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilObjectGUI.
Definition at line 1592 of file class.ilObjExerciseGUI.php.
References $_GET, $cmd, $ret, infoScreen(), LP_MODE_REPOSITORY, and ilObjectGUI\prepareOutput().
ilObjExerciseGUI::getComments | ( | $member_id | ) |
Definition at line 1410 of file class.ilObjExerciseGUI.php.
ilObjExerciseGUI::getFiles | ( | ) |
Definition at line 54 of file class.ilObjExerciseGUI.php.
ilObjExerciseGUI::getPropertiesValues | ( | ) |
Get values for properties form.
Definition at line 508 of file class.ilObjExerciseGUI.php.
References IL_CAL_UNIX, and ilDateTime\setDate().
Referenced by editObject().
ilObjExerciseGUI::getTabs | ( | & | $tabs_gui | ) |
adds tabs to tab gui object
object | $tabs_gui | ilTabsGUI object |
Reimplemented from ilObjectGUI.
Definition at line 1524 of file class.ilObjExerciseGUI.php.
References $_GET, and ilLearningProgressAccess\checkAccess().
ilObjExerciseGUI::ilObjExerciseGUI | ( | $a_data, | |
$a_id, | |||
$a_call_by_reference, | |||
$a_prepare_output = true |
|||
) |
Constructor public.
Definition at line 43 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\$lng, and ilObjectGUI\ilObjectGUI().
ilObjExerciseGUI::infoScreen | ( | ) |
show information screen
Definition at line 1668 of file class.ilObjExerciseGUI.php.
References $_GET, $file, $files, ilLPMarks\_lookupComment(), ilLPMarks\_lookupMark(), ilExerciseMembers\_lookupStatus(), ilObjectGUI\checkPermission(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, IL_CAL_UNIX, ilUtil\int2array(), and ilUtil\timearray2string().
Referenced by executeCommand(), and infoScreenObject().
ilObjExerciseGUI::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 1658 of file class.ilObjExerciseGUI.php.
References infoScreen().
Referenced by viewObject().
ilObjExerciseGUI::initPropertiesForm | ( | $a_mode = "create" | ) |
Init properties form.
int | $a_mode | "create"/"edit" |
Definition at line 420 of file class.ilObjExerciseGUI.php.
References $file, $files, $ilCtrl, ilObjectGUI\$lng, ilUtil\getImagePath(), ilCheckboxInputGUI\setOptionTitle(), ilFormPropertyGUI\setRequired(), and ilDateTimeInputGUI\setShowTime().
Referenced by createObject(), editObject(), saveObject(), and updateObject().
ilObjExerciseGUI::membersObject | ( | ) |
Definition at line 733 of file class.ilObjExerciseGUI.php.
References $_GET, $_SESSION, ilObjectGUI\$actions, ilObjectGUI\$tree, ilLPMarks\_lookupComment(), ilObjExercise\_lookupFeedbackTime(), ilLPMarks\_lookupMark(), ilObject\_lookupObjId(), ilObjExercise\_lookupSentTime(), ilExerciseMembers\_lookupStatus(), ilObjExercise\_lookupStatusTime(), ilObject\_lookupType(), ilObjectGUI\checkPermission(), ilDatePresentation\formatDate(), ilUtil\formCheckbox(), ilUtil\formSelect(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByObjId(), ilObjectGUI\getTemplateFile(), IL_CAL_DATE, IL_CAL_DATETIME, ilUtil\prepareFormOutput(), ilUtil\sendInfo(), ilUtil\sortArray(), and ilUtil\switchColor().
Referenced by saveCommentsObject().
ilObjExerciseGUI::newMembersObject | ( | ) |
Definition at line 1163 of file class.ilObjExerciseGUI.php.
References $result, __getMembersOfObject(), __searchMembers(), __showMembersSelect(), __showObjectSelect(), ilObjectGUI\checkPermission(), ilUtil\formRadioButton(), ilObjectGUI\getTemplateFile(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
ilObjExerciseGUI::redirectFeedbackMailObject | ( | ) |
set feedback status for member and redirect to mail screen
Definition at line 1111 of file class.ilObjExerciseGUI.php.
References $_GET, ilObjUser\_lookupLogin(), ilObjectGUI\checkPermission(), ilUtil\redirect(), and ilUtil\sendInfo().
Referenced by updateMembersObject().
ilObjExerciseGUI::saveCommentsObject | ( | ) |
Definition at line 1395 of file class.ilObjExerciseGUI.php.
References $_GET, ilObjectGUI\checkPermission(), membersObject(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
ilObjExerciseGUI::saveObject | ( | ) |
save object public
Reimplemented from ilObjectGUI.
Definition at line 355 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\createObject(), IL_CAL_UNIX, initPropertiesForm(), ilUtil\redirect(), and ilUtil\sendInfo().
ilObjExerciseGUI::setFiles | ( | $a_files | ) |
Definition at line 59 of file class.ilObjExerciseGUI.php.
ilObjExerciseGUI::updateMembersObject | ( | ) |
update data of members table
Definition at line 619 of file class.ilObjExerciseGUI.php.
References __deassignMembers(), __saveStatus(), ilObjectGUI\checkPermission(), exit, redirectFeedbackMailObject(), and ilUtil\sendInfo().
ilObjExerciseGUI::updateObject | ( | ) |
Update exercise from values from form.
Reimplemented from ilObjectGUI.
Definition at line 524 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), IL_CAL_UNIX, initPropertiesForm(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
ilObjExerciseGUI::uploadFileObject | ( | ) |
Definition at line 602 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\checkPermission(), and ilUtil\sendInfo().
ilObjExerciseGUI::uploadZipObject | ( | ) |
Definition at line 588 of file class.ilObjExerciseGUI.php.
References ilObjectGUI\checkPermission(), and ilUtil\sendInfo().
ilObjExerciseGUI::viewObject | ( | ) |
list childs of current object
public
Reimplemented from ilObjectGUI.
Definition at line 100 of file class.ilObjExerciseGUI.php.
References $_GET, $file, ilLearningProgress\_tracProgress(), ilUtil\formRadioButton(), ilUtil\getImagePath(), ilObjectGUI\getTemplateFile(), infoScreenObject(), ilUtil\int2array(), and ilUtil\timearray2string().