ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilObjPollGUI Class Reference

Class ilObjPollGUI. More...

+ Inheritance diagram for ilObjPollGUI:
+ Collaboration diagram for ilObjPollGUI:

Public Member Functions

 __construct (int $a_id=0, int $a_id_type=self::REPOSITORY_NODE_ID, int $a_parent_node_id=0)
 
 getType ()
 
 executeCommand ()
 
 render (?ilPropertyFormGUI $a_form=null)
 
 saveQuestion ()
 
 showParticipants ()
 
 showParticipantVotes ()
 
 confirmDeleteAllVotes ()
 
 deleteAllVotes ()
 
 vote ()
 
 subscribe ()
 
 unsubscribe ()
 
- Public Member Functions inherited from ilObject2GUI
 __construct (int $id=0, int $id_type=self::REPOSITORY_NODE_ID, int $parent_node_id=0)
 
 executeCommand ()
 execute command More...
 
 getIdType ()
 
 delete ()
 Display delete confirmation form (repository/workspace switch) More...
 
 confirmedDelete ()
 Delete objects (repository/workspace switch) More...
 
 getHTML ()
 
 withReferences ()
 Final/Private declaration of unchanged parent methods. More...
 
 setCreationMode (bool $mode=true)
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 isVisible (int $ref_id, string $type)
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 view ()
 view object content (repository/workspace switch) More...
 
 getType ()
 Functions that must be overwritten. More...
 
 create ()
 CRUD. More...
 
 save ()
 
 edit ()
 
 update ()
 
 cancel ()
 
 importFile ()
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static _goto (string $a_target)
 
- Static Public Member Functions inherited from ilObject2GUI
static handleAfterSaveCallback (ilObject $obj, ?int $callback_ref_id)
 After creation callback. More...
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Protected Member Functions

 afterSave (ilObject $new_object)
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 
 getEditFormCustomValues (array &$a_values)
 
 validateCustom (ilPropertyFormGUI $form)
 
 updateCustom (ilPropertyFormGUI $form)
 
 setTabs ()
 
 initQuestionForm (bool $a_read_only=false)
 
 setParticipantsSubTabs (string $a_active)
 
 sendNotifications ()
 
 addLocatorItems ()
 
- Protected Member Functions inherited from ilObject2GUI
 afterConstructor ()
 Do anything that should be done after constructor in here. More...
 
 assignObject ()
 create object instance as internal property (repository/workspace switch) More...
 
 getAccessHandler ()
 
 setLocator ()
 set Locator More...
 
 deleteConfirmedObjects ()
 Delete objects (workspace specific) This should probably be moved elsewhere as done with RepUtil. More...
 
 setTitleAndDescription ()
 
 omitLocator (bool $omit=true)
 
 getTargetFrame (string $cmd, string $target_frame="")
 
 setTargetFrame (string $cmd, string $target_frame)
 
 getCenterColumnHTML ()
 
 getRightColumnHTML ()
 
 checkPermission (string $perm, string $cmd="", string $type="", int $ref_id=null)
 
 showPossibleSubObjects ()
 
 redirectToRefId (int $ref_id, string $cmd="")
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 
 setTabs ()
 create tabs (repository/workspace switch) More...
 
 getReturnLocation (string $cmd, string $location="")
 Deprecated functions. More...
 
 setReturnLocation (string $cmd, string $location)
 
 showActions ()
 
 getTabs ()
 
 addLocatorItems ()
 Functions to be overwritten. More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $node_id=null)
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 redrawHeaderAction ()
 Updating icons after ajax call. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 addAdoptContentLinkToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $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 ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 

Protected Attributes

ilHelpGUI $help
 
ilTabsGUI $tabs
 
ilNavigationHistory $nav_history
 
Factory $ui_factory
 
Renderer $ui_renderer
 
- Protected Attributes inherited from ilObject2GUI
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ilFavouritesManager $favourites
 
ilErrorHandling $error
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilToolbarGUI $toolbar
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
int $request_ref_id
 
int $id_type
 
int $parent_id
 
string $type
 
string $html
 
int $object_id
 
int $node_id = null
 
array $creation_forms = []
 
 $access_handler
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Data Fields inherited from ilObject2GUI
const OBJECT_ID = 0
 
const REPOSITORY_NODE_ID = 1
 
const WORKSPACE_NODE_ID = 2
 
const REPOSITORY_OBJECT_ID = 3
 
const WORKSPACE_OBJECT_ID = 4
 
const PORTFOLIO_OBJECT_ID = 5
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjPollGUI::__construct ( int  $a_id = 0,
int  $a_id_type = self::REPOSITORY_NODE_ID,
int  $a_parent_node_id = 0 
)

