ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjAssessmentFolderGUI Class Reference

Class ilObjAssessmentFolderGUI. More...

+ Inheritance diagram for ilObjAssessmentFolderGUI:
+ Collaboration diagram for ilObjAssessmentFolderGUI:

Public Member Functions

 ilObjAssessmentFolderGUI ($a_data, $a_id, $a_call_by_reference)
 Constructor.
 saveObject ()
 save object public
 settingsObject (ilPropertyFormGUI $form=null)
 display assessment folder settings form
 saveSettingsObject ()
 Save Assessment settings.
 showLogObject ()
 Called when the a log should be shown.
 exportLogObject ()
 Called when the a log should be exported.
 logsObject ($p_from=null, $p_until=null, $p_test=null)
 display assessment folder logs form
 deleteLogObject ()
 Deletes the log entries for one or more tests.
 logAdminObject ()
 Administration output for assessment log files.
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getLogdataSubtabs ()
 getTabs (&$tabs_gui)
 get tabs
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
executeCommand ()
 execute command
 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
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 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)
 viewObject ()
 list childs of current object
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Static Public Member Functions

static getSettingsTemplateConfig ()
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.

Data Fields

 $conditions
- 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
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Protected Member Functions

 showLogSettingsObject (ilPropertyFormGUI $form=null)
- Protected Member Functions inherited from ilObjectGUI
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 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 ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 initCreationForms ($a_new_type)
 Init creation froms.
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initCreateForm ($a_new_type)
 Init object creation form.
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput())
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 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)
 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
 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="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Private Member Functions

 forwardToSettingsTemplateGUI ()

Detailed Description

Member Function Documentation

ilObjAssessmentFolderGUI::deleteLogObject ( )

Deletes the log entries for one or more tests.

Definition at line 463 of file class.ilObjAssessmentFolderGUI.php.

References $_POST, logAdminObject(), ilUtil\sendInfo(), and ilUtil\sendSuccess().

