ILIAS
release_8 Revision v8.19
|
BlockGUI class for polls. More...
Public Member Functions | |
__construct () | |
getBlockType () | |
setBlock (ilPollBlock $a_block) | |
executeCommand () | |
fillRow (array $a_set) | |
getHTML () | |
getNumberOfCommentsForRedraw () | |
getNumberOfComments (int $ref_id) | |
fillDataSection () | |
![]() | |
__construct () | |
getBlockType () | |
setData (array $a_data) | |
getData () | |
setPresentation (int $type) | |
getPresentation () | |
setBlockId (string $a_block_id="0") | |
getBlockId () | |
setGuiObject (object $a_gui_object) | |
Set GuiObject. More... | |
getGuiObject () | |
setTitle (string $a_title) | |
getTitle () | |
setOffset (int $a_offset) | |
getOffset () | |
correctOffset () | |
setLimit (int $a_limit) | |
getLimit () | |
setEnableEdit (bool $a_enableedit) | |
getEnableEdit () | |
setRepositoryMode (bool $a_repositorymode) | |
getRepositoryMode () | |
setSubtitle (string $a_subtitle) | |
getSubtitle () | |
setRefId (int $a_refid) | |
Set Ref Id (only used if isRepositoryObject() is true). More... | |
getRefId () | |
setAdminCommands (bool $a_admincommands) | |
getAdminCommands () | |
setEnableNumInfo (bool $a_enablenuminfo) | |
getEnableNumInfo () | |
setProperties (array $a_properties) | |
This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More... | |
getProperty (string $a_property) | |
setProperty (string $a_property, string $a_value) | |
setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="") | |
Set Row Template Name. More... | |
getNavParameter () | |
getConfigParameter () | |
getMoveParameter () | |
getRowTemplateName () | |
getRowTemplateDir () | |
addBlockCommand (string $a_href, string $a_text, string $a_onclick="") | |
getBlockCommands () | |
getHTML () | |
fillHeaderCommands () | |
fillHeaderTitleBlock () | |
setDataSection (string $a_content) | |
Call this from overwritten fillDataSection(), if standard row based data is not used. More... | |
fillDataSection () | |
Standard implementation for row based data. More... | |
fillRow (array $a_set) | |
fillFooter () | |
fillPreviousNext () | |
setPreviousNextLinks () | |
getAsynch () | |
Use this for final get before sending asynchronous output (ajax) per echo to output. More... | |
getPaginationViewControl () | |
Fill previous/next row. More... | |
getHTMLNew () | |
getNoItemFoundContent () | |
Static Public Attributes | |
static string | $block_type = "poll" |
static bool | $js_init = false |
Protected Member Functions | |
isRepositoryObject () | |
getRepositoryObjectGUIName () | |
getLegacyContent () | |
![]() | |
isRepositoryObject () | |
Returns whether block has a corresponding repository object. More... | |
specialCharsAsEntities (string $string) | |
initCommands () | |
fillRowColor (string $a_placeholder="CSS_ROW") | |
preloadData (array $data) | |
Can be overwritten in subclasses. More... | |
getLegacyContent () | |
Get legacy content. More... | |
getViewControls () | |
Get view controls. More... | |
getListItemForData (array $data) | |
Get list item for data array. More... | |
handleNavigation () | |
Handle navigation. More... | |
loadData () | |
Load data for current page. More... | |
getListItemGroups () | |
Get items. More... | |
addRepoCommands () | |
Add repo commands. More... | |
send (string $output) | |
Send. More... | |
Private Member Functions | |
commentJSCall () | |
Builds JavaScript Call to open CommentLayer via html link. More... | |
Additional Inherited Members | |
![]() | |
static | getScreenMode () |
![]() | |
const | PRES_MAIN_LEG = 0 |
const | PRES_SEC_LEG = 1 |
const | PRES_SEC_LIST = 2 |
const | PRES_MAIN_LIST = 3 |
const | PRES_MAIN_TILE = 4 |
BlockGUI class for polls.
Definition at line 31 of file class.ilPollBlockGUI.php.
ilPollBlockGUI::__construct | ( | ) |
Definition at line 45 of file class.ilPollBlockGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilBlockGUI\setRowTemplate(), and ILIAS\Repository\user().
|
private |
Builds JavaScript Call to open CommentLayer via html link.
Definition at line 441 of file class.ilPollBlockGUI.php.
References $refId, ilObject\_lookupObjectId(), ilCommonActionDispatcherGUI\buildAjaxHash(), ilNoteGUI\getListCommentsJSCall(), ilBlockGUI\getRefId(), and ilCommonActionDispatcherGUI\TYPE_REPOSITORY.
Referenced by fillRow().
ilPollBlockGUI::executeCommand | ( | ) |
Definition at line 94 of file class.ilPollBlockGUI.php.
References ILIAS\Repository\ctrl().
ilPollBlockGUI::fillDataSection | ( | ) |
Definition at line 487 of file class.ilPollBlockGUI.php.
References getLegacyContent(), and ilBlockGUI\setDataSection().
ilPollBlockGUI::fillRow | ( | array | $a_set | ) |
Definition at line 106 of file class.ilPollBlockGUI.php.
References $id, $img, $url, ANONYMOUS_USER_ID, commentJSCall(), ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), ilSession\get(), ilProgressBar\getInstance(), ilChart\getInstanceByType(), getNumberOfComments(), ilBlockGUI\getRefId(), getRepositoryObjectGUIName(), IL_CAL_UNIX, ILIAS\Repository\int(), ILIAS\Repository\lng(), ilSession\set(), ilDatePresentation\setUseRelativeDates(), ilObjPoll\SHOW_RESULTS_AS_PIECHART, ilWACSignedPath\signFile(), ilArrayUtil\sortArray(), ilBlockGUI\specialCharsAsEntities(), ilChart\TYPE_PIE, ILIAS\Repository\user(), and ilDatePresentation\useRelativeDates().
Referenced by getLegacyContent().
ilPollBlockGUI::getBlockType | ( | ) |
Definition at line 70 of file class.ilPollBlockGUI.php.
ilPollBlockGUI::getHTML | ( | ) |
Definition at line 369 of file class.ilPollBlockGUI.php.
References ILIAS\Repository\access(), ilBlockGUI\addBlockCommand(), ILIAS\Repository\ctrl(), ilBlockGUI\getRefId(), getRepositoryObjectGUIName(), ilNotification\hasNotification(), ILIAS\Repository\lng(), ilBlockGUI\setData(), ilBlockGUI\setTitle(), ilNotification\TYPE_POLL, and ILIAS\Repository\user().
|
protected |
Definition at line 499 of file class.ilPollBlockGUI.php.
References fillRow(), ilBlockGUI\getData(), ilBlockGUI\getRowTemplateDir(), and ilBlockGUI\getRowTemplateName().
Referenced by fillDataSection().
ilPollBlockGUI::getNumberOfComments | ( | int | $ref_id | ) |
Definition at line 480 of file class.ilPollBlockGUI.php.
References $context, and ilObject\_lookupObjectId().
Referenced by fillRow(), and getNumberOfCommentsForRedraw().
ilPollBlockGUI::getNumberOfCommentsForRedraw | ( | ) |
Definition at line 457 of file class.ilPollBlockGUI.php.
References $DIC, exit, getNumberOfComments(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
|
protected |
Definition at line 83 of file class.ilPollBlockGUI.php.
Referenced by fillRow(), and getHTML().
|
protected |
Definition at line 78 of file class.ilPollBlockGUI.php.
ilPollBlockGUI::setBlock | ( | ilPollBlock | $a_block | ) |
Definition at line 88 of file class.ilPollBlockGUI.php.
References ilCustomBlock\getId(), and ilBlockGUI\setBlockId().
|
static |
Definition at line 33 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 37 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 42 of file class.ilPollBlockGUI.php.
|
static |
Definition at line 36 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 41 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 34 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 35 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 43 of file class.ilPollBlockGUI.php.