ILIAS
Release_5_0_x_branch Revision 61816
|
BlockGUI class for polls. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setBlock ($a_block) | |
Do most of the initialisation. | |
& | executeCommand () |
execute command | |
fillRow ($a_poll) | |
getHTML () | |
Get block HTML code. | |
getNumberOfCommentsForRedraw () | |
Returns comment count for JS Redraw. | |
getNumberOfComments ($ref_id) | |
Get comment count. | |
Public Member Functions inherited from ilBlockGUI | |
ilBlockGUI () | |
Constructor. | |
addHeaderLink ($a_href, $a_text, $status=true) | |
getHeaderLinks () | |
setData ($a_data) | |
Set Data. | |
getData () | |
Get Data. | |
setBigMode ($a_bigmode) | |
Set Big Mode. | |
getBigMode () | |
Get Big Mode. | |
setBlockId ($a_block_id=0) | |
Set Block Id. | |
getBlockId () | |
Get Block Id. | |
setAvailableDetailLevels ($a_max, $a_min=0) | |
Set Available Detail Levels. | |
setCurrentDetailLevel ($a_currentdetaillevel) | |
Set Current Detail Level. | |
setGuiObject (&$a_gui_object) | |
Set GuiObject. | |
getGuiObject () | |
Get GuiObject. | |
getCurrentDetailLevel () | |
Get Current Detail Level. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setImage ($a_image) | |
Set Image. | |
getImage () | |
Get Image. | |
setOffset ($a_offset) | |
Set Offset. | |
getOffset () | |
Get Offset. | |
correctOffset () | |
setLimit ($a_limit) | |
Set Limit. | |
getLimit () | |
Get Limit. | |
setEnableEdit ($a_enableedit) | |
Set EnableEdit. | |
getEnableEdit () | |
Get EnableEdit. | |
setRepositoryMode ($a_repositorymode) | |
Set RepositoryMode. | |
getRepositoryMode () | |
Get RepositoryMode. | |
setFooterInfo ($a_footerinfo, $a_hide_and_icon=false) | |
Set Footer Info. | |
getFooterInfo ($a_hide_and_icon=false) | |
Get Footer Info. | |
setSubtitle ($a_subtitle) | |
Set Subtitle. | |
getSubtitle () | |
Get Subtitle. | |
setRefId ($a_refid) | |
Set Ref Id (only used if isRepositoryObject() is true). | |
getRefId () | |
Get Ref Id (only used if isRepositoryObject() is true). | |
setAdminCommands ($a_admincommands) | |
Set Administration Commmands. | |
getAdminCommands () | |
Get Administration Commmands. | |
setColSpan ($a_colspan) | |
Set Columns Span. | |
getColSpan () | |
Get Columns Span. | |
setEnableDetailRow ($a_enabledetailrow) | |
Set EnableDetailRow. | |
getEnableDetailRow () | |
Get EnableDetailRow. | |
setEnableNumInfo ($a_enablenuminfo) | |
Set Enable Item Number Info. | |
getEnableNumInfo () | |
Get Enable Item Number Info. | |
setProperties ($a_properties) | |
This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. | |
getProperty ($a_property) | |
setProperty ($a_property, $a_value) | |
setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="") | |
Set Row Template Name. | |
getNavParameter () | |
getDetailParameter () | |
getConfigParameter () | |
getMoveParameter () | |
getRowTemplateName () | |
Get Row Template Name. | |
getRowTemplateDir () | |
Get Row Template Directory. | |
addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="") | |
Add Block Command. | |
getBlockCommands () | |
Get Block commands. | |
addHeaderCommand ($a_href, $a_text, $a_as_close=false) | |
Add Header Block Command. | |
getHeaderCommands () | |
Get Header Block commands. | |
addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false, $a_checked=false) | |
Add a footer text/link. | |
getFooterLinks () | |
Get footer links. | |
clearFooterLinks () | |
Clear footer links. | |
handleDetailLevel () | |
Handle read/write current detail level. | |
fillHeaderCommands () | |
Fill header commands block. | |
fillHeaderTitleBlock () | |
Fill header title block (title and. | |
setDataSection ($a_content) | |
Call this from overwritten fillDataSection(), if standard row based data is not used. | |
fillDataSection () | |
Standard implementation for row based data. | |
fillFooter () | |
fillPreviousNext () | |
Fill previous/next row. | |
setPreviousNextLinks () | |
Get previous/next linkbar. | |
fillFooterLinks ($a_top=false, $a_numinfo="") | |
Fill footer links. | |
fillDetailRow () | |
Fill Detail Setting Row. |
Static Public Member Functions | |
static | getBlockType () |
Get block type. | |
static | isRepositoryObject () |
Is block of repository object? | |
static | getScreenMode () |
Get Screen Mode for current command. |
Static Public Attributes | |
static | $block_type = "poll" |
static | $js_init = false |
Protected Member Functions | |
getRepositoryObjectGUIName () | |
Get repository object GUI name. | |
Protected Member Functions inherited from ilBlockGUI | |
fillRowColor ($a_placeholder="CSS_ROW") | |
preloadData (array $data) | |
Can be overwritten in subclasses. |
Protected Attributes | |
$poll_block | |
Protected Attributes inherited from ilBlockGUI | |
$data = array() | |
$colspan = 1 | |
$enablenuminfo = true | |
$detail_min = 0 | |
$detail_max = 0 | |
$bigmode = false | |
$footer_links = array() | |
$block_id = 0 | |
$header_commands = array() | |
$allow_moving = true | |
$move = array("left" => false, "right" => false, "up" => false, "down" => false) | |
$enabledetailrow = true | |
$header_links = array() | |
$footerinfo = false | |
$footerinfo_icon = false | |
$block_commands = array() | |
$max_count = false | |
$close_command = false | |
$image = false | |
$property = false | |
$nav_value = "" | |
$css_row = "" | |
$dropdown |
Private Member Functions | |
commentJSCall () | |
Builds JavaScript Call to open CommentLayer via html link. |
ilPollBlockGUI::__construct | ( | ) |
Constructor.
Definition at line 28 of file class.ilPollBlockGUI.php.
References $lng, and ilBlockGUI\setRowTemplate().
|
private |
Builds JavaScript Call to open CommentLayer via html link.
Definition at line 437 of file class.ilPollBlockGUI.php.
References $comment, ilObject2\_lookupObjectId(), ilCommonActionDispatcherGUI\buildAjaxHash(), ilBlockGUI\getRefId(), and ilCommonActionDispatcherGUI\TYPE_REPOSITORY.
Referenced by fillRow().
& ilPollBlockGUI::executeCommand | ( | ) |
ilPollBlockGUI::fillRow | ( | $a_poll | ) |
Reimplemented from ilBlockGUI.
Definition at line 102 of file class.ilPollBlockGUI.php.
References $_SESSION, $ilCtrl, $ilUser, $img, $lng, $total, $tpl, commentJSCall(), ilDatePresentation\formatDate(), ilProgressBar\getInstance(), ilChart\getInstanceByType(), getNumberOfComments(), ilBlockGUI\getRefId(), getRepositoryObjectGUIName(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), ilObjPoll\SHOW_RESULTS_AS_PIECHART, ilUtil\sortArray(), and ilDatePresentation\useRelativeDates().
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Definition at line 43 of file class.ilPollBlockGUI.php.
References $block_type.
ilPollBlockGUI::getHTML | ( | ) |
Get block HTML code.
Reimplemented from ilBlockGUI.
Definition at line 359 of file class.ilPollBlockGUI.php.
References $ilCtrl, $ilUser, $lng, ilBlockGUI\addBlockCommand(), ilBlockGUI\getRefId(), getRepositoryObjectGUIName(), ilNotification\hasNotification(), ilBlockGUI\setData(), ilBlockGUI\setTitle(), and ilNotification\TYPE_POLL.
ilPollBlockGUI::getNumberOfComments | ( | $ref_id | ) |
Get comment count.
int | $ref_id |
Definition at line 480 of file class.ilPollBlockGUI.php.
References $ref_id, ilNote\_countNotesAndComments(), ilObject2\_lookupObjectId(), and IL_NOTE_PUBLIC.
Referenced by fillRow(), and getNumberOfCommentsForRedraw().
ilPollBlockGUI::getNumberOfCommentsForRedraw | ( | ) |
Returns comment count for JS Redraw.
Definition at line 458 of file class.ilPollBlockGUI.php.
References $_GET, exit, and getNumberOfComments().
|
protected |
Get repository object GUI name.
Definition at line 63 of file class.ilPollBlockGUI.php.
Referenced by fillRow(), and getHTML().
|
static |
Get Screen Mode for current command.
Reimplemented from ilBlockGUI.
Definition at line 71 of file class.ilPollBlockGUI.php.
References IL_SCREEN_SIDE.
|
static |
Is block of repository object?
Reimplemented from ilBlockGUI.
Definition at line 53 of file class.ilPollBlockGUI.php.
ilPollBlockGUI::setBlock | ( | $a_block | ) |
Do most of the initialisation.
Definition at line 79 of file class.ilPollBlockGUI.php.
References ilBlockGUI\setBlockId().
|
static |
Definition at line 19 of file class.ilPollBlockGUI.php.
Referenced by getBlockType().
|
static |
Definition at line 23 of file class.ilPollBlockGUI.php.
|
protected |
Definition at line 21 of file class.ilPollBlockGUI.php.