{
if (is_array($_POST["chb_test"]) && (count($_POST["chb_test"])))
{
$this->object->deleteLogEntries($_POST["chb_test"]);
ilUtil::sendSuccess($this->lng->txt("ass_log_deleted"));
}
else
{
ilUtil::sendInfo($this->lng->txt("ass_log_delete_no_selection"));
}
$this->logAdminObject();
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::exportLogObject ( )

Called when the a log should be exported.

Definition at line 326 of file class.ilObjAssessmentFolderGUI.php.

References $_POST, $log, $row, $separator, $test, ilObjTest\_getAvailableTests(), assQuestion\_getQuestionTitle(), ilObjUser\_lookupName(), ilUtil\deliverData(), IL_CAL_FKT_DATE, IL_CAL_UNIX, and ilUtil\processCSVRow().

{
$from = mktime($_POST['log_from']['time']['h'], $_POST['log_from']['time']['m'], 0, $_POST['log_from']['date']['m'], $_POST['log_from']['date']['d'], $_POST['log_from']['date']['y']);
$until = mktime($_POST['log_until']['time']['h'], $_POST['log_until']['time']['m'], 0, $_POST['log_until']['date']['m'], $_POST['log_until']['date']['d'], $_POST['log_until']['date']['y']);
$test = $_POST['sel_test'];
$csv = array();
$separator = ";";
$row = array(
$this->lng->txt("assessment_log_datetime"),
$this->lng->txt("user"),
$this->lng->txt("assessment_log_text"),
$this->lng->txt("question")
);
include_once "./Modules/Test/classes/class.ilObjTest.php";
include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
$available_tests =& ilObjTest::_getAvailableTests(1);
array_push($csv, ilUtil::processCSVRow($row, TRUE, $separator));
$log_output =& $this->object->getLog($from, $until, $test);
$users = array();
foreach ($log_output as $key => $log)
{
if (!array_key_exists($log["user_fi"], $users))
{
$users[$log["user_fi"]] = ilObjUser::_lookupName($log["user_fi"]);
}
$title = "";
if ($log["question_fi"] || $log["original_fi"])
{
$title = assQuestion::_getQuestionTitle($log["question_fi"]);
if (strlen($title) == 0)
{
$title = assQuestion::_getQuestionTitle($log["original_fi"]);
}
$title = $this->lng->txt("assessment_log_question") . ": " . $title;
}
$csvrow = array();
$date = new ilDateTime($log['tstamp'],IL_CAL_UNIX);
array_push($csvrow, $date->get(IL_CAL_FKT_DATE,'Y-m-d H:i'));
array_push($csvrow, trim($users[$log["user_fi"]]["title"] . " " . $users[$log["user_fi"]]["firstname"] . " " . $users[$log["user_fi"]]["lastname"]));
array_push($csvrow, trim($log["logtext"]));
array_push($csvrow, $title);
array_push($csv, ilUtil::processCSVRow($csvrow, TRUE, $separator));
}
$csvoutput = "";
foreach ($csv as $row)
{
$csvoutput .= join($row, $separator) . "\n";
}
ilUtil::deliverData($csvoutput, str_replace(" ", "_", "log_" . $from . "_" . $until . "_" . $available_tests[$test]).".csv");
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::forwardToSettingsTemplateGUI ( )
private

Definition at line 666 of file class.ilObjAssessmentFolderGUI.php.

{
global $ilTabs;
$ilTabs->setTabActive('templates');
require_once 'Services/Administration/classes/class.ilSettingsTemplateGUI.php';
$gui = new ilSettingsTemplateGUI(self::getSettingsTemplateConfig());
$this->ctrl->forwardCommand($gui);
}
ilObjAssessmentFolderGUI::getAdminTabs ( $tabs_gui)

administration tabs show only permissions and trash folder

Reimplemented from ilObjectGUI.

Definition at line 502 of file class.ilObjAssessmentFolderGUI.php.

References getTabs().

{
$this->getTabs($tabs_gui);
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::getLogdataSubtabs ( )

Definition at line 507 of file class.ilObjAssessmentFolderGUI.php.

Referenced by getTabs().

{
global $ilTabs;
// log settings
$ilTabs->addSubTabTarget("settings",
$this->ctrl->getLinkTarget($this, "showLogSettings"),
array("saveLogSettings", "showLogSettings")
, "");
// log output
$ilTabs->addSubTabTarget("ass_log_output",
$this->ctrl->getLinkTarget($this, "logs"),
array("logs", "showLog", "exportLog")
, "");
// log administration
$ilTabs->addSubTabTarget("ass_log_admin",
$this->ctrl->getLinkTarget($this, "logAdmin"),
array("logAdmin", "deleteLog"),
"", "");
}

+ Here is the caller graph for this function:

static ilObjAssessmentFolderGUI::getSettingsTemplateConfig ( )
static
Returns
ilTestSettingsTemplateConfig

Definition at line 681 of file class.ilObjAssessmentFolderGUI.php.

References ilObjectGUI\$lng.

Referenced by ilTestSettingsGUI\__construct(), ilObjTestSettingsScoringResultsGUI\__construct(), ilObjTestGUI\afterSave(), ilLOEditorGUI\applySettingsTemplate(), ilObjTestGUI\getQuestionsSubTabs(), and ilObjTestGUI\getTabs().

{
global $lng;
require_once 'Modules/Test/classes/class.ilTestSettingsTemplateConfig.php';
$config = new ilTestSettingsTemplateConfig($lng);
$config->init();
return $config;
}

+ Here is the caller graph for this function:

ilObjAssessmentFolderGUI::getTabs ( $tabs_gui)

get tabs

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 536 of file class.ilObjAssessmentFolderGUI.php.

References ilObjectGUI\$lng, and getLogdataSubtabs().

Referenced by getAdminTabs().

{
global $rbacsystem, $lng;
switch ($this->ctrl->getCmd())
{
case "saveLogSettings":
case "showLogSettings":
case "logs":
case "showLog":
case "exportLog":
case "logAdmin":
case "deleteLog":
break;
}
if ($rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$tabs_gui->addTarget("settings",
$this->ctrl->getLinkTarget($this, "settings"), array("settings","","view"), "", "");
$tabs_gui->addTarget("logs",
$this->ctrl->getLinkTarget($this, "showLogSettings"),
array('saveLogSettings', 'showLogSettings', "logs","showLog", "exportLog", "logAdmin", "deleteLog"),
"", "");
$tabs_gui->addTab("templates",
$lng->txt("adm_settings_templates"),
$this->ctrl->getLinkTargetByClass("ilsettingstemplategui", ""));
}
if ($rbacsystem->checkAccess("write",$this->object->getRefId()))
{
$tabs_gui->addTarget('units', $this->ctrl->getLinkTargetByClass('ilGlobalUnitConfigurationGUI', ''), '', 'ilglobalunitconfigurationgui');
}
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAssessmentFolderGUI::ilObjAssessmentFolderGUI (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor.

Definition at line 26 of file class.ilObjAssessmentFolderGUI.php.

References ilObjectGUI\ilObjectGUI().

{
global $rbacsystem;
$this->type = "assf";
$this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,false);
if (!$rbacsystem->checkAccess('read',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read_assf"),$this->ilias->error_obj->WARNING);
}
$this->lng->loadLanguageModule('assessment');
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::logAdminObject ( )

Administration output for assessment log files.

Definition at line 480 of file class.ilObjAssessmentFolderGUI.php.

References ilObjectGUI\$data, ilObjectGUI\$obj_id, and ilObjTest\_getAvailableTests().

Referenced by deleteLogObject().

{
global $ilAccess, $ilTabs;
$ilTabs->activateTab('logs');
$a_write_access = ($ilAccess->checkAccess("write", "", $this->object->getRefId())) ? true : false;
include_once "./Modules/Test/classes/tables/class.ilAssessmentFolderLogAdministrationTableGUI.php";
$table_gui = new ilAssessmentFolderLogAdministrationTableGUI($this, 'logAdmin', $a_write_access);
include_once "./Modules/Test/classes/class.ilObjTest.php";
$available_tests =& ilObjTest::_getAvailableTests(true);
$data = array();
foreach ($available_tests as $obj_id => $title)
{
$nr = $this->object->getNrOfLogEntries($obj_id);
array_push($data, array("title" => $title, "nr" => $nr, "id" => $obj_id));
}
$table_gui->setData($data);
$this->tpl->setVariable('ADM_CONTENT', $table_gui->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAssessmentFolderGUI::logsObject (   $p_from = null,
  $p_until = null,
  $p_test = null 
)

display assessment folder logs form

Definition at line 381 of file class.ilObjAssessmentFolderGUI.php.

References $_GET, $options, ilObjTest\_getAvailableTests(), IL_CAL_UNIX, ilUtil\prepareFormOutput(), ilUtil\sendInfo(), ilDateTimeInputGUI\setShowTime(), and ilUtil\sortArray().

Referenced by showLogObject().

{
global $ilTabs;
$ilTabs->activateTab('logs');
$template = new ilTemplate("tpl.assessment_logs.html", TRUE, TRUE, "Modules/Test");
include_once "./Modules/Test/classes/class.ilObjTest.php";
include_once "./Modules/TestQuestionPool/classes/class.assQuestion.php";
$available_tests =& ilObjTest::_getAvailableTests(1);
if (count($available_tests) == 0)
{
ilUtil::sendInfo($this->lng->txt('assessment_log_no_data'));
return;
}
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTableWidth("100%");
$form->setId("logs");
$header = new ilFormSectionHeaderGUI();
$header->setTitle($this->lng->txt("assessment_log"));
$form->addItem($header);
// from
$from = new ilDateTimeInputGUI($this->lng->txt('cal_from'), "log_from");
$from->setShowTime(true);
$now = getdate();
$fromdate = ($p_from) ? $p_from : (($_GET['log_from']) ? $_GET['log_from'] : mktime(0, 0, 0, 1, 1, $now['year']));
$from->setDate(new ilDateTime($fromdate, IL_CAL_UNIX));
$form->addItem($from);
// until
$until = new ilDateTimeInputGUI($this->lng->txt('cal_until'), "log_until");
$until->setShowTime(true);
$untildate = ($p_until) ? $p_until : (($_GET['log_until']) ? $_GET['log_until'] : time());
$until->setDate(new ilDateTime($untildate, IL_CAL_UNIX));
$form->addItem($until);
// tests
$fortest = new ilSelectInputGUI($this->lng->txt('assessment_log_for_test'), "sel_test");
$sorted_options = array();
foreach($available_tests as $key => $value)
{
$sorted_options[] = array(
'title' => ilUtil::prepareFormOutput($value) . " [" . $this->object->getNrOfLogEntries($key) . " " . $this->lng->txt("assessment_log_log_entries") . "]",
'key' => $key
);
}
$sorted_options = ilUtil::sortArray($sorted_options, 'title','asc');
$options = array();
foreach($sorted_options as $option)
{
$options[$option['key']] = $option['title'];
}
$fortest->setOptions($options);
$p_test = ($p_test) ? $p_test : $_GET['sel_test'];
if ($p_test) $fortest->setValue($p_test);
$form->addItem($fortest);
$this->ctrl->setParameter($this, 'sel_test', $p_test);
$this->ctrl->setParameter($this, 'log_until', $untildate);
$this->ctrl->setParameter($this, 'log_from', $fromdate);
$form->addCommandButton("showLog", $this->lng->txt("show"));
$form->addCommandButton("exportLog", $this->lng->txt("export"));
$template->setVariable("FORM", $form->getHTML());
if ($p_test)
{
include_once "./Modules/Test/classes/tables/class.ilAssessmentFolderLogTableGUI.php";
$table_gui = new ilAssessmentFolderLogTableGUI($this, 'logs');
$log_output =& $this->object->getLog($fromdate, $untildate, $p_test);
$table_gui->setData($log_output);
$template->setVariable('LOG', $table_gui->getHTML());
}
$this->tpl->setVariable("ADM_CONTENT", $template->get());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjAssessmentFolderGUI::saveObject ( )

save object public

Reimplemented from ilObjectGUI.

Definition at line 100 of file class.ilObjAssessmentFolderGUI.php.

References ilUtil\sendSuccess().

{
global $rbacadmin;
// create and insert forum in objecttree
$newObj = parent::saveObject();
// put here object specific stuff
// always send a message
ilUtil::sendSuccess($this->lng->txt("object_added"),true);
$this->ctrl->redirect($this);
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::saveSettingsObject ( )

Save Assessment settings.

Definition at line 254 of file class.ilObjAssessmentFolderGUI.php.

References $_POST, $row, ilObjQuestionPool\_getQuestionTypes(), ilObjAssessmentFolder\ASS_PROC_LOCK_MODE_NONE, ilObjAssessmentFolder\getValidAssessmentProcessLockModes(), ilUtil\sendSuccess(), settingsObject(), and ilUtil\stripSlashes().

{
global $ilAccess;
if (!$ilAccess->checkAccess("write", "", $this->object->getRefId())) $this->ctrl->redirect($this,'settings');
$form = $this->buildSettingsForm();
if(!$form->checkInput())
{
$form->setValuesByPost();
return $this->settingsObject($form);
}
$this->object->_setManualScoring($_POST["chb_manual_scoring"]);
include_once "./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php";
$questiontypes =& ilObjQuestionPool::_getQuestionTypes(TRUE);
$forbidden_types = array();
foreach ($questiontypes as $name => $row)
{
if (!in_array($row["question_type_id"], $_POST["chb_allowed_questiontypes"]))
{
array_push($forbidden_types, $row["question_type_id"]);
}
}
$this->object->_setForbiddenQuestionTypes($forbidden_types);
$this->object->setScoringAdjustmentEnabled($_POST['chb_scoring_adjust']);
$scoring_types = array();
foreach ($questiontypes as $name => $row)
{
if (in_array($row["question_type_id"], (array)$_POST["chb_scoring_adjustment"]))
{
array_push($scoring_types, $row["question_type_id"]);
}
}
$this->object->setScoringAdjustableQuestions($scoring_types);
if( !$_POST['ass_process_lock'] )
{
$this->object->setAssessmentProcessLockMode(ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_NONE);
}
elseif( in_array($_POST['ass_process_lock_mode'], ilObjAssessmentFolder::getValidAssessmentProcessLockModes()) )
{
$this->object->setAssessmentProcessLockMode($_POST['ass_process_lock_mode']);
}
$assessmentSetting = new ilSetting('assessment');
$assessmentSetting->set('use_javascript', '1');
if(strlen($_POST['imap_line_color']) == 6)
{
$assessmentSetting->set('imap_line_color', ilUtil::stripSlashes($_POST['imap_line_color']));
}
$assessmentSetting->set('user_criteria', ilUtil::stripSlashes($_POST['user_criteria']));
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
$this->ctrl->redirect($this,'settings');
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::settingsObject ( ilPropertyFormGUI  $form = null)

display assessment folder settings form

Definition at line 119 of file class.ilObjAssessmentFolderGUI.php.

Referenced by saveSettingsObject().

{
global $ilTabs;
$ilTabs->setTabActive('settings');
if($form === null)
{
$form = $this->buildSettingsForm();
}
$this->tpl->setVariable("ADM_CONTENT", $form->getHTML());
}

+ Here is the caller graph for this function:

ilObjAssessmentFolderGUI::showLogObject ( )

Called when the a log should be shown.

Definition at line 315 of file class.ilObjAssessmentFolderGUI.php.

References $_POST, $test, and logsObject().

{
$from = mktime($_POST['log_from']['time']['h'], $_POST['log_from']['time']['m'], 0, $_POST['log_from']['date']['m'], $_POST['log_from']['date']['d'], $_POST['log_from']['date']['y']);
$until = mktime($_POST['log_until']['time']['h'], $_POST['log_until']['time']['m'], 0, $_POST['log_until']['date']['m'], $_POST['log_until']['date']['d'], $_POST['log_until']['date']['y']);
$test = $_POST['sel_test'];
$this->logsObject($from, $until, $test);
}

+ Here is the call graph for this function:

ilObjAssessmentFolderGUI::showLogSettingsObject ( ilPropertyFormGUI  $form = null)
protected
Parameters
ilPropertyFormGUI$form

Definition at line 583 of file class.ilObjAssessmentFolderGUI.php.

{
$this->tabs_gui->activateTab('logs');
if(!($form instanceof ilPropertyFormGUI))
{
$form = $this->getLogSettingsForm();
$form->setValuesByArray(array(
'chb_assessment_logging' => $this->object->_enabledAssessmentLogging(),
'reporting_language' => $this->object->_getLogLanguage()
));
}
$this->tpl->setContent($form->getHTML());
}

Field Documentation

ilObjAssessmentFolderGUI::$conditions

Definition at line 21 of file class.ilObjAssessmentFolderGUI.php.


The documentation for this class was generated from the following file: