25 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
45 parent::__construct();
46 $this->info_screen_enabled =
true;
54 $this->static_link_enabled =
true;
55 $this->delete_enabled =
true;
56 $this->cut_enabled =
true;
57 $this->copy_enabled =
true;
58 $this->subscribe_enabled =
true;
59 $this->link_enabled =
true;
61 $this->gui_class_name =
"ilobjsurveygui";
64 include_once(
'./Modules/Survey/classes/class.ilObjSurveyAccess.php');
77 function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
79 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
97 include_once
"./Services/UICore/classes/class.ilFrameTargetInfo.php";
123 if (!$rbacsystem->checkAccess(
"visible,read", $this->ref_id))
128 include_once(
"./Modules/Survey/classes/class.ilObjSurveyAccess.php");
131 $props[] =
array(
"alert" =>
true,
"property" => $lng->txt(
"status"),
132 "value" => $lng->txt(
"offline"));
140 $props[] =
array(
"alert" =>
true,
141 "property" => $lng->txt(
"svy_participation"),
142 "value" => $lng->txt(
"svy_warning_survey_not_complete"),
143 'propertyNameVisible' =>
false);
147 if ($ilUser->getId() != ANONYMOUS_USER_ID)
156 $stat = $this->lng->txt(
"svy_finished");
159 else if ($finished === 0)
161 $stat = $this->lng->txt(
"svy_not_finished");
166 $stat = $this->lng->txt(
"svy_not_started");
168 $props[] =
array(
"alert" =>
false,
"property" => $lng->txt(
"participation"),
169 "value" => $stat,
'propertyNameVisible' =>
false);
173 $lng->loadLanguageModule(
"survey");
174 $props[] =
array(
"alert" =>
false,
"property" =>
"",
175 "value" => $lng->txt(
"survey_360_list_title"),
'propertyNameVisible' =>
false);
199 $cmd_link =
"ilias.php?baseClass=ilObjSurveyGUI&ref_id=" . $this->ref_id .
static _getCommands()
get commands
getCommandLink($a_cmd)
Get command link url.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandFrame($a_cmd)
Get command target frame.
getProperties()
Get item properties.
Create styles array
The data for the language used.
static _lookupFinished($a_obj_id, $a_user_id="")
get finished status
static _lookup360Mode($a_obj_id)
static _lookupCreationComplete($a_obj_id)
checks wether all necessary parts of the survey are given
Class ilObjSurveyListGUI.
static _lookupOnline($a_obj_id)
get status