|
ILIAS
eassessment Revision 61809
|
BlockGUI class for block NewsForContext. More...
Inheritance diagram for ilNewsForContextBlockGUI:
Collaboration diagram for ilNewsForContextBlockGUI:Public Member Functions | |
| ilNewsForContextBlockGUI () | |
| Constructor. | |
| getNewsData () | |
| Get news for context. | |
| & | executeCommand () |
| execute command | |
| setEnableEdit ($a_enable_edit=0) | |
| Set EnableEdit. | |
| getEnableEdit () | |
| Get EnableEdit. | |
| fillDataSection () | |
| Fill data section. | |
| getHTML () | |
| Get bloch HTML code. | |
| handleView () | |
| Handles show/hide notification view and removes notifications if hidden. | |
| fillRow ($news) | |
| get flat bookmark list for personal desktop | |
| getOverview () | |
| Get overview. | |
| showNews () | |
| show news | |
| unsubscribeNews () | |
| Unsubscribe current user from news. | |
| subscribeNews () | |
| Subscribe current user from news. | |
| fillFooter () | |
| block footer | |
| showViewFooter () | |
| Show additional footer for show/hide notifications. | |
| showNotifications () | |
| hideNotifications () | |
| editSettings () | |
| Show settings screen. | |
| initSettingsForm () | |
| Init setting form. | |
| cancelSettings () | |
| Cancel settings. | |
| saveSettings () | |
| Save settings. | |
| showFeedUrl () | |
| Show feed URL. | |
| addCloseCommand ($a_content_block) | |
| getDynamic () | |
| getDynamicReload () | |
| getJSEnabler () | |
| disableJS () | |
| enableJS () | |
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. | |
| 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) | |
| 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) | |
| Add a footer text/link. | |
| getFooterLinks () | |
| Get footer links. | |
| clearFooterLinks () | |
| Clear footer links. | |
| handleDetailLevel () | |
| Handle read/write current detail level. | |
| setConfigMode ($a_configmode) | |
| Handle config status. | |
| getConfigMode () | |
| Get Config Mode (move blocks). | |
| 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. | |
| fillPreviousNext () | |
| Fill previous/next row. | |
| setPreviousNextLinks () | |
| Get previous/next linkbar. | |
| fillFooterLinks ($a_top=false, $a_numinfo="") | |
| Fill footer links. | |
| fillDetailRow () | |
| Fill Detail Setting Row. | |
| fillMoveRow () | |
| Fill row for Moving. | |
| getAllowMove ($a_direction) | |
| setAllowMove ($a_direction, $a_allow=true) | |
| fillMoveLink ($a_value, $a_img, $a_txt) | |
Static Public Member Functions | |
| static | getBlockType () |
| Get block type. | |
| static | isRepositoryObject () |
| Is this a repository object. | |
| static | getScreenMode () |
| Get Screen Mode for current command. | |
Static Public Attributes | |
| static | $block_type = "news" |
| static | $st_data |
Additional Inherited Members | |
Protected Member Functions inherited from ilBlockGUI | |
| fillRowColor ($a_placeholder="CSS_ROW") | |
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 = "" | |
BlockGUI class for block NewsForContext.
ilNewsForContextBlockGUI: ilColumnGUI ilNewsForContextBlockGUI: ilNewsItemGUI
Definition at line 18 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::addCloseCommand | ( | $a_content_block | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1135 of file class.ilNewsForContextBlockGUI.php.
Referenced by showNews().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1043 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl.
| ilNewsForContextBlockGUI::disableJS | ( | ) |
| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 913 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
Here is the call graph for this function:| ilNewsForContextBlockGUI::enableJS | ( | ) |
| & ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 170 of file class.ilNewsForContextBlockGUI.php.
References $cmd, $ilCtrl, and getEnableEdit().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Fill data section.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 214 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getCurrentDetailLevel(), ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillFooter | ( | ) |
block footer
Reimplemented from ilBlockGUI.
Definition at line 812 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, and showViewFooter().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillRow | ( | $news | ) |
get flat bookmark list for personal desktop
Reimplemented from ilBlockGUI.
Definition at line 379 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, $type, ilObject\_getIcon(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getCurrentDetailLevel(), IL_CAL_DATETIME, and ilUtil\shortenWords().
Here is the call graph for this function:
|
static |
Get block type.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 122 of file class.ilNewsForContextBlockGUI.php.
References $block_type.
Referenced by getDynamicReload(), getHTML(), getJSEnabler(), handleView(), hideNotifications(), initSettingsForm(), saveSettings(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1143 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, and $ilCtrl.
Referenced by ilNewsForContextBlockGUI(), and ilPDNewsBlockGUI\ilPDNewsBlockGUI().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1175 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Reimplemented from ilBlockGUI.
Definition at line 206 of file class.ilNewsForContextBlockGUI.php.
Referenced by executeCommand(), and getHTML().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 233 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $lng, ilBlockSetting\_lookup(), ilBlockGUI\addBlockCommand(), getBlockType(), ilBlockGUI\getData(), getEnableEdit(), ilUtil\getImagePath(), ilBlockGUI\getProperty(), ilBlockGUI\getRepositoryMode(), ilBlockGUI\setFooterInfo(), and ilBlockGUI\setTitle().
Referenced by enableJS(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1196 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getNewsData | ( | ) |
Get news for context.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 84 of file class.ilNewsForContextBlockGUI.php.
References $_GET, and $ilCtrl.
Referenced by hideNotifications(), ilNewsForContextBlockGUI(), showNews(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 463 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, and ilBlockGUI\getData().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get Screen Mode for current command.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 140 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, IL_SCREEN_CENTER, IL_SCREEN_FULL, and IL_SCREEN_SIDE.
| ilNewsForContextBlockGUI::handleView | ( | ) |
Handles show/hide notification view and removes notifications if hidden.
Definition at line 333 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $row, ilBlockSetting\_lookup(), and getBlockType().
Referenced by hideNotifications(), ilNewsForContextBlockGUI(), ilPDNewsBlockGUI\ilPDNewsBlockGUI(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 886 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::ilNewsForContextBlockGUI | ( | ) |
Constructor.
Definition at line 26 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $ilCtrl, $lng, $st_data, ilBlockGUI\getCurrentDetailLevel(), getDynamic(), ilUtil\getImagePath(), getNewsData(), handleView(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setImage(), ilBlockGUI\setLimit(), ilBlockGUI\setRowTemplate(), and ilBlockGUI\setTitle().
Here is the call graph for this function:| ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 922 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, $ilSetting, $lng, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), getBlockType(), ilUtil\getImagePath(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, ilDateTimeInputGUI\setDate(), ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by editSettings(), and saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Is this a repository object.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 132 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1053 of file class.ilNewsForContextBlockGUI.php.
References $_POST, ilBlockGUI\$block_id, $ilCtrl, ilBlockSetting\_write(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and initSettingsForm().
Here is the call graph for this function:| ilNewsForContextBlockGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
| boolean | $a_enable_edit | Edit mode on/off |
Reimplemented from ilBlockGUI.
Definition at line 196 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1102 of file class.ilNewsForContextBlockGUI.php.
References $ilCtrl, $lng, $title, $tpl, ilObject\_lookupTitle(), and ilUtil\getImagePath().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 473 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $displayname, $ilCtrl, $lng, $tpl, ilObject\_exists(), ilObject\_getIcon(), ilObjMediaObject\_getURL(), ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), addCloseCommand(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilUtil\getImagePath(), getNewsData(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, ilUtil\makeClickable(), NEWS_AUDIO, NEWS_PUBLIC, and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 862 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$data, $ilCtrl, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showViewFooter | ( | ) |
Show additional footer for show/hide notifications.
Definition at line 827 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $ilCtrl, $lng, ilBlockGUI\addFooterLink(), ilBlockGUI\clearFooterLinks(), and ilBlockGUI\fillFooterLinks().
Referenced by fillFooter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::subscribeNews | ( | ) |
Subscribe current user from news.
Definition at line 800 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, and ilNewsSubscription\_subscribe().
Here is the call graph for this function:| ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 788 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $ilCtrl, and ilNewsSubscription\_unsubscribe().
Here is the call graph for this function:
|
static |
Definition at line 20 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType().
|
static |
Definition at line 21 of file class.ilNewsForContextBlockGUI.php.
Referenced by ilNewsForContextBlockGUI().