Definition at line 40 of file class.ilObjPollGUI.php.

References $DIC, ILIAS\MetaData\Repository\Validation\Data\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\Repository\locator(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

41  {
42  global $DIC;
43 
44  $this->lng = $DIC->language();
45  $this->ctrl = $DIC->ctrl();
46  $this->help = $DIC["ilHelp"];
47  $this->tpl = $DIC["tpl"];
48  $this->tabs = $DIC->tabs();
49  $this->nav_history = $DIC["ilNavigationHistory"];
50  $this->toolbar = $DIC->toolbar();
51  $this->user = $DIC->user();
52  $this->tree = $DIC->repositoryTree();
53  $this->locator = $DIC["ilLocator"];
54  $this->ui_factory = $DIC->ui()->factory();
55  $this->ui_renderer = $DIC->ui()->renderer();
56 
57  parent::__construct($a_id, $a_id_type, $a_parent_node_id);
58 
59  $this->lng->loadLanguageModule("poll");
60  }
global $DIC
Definition: feed.php:28
__construct(VocabulariesInterface $vocabularies)
+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjPollGUI::_goto ( string  $a_target)
static

Definition at line 634 of file class.ilObjPollGUI.php.

References $DIC, ilObjectGUI\$id, ilObjectGUI\$ref_id, ilObjectGUI\$tree, ilObject\_lookupObjId(), ilTree\getParentId(), ILIAS\Repository\int(), and ilUtil\redirect().

634  : void
635  {
636  global $DIC;
637 
638  $tree = $DIC->repositoryTree();
639  $ilAccess = $DIC->access();
640  $ilCtrl = $DIC->ctrl();
641 
642  $id = explode("_", $a_target);
643  $ref_id = (int) ($id[0] ?? 0);
644 
645  // #13728 - used in notification mostly
646  if ($ilAccess->checkAccess("write", "", $ref_id)) {
647  $ilCtrl->setParameterByClass(self::class, "ref_id", $ref_id);
648  $ilCtrl->redirectByClass([ilRepositoryGUI::class, self::class,], "showParticipants");
649  } else {
650  // is sideblock: so show parent instead
651  $container_id = $tree->getParentId($ref_id);
652 
653  // #11810
654  ilUtil::redirect(ilLink::_getLink($container_id) .
655  "#poll" . ilObject::_lookupObjId($ref_id));
656  }
657  }
static _lookupObjId(int $ref_id)
global $DIC
Definition: feed.php:28
getParentId(int $a_node_id)
get parent id of given node
static redirect(string $a_script)
+ Here is the call graph for this function:

◆ addLocatorItems()

ilObjPollGUI::addLocatorItems ( )
protected

Definition at line 627 of file class.ilObjPollGUI.php.

References ilObject2GUI\$node_id, ILIAS\Repository\ctrl(), ILIAS\Repository\locator(), and ILIAS\Repository\object().

627  : void
628  {
629  if (is_object($this->object)) {
630  $this->locator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ""), "", $this->node_id);
631  }
632  }
+ Here is the call graph for this function:

◆ afterSave()

ilObjPollGUI::afterSave ( ilObject  $new_object)
protected

Definition at line 67 of file class.ilObjPollGUI.php.

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

67  : void
68  {
69  $this->tpl->setOnScreenMessage('success', $this->lng->txt("object_added"), true);
70  $this->ctrl->redirect($this, "render");
71  }
+ Here is the call graph for this function:

◆ confirmDeleteAllVotes()

ilObjPollGUI::confirmDeleteAllVotes ( )

Definition at line 521 of file class.ilObjPollGUI.php.

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().

