25 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
52 $this->lng = $DIC->language();
53 $this->
user = $DIC->user();
54 $this->rbacsystem = $DIC->rbac()->system();
55 parent::__construct();
56 $this->info_screen_enabled =
true;
64 $this->static_link_enabled =
true;
65 $this->delete_enabled =
true;
66 $this->cut_enabled =
true;
67 $this->copy_enabled =
true;
68 $this->subscribe_enabled =
true;
69 $this->link_enabled =
true;
71 $this->gui_class_name =
"ilobjsurveygui";
74 include_once(
'./Modules/Survey/classes/class.ilObjSurveyAccess.php');
87 public function initItem($a_ref_id, $a_obj_id, $a_title =
"", $a_description =
"")
89 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
106 include_once
"./Services/UICore/classes/class.ilFrameTargetInfo.php";
134 if (!
$rbacsystem->checkAccess(
"visible,read", $this->ref_id)) {
138 include_once(
"./Modules/Survey/classes/class.ilObjSurveyAccess.php");
140 $props[] =
array(
"alert" =>
true,
"property" =>
$lng->txt(
"status"),
141 "value" =>
$lng->txt(
"offline"));
146 $props[] =
array(
"alert" =>
true,
147 "property" =>
$lng->txt(
"svy_participation"),
148 "value" =>
$lng->txt(
"svy_warning_survey_not_complete"),
149 'propertyNameVisible' =>
false);
151 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
156 if ($finished === 1) {
157 $stat = $this->lng->txt(
"svy_finished");
160 elseif ($finished === 0) {
161 $stat = $this->lng->txt(
"svy_not_finished");
165 $stat = $this->lng->txt(
"svy_not_started");
167 $props[] =
array(
"alert" =>
false,
"property" =>
$lng->txt(
"participation"),
168 "value" => $stat,
'propertyNameVisible' =>
false);
170 $lng->loadLanguageModule(
"survey");
171 $props[] =
array(
"alert" =>
false,
"property" =>
"",
172 "value" =>
$lng->txt(
"survey_360_list_title"),
'propertyNameVisible' =>
false);
195 $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