26 $this->lng = $DIC->language();
27 $this->lng->loadLanguageModule(
"survey");
28 $this->
user = $DIC->user();
29 $this->rbacsystem = $DIC->rbac()->system();
31 $this->info_screen_enabled =
true;
39 $this->static_link_enabled =
true;
40 $this->delete_enabled =
true;
41 $this->cut_enabled =
true;
42 $this->copy_enabled =
true;
43 $this->subscribe_enabled =
true;
44 $this->link_enabled =
true;
46 $this->gui_class_name =
"ilobjsurveygui";
94 if (!
$rbacsystem->checkAccess(
"visible,read", $this->ref_id)) {
98 $props = parent::getProperties();
104 $props[] = array(
"alert" =>
true,
105 "property" =>
$lng->txt(
"svy_participation"),
106 "value" =>
$lng->txt(
"svy_warning_survey_not_complete"),
107 'propertyNameVisible' =>
false);
109 if (
$ilUser->getId() != ANONYMOUS_USER_ID) {
112 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"type"),
113 "value" =>
$lng->txt(
"survey_360_mode"),
'propertyNameVisible' =>
true);
115 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"type"),
116 "value" =>
$lng->txt(
"survey_360_self_evaluation"),
'propertyNameVisible' =>
true);
121 if ($finished === 1) {
122 $stat = $this->lng->txt(
"svy_finished");
125 elseif ($finished === 0) {
126 $stat = $this->lng->txt(
"svy_not_finished");
130 $stat = $this->lng->txt(
"svy_not_started");
132 $props[] = array(
"alert" =>
false,
"property" =>
$lng->txt(
"svy_participation"),
133 "value" => $stat,
'propertyNameVisible' =>
true);
156 $cmd_link =
"ilias.php?baseClass=ilObjSurveyGUI&ref_id=" . $this->ref_id .
static _getCommands()
get commands
getCommandLink($a_cmd)
Get command link url.
getCommandFrame($a_cmd)
Get command target frame.
getProperties()
Get item properties.
static lookupOfflineStatus($a_obj_id)
Lookup offline status using objectDataCache.
static _lookupMode($a_obj_id)
Get survey mode.
static _lookupFinished($a_obj_id, $a_user_id="")
get finished status
__construct(Container $dic, ilPlugin $plugin)
static _lookupCreationComplete($a_obj_id)
checks wether all necessary parts of the survey are given
Class ilObjSurveyListGUI.