521  : void
522  {
523  if (!$this->checkPermissionBool("write")) {
524  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_permission"));
525  return;
526  }
527 
528  $this->tabs->activateTab("participants");
529 
530  $cgui = new ilConfirmationGUI();
531  $cgui->setHeaderText($this->lng->txt("poll_delete_votes_sure"));
532 
533  $cgui->setFormAction($this->ctrl->getFormAction($this));
534  $cgui->setCancel($this->lng->txt("cancel"), "showParticipants");
535  $cgui->setConfirm($this->lng->txt("confirm"), "deleteAllVotes");
536 
537  $this->tpl->setContent($cgui->getHTML());
538  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ deleteAllVotes()

ilObjPollGUI::deleteAllVotes ( )

Definition at line 540 of file class.ilObjPollGUI.php.

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

540  : void
541  {
542  if (!$this->checkPermissionBool("write")) {
543  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_permission"));
544  return;
545  }
546 
547  $this->object->deleteAllVotes();
548 
549  $this->ctrl->redirect($this, "showParticipants");
550  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ executeCommand()

ilObjPollGUI::executeCommand ( )

Definition at line 259 of file class.ilObjPollGUI.php.

References ILIAS\Repository\ctrl(), ilObject2GUI\getAccessHandler(), ilObject2GUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ilObject2GUI\prepareOutput(), and ILIAS\Repository\tabs().

259  : void
260  {
261  $next_class = $this->ctrl->getNextClass($this);
262  $cmd = $this->ctrl->getCmd();
263 
264  $this->tpl->loadStandardTemplate();
265 
266  // add entry to navigation history
267  if (!$this->getCreationMode() &&
268  $this->getAccessHandler()->checkAccess("read", "", $this->node_id)) {
269  $link = $this->ctrl->getLinkTargetByClass("ilrepositorygui", "frameset");
270  $this->nav_history->addItem($this->node_id, $link, "poll");
271  }
272 
273  switch ($next_class) {
274  case "ilcommonactiondispatchergui":
276  $this->ctrl->forwardCommand($gui);
277  break;
278 
279  case "ilpermissiongui":
280  $this->prepareOutput();
281  $this->tabs->activateTab("id_permissions");
282  $perm_gui = new ilPermissionGUI($this);
283  $this->ctrl->forwardCommand($perm_gui);
284  break;
285 
286  case "ilobjectcopygui":
287  $cp = new ilObjectCopyGUI($this);
288  $cp->setType("poll");
289  $this->ctrl->forwardCommand($cp);
290  break;
291 
292  case 'ilexportgui':
293  $this->prepareOutput();
294  $this->tabs->activateTab("export");
295  $exp_gui = new ilExportGUI($this);
296  $exp_gui->addFormat("xml");
297  $this->ctrl->forwardCommand($exp_gui);
298  break;
299 
300  default:
301  parent::executeCommand();
302  }
303  }
GUI class for the workflow of copying objects.
prepareOutput(bool $show_sub_objects=true)
Export User Interface Class.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
+ Here is the call graph for this function:

◆ getEditFormCustomValues()

ilObjPollGUI::getEditFormCustomValues ( array &  $a_values)
protected

Definition at line 153 of file class.ilObjPollGUI.php.

References IL_CAL_UNIX, and ILIAS\Repository\object().

153  : void
154  {
155  $a_values["online"] = !$this->object->getOfflineStatus();
156  $a_values["results"] = $this->object->getViewResults();
157  $a_values["access_period"]["start"] = $this->object->getAccessBegin()
158  ? new ilDateTime($this->object->getAccessBegin(), IL_CAL_UNIX)
159  : null;
160  $a_values["access_period"]["end"] = $this->object->getAccessEnd()
161  ? new ilDateTime($this->object->getAccessEnd(), IL_CAL_UNIX)
162  : null;
163  $a_values["voting_period"]["start"] = $this->object->getVotingPeriodBegin()
164  ? new ilDateTime($this->object->getVotingPeriodBegin(), IL_CAL_UNIX)
165  : null;
166  $a_values["voting_period"]["end"] = $this->object->getVotingPeriodEnd()
167  ? new ilDateTime($this->object->getVotingPeriodEnd(), IL_CAL_UNIX)
168  : null;
169  $a_values["sort"] = (string) (int) $this->object->getSortResultByVotes();
170  $a_values["comment"] = $this->object->getShowComments();
171  $a_values["show_results_as"] = $this->object->getShowResultsAs();
172  }
const IL_CAL_UNIX
+ Here is the call graph for this function:

◆ getType()

ilObjPollGUI::getType ( )

Definition at line 62 of file class.ilObjPollGUI.php.

62  : string
63  {
64  return "poll";
65  }

◆ initEditCustomForm()

ilObjPollGUI::initEditCustomForm ( ilPropertyFormGUI  $a_form)
protected

Definition at line 73 of file class.ilObjPollGUI.php.

References $comment, $results, ilObject\_getAllReferences(), ilPropertyFormGUI\addItem(), ilRadioGroupInputGUI\addOption(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilObjPoll\SHOW_RESULTS_AS_BARCHART, ilObjPoll\SHOW_RESULTS_AS_PIECHART, ilObjPoll\VIEW_RESULTS_AFTER_PERIOD, ilObjPoll\VIEW_RESULTS_AFTER_VOTE, ilObjPoll\VIEW_RESULTS_ALWAYS, and ilObjPoll\VIEW_RESULTS_NEVER.

73  : void
74  {
75  // activation
76  $this->lng->loadLanguageModule('rep');
77 
78  $section = new ilFormSectionHeaderGUI();
79  $section->setTitle($this->lng->txt('rep_activation_availability'));
80  $a_form->addItem($section);
81 
82  // additional info only with multiple references
83  $act_obj_info = $act_ref_info = "";
84  if (count(ilObject::_getAllReferences($this->object->getId())) > 1) {
85  $act_obj_info = ' ' . $this->lng->txt('rep_activation_online_object_info');
86  $act_ref_info = $this->lng->txt('rep_activation_access_ref_info');
87  }
88 
89  $online = new ilCheckboxInputGUI($this->lng->txt('rep_activation_online'), 'online');
90  $online->setInfo($this->lng->txt('poll_activation_online_info') . $act_obj_info);
91  $a_form->addItem($online);
92 
93  $dur = new ilDateDurationInputGUI($this->lng->txt('rep_time_based_availability'), "access_period");
94  $dur->setShowTime(true);
95  $a_form->addItem($dur);
96 
97 
98  // period/results
99 
100  $section = new ilFormSectionHeaderGUI();
101  $section->setTitle($this->lng->txt('poll_voting_period_and_results'));
102  $a_form->addItem($section);
103 
104  $vdur = new ilDateDurationInputGUI($this->lng->txt('poll_voting_period_limited'), "voting_period");
105  $vdur->setShowTime(true);
106  $a_form->addItem($vdur);
107 
108  $results = new ilRadioGroupInputGUI($this->lng->txt("poll_view_results"), "results");
109  $results->addOption(new ilRadioOption(
110  $this->lng->txt("poll_view_results_always"),
112  ));
113  $results->addOption(new ilRadioOption(
114  $this->lng->txt("poll_view_results_never"),
116  ));
117  $results->addOption(new ilRadioOption(
118  $this->lng->txt("poll_view_results_after_vote"),
120  ));
121  $results->addOption(new ilRadioOption(
122  $this->lng->txt("poll_view_results_after_period"),
124  ));
125  $a_form->addItem($results);
126 
127  $show_result_as = new ilRadioGroupInputGUI($this->lng->txt("poll_show_results_as"), "show_results_as");
128  $result_bar = new ilRadioOption(
129  $this->lng->txt("poll_barchart"),
131  );
132  $show_result_as->addOption($result_bar);
133  $show_result_as->addOption(new ilRadioOption(
134  $this->lng->txt("poll_piechart"),
136  ));
137  $a_form->addItem($show_result_as);
138 
139  $sort = new ilRadioGroupInputGUI($this->lng->txt("poll_result_sorting"), "sort");
140  $sort->addOption(new ilRadioOption($this->lng->txt("poll_result_sorting_answers"), "0"));
141  $sort->addOption(new ilRadioOption($this->lng->txt("poll_result_sorting_votes"), "1"));
142  $a_form->addItem($sort);
143 
144  $section = new ilFormSectionHeaderGUI();
145  $section->setTitle($this->lng->txt('poll_comments'));
146  $a_form->addItem($section);
147 
148  $comment = new ilCheckboxInputGUI($this->lng->txt('poll_comments'), 'comment');
149  //$comment->setInfo($this->lng->txt('poll_comments_info'));
150  $a_form->addItem($comment);
151  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const VIEW_RESULTS_AFTER_PERIOD
const VIEW_RESULTS_AFTER_VOTE
const VIEW_RESULTS_NEVER
const VIEW_RESULTS_ALWAYS
static _getAllReferences(int $id)
get all reference ids for object ID
const SHOW_RESULTS_AS_PIECHART
addOption(ilRadioOption $a_option)
const SHOW_RESULTS_AS_BARCHART
This class represents a property in a property form.
$results
$comment
Definition: buildRTE.php:72
+ Here is the call graph for this function:

◆ initQuestionForm()

ilObjPollGUI::initQuestionForm ( bool  $a_read_only = false)
protected

Definition at line 336 of file class.ilObjPollGUI.php.

References ILIAS\Repository\ctrl(), ilObjPoll\getImageSize(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ilFormPropertyGUI\setDisabled(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), and ilWACSignedPath\signFile().

Referenced by render(), and saveQuestion().

337  {
338  $form = new ilPropertyFormGUI();
339  $form->setFormAction($this->ctrl->getFormAction($this, "saveQuestion"));
340  $form->setTitle($this->lng->txt("obj_poll"));
341 
342  $question = new ilTextAreaInputGUI($this->lng->txt("poll_question"), "question");
343  $question->setRequired(true);
344  $question->setCols(40);
345  $question->setRows(2);
346  $question->setValue($this->object->getQuestion());
347  $question->setDisabled($a_read_only);
348  $form->addItem($question);
349 
350  $dimensions = " (" . ilObjPoll::getImageSize() . "px)";
351  $img = new ilImageFileInputGUI($this->lng->txt("poll_image") . $dimensions, "image");
352  $img->setDisabled($a_read_only);
353  $form->addItem($img);
354 
355  // show existing file
356  $file = $this->object->getImageFullPath(true);
357  if ($file) {
358  $img->setImage(ilWACSignedPath::signFile($file));
359  }
360 
361  $anonymous = new ilRadioGroupInputGUI($this->lng->txt("poll_mode"), "mode");
362  $option = new ilRadioOption($this->lng->txt("poll_mode_anonymous"), "0");
363  $option->setInfo($this->lng->txt("poll_mode_anonymous_info"));
364  $anonymous->addOption($option);
365  $option = new ilRadioOption($this->lng->txt("poll_mode_personal"), "1");
366  $option->setInfo($this->lng->txt("poll_mode_personal_info"));
367  $anonymous->addOption($option);
368  $anonymous->setValue($this->object->getNonAnonymous() ? "1" : "0");
369  $anonymous->setDisabled($a_read_only);
370  $form->addItem($anonymous);
371 
372  $answers = new ilTextInputGUI($this->lng->txt("poll_answers"), "answers");
373  $answers->setRequired(true);
374  $answers->setMulti(true, true);
375  $answers->setDisabled($a_read_only);
376  $form->addItem($answers);
377 
378  $multi_answers = array();
379  foreach ($this->object->getAnswers() as $idx => $item) {
380  $answer = (string) ($item['answer'] ?? '');
381  if (!$idx) {
382  $answers->setValue($answer);
383  }
384  $multi_answers[] = $answer;
385  }
386  $answers->setMultiValues($multi_answers);
387 
388  $answer_count = count($this->object->getAnswers());
389  $limit = new ilCheckboxInputGUI($this->lng->txt("poll_limit_number_of_answers"), 'limit');
390  $limit->setChecked($this->object->getMaxNumberOfAnswers() !== $answer_count);
391  $limit->setDisabled($a_read_only);
392  $nanswers = new ilNumberInputGUI($this->lng->txt("poll_max_number_of_answers"), "nanswers");
393  $nanswers->setRequired(true);
394  $nanswers->setMinValue(1);
395  $nanswers->setSize(3);
396  $max_answers = 1;
397  if ($this->object->getMaxNumberOfAnswers() < $answer_count) {
398  $max_answers = $this->object->getMaxNumberOfAnswers();
399  }
400  $nanswers->setValue((string) $max_answers);
401  $nanswers->setDisabled($a_read_only);
402  $limit->addSubItem($nanswers);
403  $form->addItem($limit);
404 
405  if (!$a_read_only) {
406  $form->addCommandButton("saveQuestion", $this->lng->txt("save"));
407  }
408 
409  return $form;
410  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a property in a property form.
static getImageSize()
setRequired(bool $a_required)
This class represents an image file property in a property form.
This class represents a text area property in a property form.
static signFile(string $path_to_file)
setDisabled(bool $a_disabled)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ render()

ilObjPollGUI::render ( ?ilPropertyFormGUI  $a_form = null)

Definition at line 305 of file class.ilObjPollGUI.php.

References $message, $url, ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), initQuestionForm(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\tabs().

Referenced by saveQuestion().

305  : void
306  {
307  if (!$this->checkPermissionBool("write")) {
308  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_permission"));
309  return;
310  }
311 
312  $this->tabs->activateTab("question");
313 
314  $message = "";
315  if (!$a_form) {
316  if ($this->object->countVotes()) {
317  $url = $this->ctrl->getLinkTarget($this, "showParticipants");
318 
319  $mbox = $this->ui_factory->messageBox()->info($this->lng->txt("poll_votes_no_edit"))
320  ->withLinks([$this->ui_factory->link()->standard(
321  $this->lng->txt("poll_result"),
322  $url
323  )]);
324 
325  $message = $this->ui_renderer->render($mbox);
326  }
327 
328  $a_form = $this->initQuestionForm((bool) $this->object->countVotes());
329  }
330 
331  $this->tpl->setPermanentLink('poll', $this->node_id);
332 
333  $this->tpl->setContent($message . $a_form->getHTML());
334  }
initQuestionForm(bool $a_read_only=false)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
$url
Definition: ltiregstart.php:35
$message
Definition: xapiexit.php:32
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveQuestion()

ilObjPollGUI::saveQuestion ( )

Definition at line 413 of file class.ilObjPollGUI.php.

References $res, ILIAS\Repository\ctrl(), initQuestionForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and render().

413  : void
414  {
415  $form = $this->initQuestionForm();
416  if ($form->checkInput()) {
417  $prelim_nr_of_answers = count((array) $form->getInput("answers"));
418 
419  if (
420  $form->getInput("limit") &&
421  (int) $form->getInput("nanswers") >= $prelim_nr_of_answers
422  ) {
423  $form->getItemByPostVar('nanswers')->setAlert(
424  $this->lng->txt('poll_limit_not_below_answer_count')
425  );
426  $this->tpl->setOnScreenMessage('failure', $this->lng->txt('form_input_not_valid'));
427  $form->setValuesByPost();
428  $this->render($form);
429  return;
430  }
431 
432  $nr_of_anwers = $this->object->saveAnswers((array) $form->getInput("answers"));
433 
434  if ($form->getInput("limit")) {
435  // #15073
436  $this->object->setMaxNumberOfAnswers(min((int) $form->getInput("nanswers"), $nr_of_anwers));
437  } else {
438  $this->object->setMaxNumberOfAnswers($nr_of_anwers);
439  }
440 
441  $this->object->setQuestion((string) $form->getInput("question"));
442  $this->object->setNonAnonymous((bool) $form->getInput("mode"));
443 
444  $image = $form->getItemByPostVar("image");
445  $res = $form->getFileUpload("image");
446  if (!empty($res)) {
447  $this->object->uploadImage($res);
448  } elseif ($image->getDeletionFlag()) {
449  $this->object->deleteImage();
450  }
451 
452  if ($this->object->update()) {
453  $this->tpl->setOnScreenMessage('success', $this->lng->txt("settings_saved"), true);
454  $this->ctrl->redirect($this, "render");
455  }
456  }
457 
458  $form->setValuesByPost();
459  $this->render($form);
460  }
$res
Definition: ltiservices.php:69
initQuestionForm(bool $a_read_only=false)
render(?ilPropertyFormGUI $a_form=null)
+ Here is the call graph for this function:

◆ sendNotifications()

ilObjPollGUI::sendNotifications ( )
protected

Definition at line 600 of file class.ilObjPollGUI.php.

References ilNotification\getNotificationsForObject(), ILIAS\Repository\object(), ilNotification\TYPE_POLL, and ilNotification\updateNotificationTime().

Referenced by vote().

600  : void
601  {
602  // recipients
605  $this->object->getId(),
606  null,
607  true
608  );
609  if (!count($users)) {
610  return;
611  }
612 
613  $ntf = new ilSystemNotification();
614  $ntf->setLangModules(array("poll"));
615  $ntf->setRefId($this->ref_id);
616 
617  $ntf->setSubjectLangId('poll_vote_notification_subject');
618  $ntf->setIntroductionLangId('poll_vote_notification_body');
619  $ntf->setGotoLangId('poll_vote_notification_link');
620  $ntf->setReasonLangId('poll_vote_notification_reason');
621 
622  $notified = $ntf->sendMailAndReturnRecipients($users, null, "read");
623 
625  }
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
static updateNotificationTime(int $type, int $id, array $user_ids, ?int $page_id=null, bool $activate_new_entries=true)
Update the last mail timestamp for given object and users.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setParticipantsSubTabs()

ilObjPollGUI::setParticipantsSubTabs ( string  $a_active)
protected

Definition at line 462 of file class.ilObjPollGUI.php.

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\object(), and ILIAS\Repository\tabs().

Referenced by showParticipants(), and showParticipantVotes().

462  : void
463  {
464  if (!$this->object->getNonAnonymous()) {
465  return;
466  }
467 
468  $this->tabs->addSubTab(
469  "result_answers",
470  $this->lng->txt("poll_result_answers"),
471  $this->ctrl->getLinkTarget($this, "showParticipants")
472  );
473  $this->tabs->addSubTab(
474  "result_users",
475  $this->lng->txt("poll_result_users"),
476  $this->ctrl->getLinkTarget($this, "showParticipantVotes")
477  );
478 
479  $this->tabs->activateSubTab($a_active);
480  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTabs()

ilObjPollGUI::setTabs ( )
protected

Definition at line 223 of file class.ilObjPollGUI.php.

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), and ILIAS\Repository\lng().

223  : void
224  {
225  $this->help->setScreenIdComponent("poll");
226 
227  if ($this->checkPermissionBool("write")) {
228  $this->tabs_gui->addTab(
229  "question",
230  $this->lng->txt("question"),
231  $this->ctrl->getLinkTarget($this, "")
232  );
233  }
234 
235  if ($this->checkPermissionBool("write")) {
236  $this->tabs_gui->addTab(
237  "settings",
238  $this->lng->txt("settings"),
239  $this->ctrl->getLinkTarget($this, "edit")
240  );
241 
242  $this->tabs_gui->addTab(
243  "participants",
244  $this->lng->txt("poll_result"),
245  $this->ctrl->getLinkTarget($this, "showParticipants")
246  );
247 
248  $this->tabs_gui->addTab(
249  "export",
250  $this->lng->txt("export"),
251  $this->ctrl->getLinkTargetByClass("ilexportgui", "")
252  );
253  }
254 
255  // will add permissions if needed
256  parent::setTabs();
257  }
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ showParticipants()

ilObjPollGUI::showParticipants ( )

Definition at line 482 of file class.ilObjPollGUI.php.

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), setParticipantsSubTabs(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().

482  : void
483  {
484  if (!$this->checkPermissionBool("write")) {
485  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_permission"));
486  return;
487  }
488 
489  $this->tabs->activateTab("participants");
490  $this->setParticipantsSubTabs("result_answers");
491 
492  $tbl = new ilPollAnswerTableGUI($this, "showParticipants");
493 
494  if ($tbl->getItems()) {
495  $this->toolbar->addComponent(
496  $this->ui_factory->button()->standard(
497  $this->lng->txt("poll_delete_votes"),
498  $this->ctrl->getLinkTarget($this, 'confirmDeleteAllVotes')
499  )
500  );
501  }
502 
503  $this->tpl->setContent($tbl->getHTML());
504  }
setParticipantsSubTabs(string $a_active)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
+ Here is the call graph for this function:

◆ showParticipantVotes()

ilObjPollGUI::showParticipantVotes ( )

Definition at line 506 of file class.ilObjPollGUI.php.

References ilObject2GUI\checkPermissionBool(), ILIAS\Repository\lng(), ILIAS\Repository\object(), setParticipantsSubTabs(), and ILIAS\Repository\tabs().

506  : void
507  {
508  if (!$this->checkPermissionBool("write") ||
509  !$this->object->getNonAnonymous()) {
510  $this->tpl->setOnScreenMessage('info', $this->lng->txt("no_permission"));
511  return;
512  }
513 
514  $this->tabs->activateTab("participants");
515  $this->setParticipantsSubTabs("result_users");
516 
517  $tbl = new ilPollUserTableGUI($this, "showParticipantVotes");
518  $this->tpl->setContent($tbl->getHTML());
519  }
setParticipantsSubTabs(string $a_active)
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
TableGUI class for poll users.
+ Here is the call graph for this function:

◆ subscribe()

ilObjPollGUI::subscribe ( )

Definition at line 584 of file class.ilObjPollGUI.php.

References ILIAS\Repository\lng(), ilUtil\redirect(), ilNotification\setNotification(), ilNotification\TYPE_POLL, and ILIAS\Repository\user().

584  : void
585  {
586  ilNotification::setNotification(ilNotification::TYPE_POLL, $this->user->getId(), $this->object->getId(), true);
587 
588  $this->tpl->setOnScreenMessage('success', $this->lng->txt("poll_notification_activated"), true);
589  ilUtil::redirect(ilLink::_getLink($this->tree->getParentId($this->ref_id)));
590  }
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
static redirect(string $a_script)
+ Here is the call graph for this function:

◆ unsubscribe()

ilObjPollGUI::unsubscribe ( )

Definition at line 592 of file class.ilObjPollGUI.php.

References ILIAS\Repository\lng(), ilUtil\redirect(), ilNotification\setNotification(), ilNotification\TYPE_POLL, and ILIAS\Repository\user().

592  : void
593  {
594  ilNotification::setNotification(ilNotification::TYPE_POLL, $this->user->getId(), $this->object->getId(), false);
595 
596  $this->tpl->setOnScreenMessage('success', $this->lng->txt("poll_notification_deactivated"), true);
597  ilUtil::redirect(ilLink::_getLink($this->tree->getParentId($this->ref_id)));
598  }
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
static redirect(string $a_script)
+ Here is the call graph for this function:

◆ updateCustom()

ilObjPollGUI::updateCustom ( ilPropertyFormGUI  $form)
protected

Definition at line 194 of file class.ilObjPollGUI.php.

References ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, ilObjectActivation\TIMINGS_ACTIVATION, and ilObjectActivation\TIMINGS_DEACTIVATED.

194  : void
195  {
196  $this->object->setViewResults((int) $form->getInput("results"));
197  $this->object->setOfflineStatus(!((string) $form->getInput("online") === "1"));
198  $this->object->setSortResultByVotes((bool) $form->getInput("sort"));
199  $this->object->setShowComments((bool) $form->getInput("comment"));
200  $this->object->setShowResultsAs((int) $form->getInput("show_results_as"));
201 
202  $period = $form->getItemByPostVar("access_period");
203  if ($period->getStart() && $period->getEnd()) {
204  $this->object->setAccessType(ilObjectActivation::TIMINGS_ACTIVATION);
205  $this->object->setAccessBegin($period->getStart()->get(IL_CAL_UNIX));
206  $this->object->setAccessEnd($period->getEnd()->get(IL_CAL_UNIX));
207  } else {
208  $this->object->setAccessType(ilObjectActivation::TIMINGS_DEACTIVATED);
209  }
210 
211  $period = $form->getItemByPostVar("voting_period");
212  if ($period->getStart() && $period->getEnd()) {
213  $this->object->setVotingPeriod(true);
214  $this->object->setVotingPeriodBegin($period->getStart()->get(IL_CAL_UNIX));
215  $this->object->setVotingPeriodEnd($period->getEnd()->get(IL_CAL_UNIX));
216  } else {
217  $this->object->setVotingPeriodBegin(0);
218  $this->object->setVotingPeriodEnd(0);
219  $this->object->setVotingPeriod(false);
220  }
221  }
getItemByPostVar(string $a_post_var)
const IL_CAL_UNIX
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:

◆ validateCustom()

ilObjPollGUI::validateCustom ( ilPropertyFormGUI  $form)
protected

Definition at line 174 of file class.ilObjPollGUI.php.

References $valid, ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), ILIAS\Repository\lng(), and ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.

174  : bool
175  {
176  $valid = true;
177  if ($form->getInput("online") && !$this->object->getAnswers()) {
178  $form->getItemByPostVar("online")->setAlert($this->lng->txt("poll_cannot_set_online_no_answers"));
179  $valid = false;
180  }
181  #20594
182  if (!array_filter($form->getInput("voting_period")) &&
183  (int) $form->getInput("results") === ilObjPoll::VIEW_RESULTS_AFTER_PERIOD) {
184  $form->getItemByPostVar("results")->setAlert($this->lng->txt("poll_view_results_after_period_impossible"));
185  $valid = false;
186  }
187  if (!$valid) {
188  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("form_input_not_valid"));
189  return false;
190  }
191  return parent::validateCustom($form);
192  }
const VIEW_RESULTS_AFTER_PERIOD
getItemByPostVar(string $a_post_var)
$valid
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...
+ Here is the call graph for this function:

◆ vote()

ilObjPollGUI::vote ( )

Definition at line 552 of file class.ilObjPollGUI.php.

References $DIC, $valid, ANONYMOUS_USER_ID, ilSession\get(), ILIAS\Repository\object(), ilUtil\redirect(), sendNotifications(), ilSession\set(), and ILIAS\Repository\user().

552  : void
553  {
554  global $DIC;
555  $aw = (array) ($DIC->http()->request()->getParsedBody()['aw'] ?? array());
556 
557  $valid = true;
558  if ($this->object->getMaxNumberOfAnswers() > 1) {
559  if (count($aw) > $this->object->getMaxNumberOfAnswers()) {
560  $valid = false;
561  }
562  if (!count($aw)) {
563  $valid = false;
564  }
565  } elseif ((int) !$aw) {
566  $valid = false;
567  }
568 
569  $session_last_poll_vote = ilSession::get('last_poll_vote');
570  if ($valid && $this->user->getId() != ANONYMOUS_USER_ID) {
571  unset($session_last_poll_vote[$this->object->getId()]);
572  ilSession::set('last_poll_vote', $session_last_poll_vote);
573  $this->object->saveVote($this->user->getId(), $aw);
574 
575  $this->sendNotifications();
576  } else {
577  $session_last_poll_vote[$this->object->getId()] = $aw;
578  ilSession::set('last_poll_vote', $session_last_poll_vote);
579  }
580 
581  ilUtil::redirect(ilLink::_getLink($this->tree->getParentId($this->ref_id)));
582  }
static get(string $a_var)
const ANONYMOUS_USER_ID
Definition: constants.php:27
$valid
global $DIC
Definition: feed.php:28
static redirect(string $a_script)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

Field Documentation

◆ $help

ilHelpGUI ilObjPollGUI::$help
protected

Definition at line 34 of file class.ilObjPollGUI.php.

◆ $nav_history

ilNavigationHistory ilObjPollGUI::$nav_history
protected

Definition at line 36 of file class.ilObjPollGUI.php.

◆ $tabs

ilTabsGUI ilObjPollGUI::$tabs
protected

Definition at line 35 of file class.ilObjPollGUI.php.

◆ $ui_factory

Factory ilObjPollGUI::$ui_factory
protected

Definition at line 37 of file class.ilObjPollGUI.php.

◆ $ui_renderer

Renderer ilObjPollGUI::$ui_renderer
protected

Definition at line 38 of file class.ilObjPollGUI.php.


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