|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
BlockGUI class for block NewsForContext. More...
Inheritance diagram for ilNewsForContextBlockGUI:
Collaboration diagram for ilNewsForContextBlockGUI:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getNewsData () | |
| Get news for context. More... | |
| getBlockType () | |
| |
| executeCommand () | |
| execute command More... | |
| setEnableEdit ($a_enable_edit=0) | |
| Set EnableEdit. More... | |
| getEnableEdit () | |
| Get EnableEdit. More... | |
| fillDataSection () | |
| Fill data section. More... | |
| getHTML () | |
| Get bloch HTML code. More... | |
| handleView () | |
| Handles show/hide notification view and removes notifications if hidden. More... | |
| fillRow ($data) | |
| get flat list for personal desktop More... | |
| getInfoForData ($news) | |
| getOverview () | |
| Get overview. More... | |
| showNews () | |
| show news More... | |
| makeClickable ($a_str) | |
| Make clickable. More... | |
| unsubscribeNews () | |
| Unsubscribe current user from news. More... | |
| subscribeNews () | |
| Subscribe current user from news. More... | |
| showNotifications () | |
| hideNotifications () | |
| editSettings () | |
| Show settings screen. More... | |
| initSettingsForm () | |
| Init setting form. More... | |
| cancelSettings () | |
| Cancel settings. More... | |
| saveSettings () | |
| Save settings. More... | |
| showFeedUrl () | |
| Show feed URL. More... | |
| getDynamic () | |
| getDynamicReload () | |
| getJSEnabler () | |
| disableJS () | |
| enableJS () | |
Public Member Functions inherited from ilBlockGUI | |
| getBlockType () | |
| __construct () | |
| Constructor. More... | |
| setData ($a_data) | |
| Set Data. More... | |
| getData () | |
| Get Data. More... | |
| setPresentation (int $type) | |
| Set presentation. More... | |
| getPresentation () | |
| Get presentation type. More... | |
| setBlockId ($a_block_id=0) | |
| Set Block Id. More... | |
| getBlockId () | |
| Get Block Id. More... | |
| setGuiObject (&$a_gui_object) | |
| Set GuiObject. More... | |
| getGuiObject () | |
| Get GuiObject. More... | |
| setTitle ($a_title) | |
| Set Title. More... | |
| getTitle () | |
| Get Title. More... | |
| setOffset ($a_offset) | |
| Set Offset. More... | |
| getOffset () | |
| Get Offset. More... | |
| correctOffset () | |
| setLimit ($a_limit) | |
| Set Limit. More... | |
| getLimit () | |
| Get Limit. More... | |
| setEnableEdit ($a_enableedit) | |
| Set EnableEdit. More... | |
| getEnableEdit () | |
| Get EnableEdit. More... | |
| setRepositoryMode ($a_repositorymode) | |
| Set RepositoryMode. More... | |
| getRepositoryMode () | |
| Get RepositoryMode. More... | |
| setSubtitle ($a_subtitle) | |
| Set Subtitle. More... | |
| getSubtitle () | |
| Get Subtitle. More... | |
| setRefId ($a_refid) | |
| Set Ref Id (only used if isRepositoryObject() is true). More... | |
| getRefId () | |
| Get Ref Id (only used if isRepositoryObject() is true). More... | |
| setAdminCommands (bool $a_admincommands) | |
| Set Administration Commmands. More... | |
| getAdminCommands () | |
| Get Administration Commmands. More... | |
| setEnableNumInfo ($a_enablenuminfo) | |
| Set Enable Item Number Info. More... | |
| getEnableNumInfo () | |
| Get Enable Item Number Info. More... | |
| setProperties ($a_properties) | |
| This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More... | |
| getProperty ($a_property) | |
| setProperty ($a_property, $a_value) | |
| setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="") | |
| Set Row Template Name. More... | |
| getNavParameter () | |
| getConfigParameter () | |
| getMoveParameter () | |
| getRowTemplateName () | |
| Get Row Template Name. More... | |
| getRowTemplateDir () | |
| Get Row Template Directory. More... | |
| addBlockCommand (string $a_href, string $a_text, string $a_onclick="") | |
| Add Block Command. More... | |
| getBlockCommands () | |
| Get Block commands. More... | |
| getHTML () | |
| Get HTML. More... | |
| fillHeaderCommands () | |
| Fill header commands block. More... | |
| fillHeaderTitleBlock () | |
| Fill header title block (title and. More... | |
| setDataSection ($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 ($a_set) | |
| fillFooter () | |
| fillPreviousNext () | |
| Fill previous/next row. More... | |
| setPreviousNextLinks () | |
| Get previous/next linkbar. More... | |
| getAsynch () | |
| Use this for final get before sending asynchronous output (ajax) per echo to output. More... | |
| getPaginationViewControl () | |
| Fill previous/next row. More... | |
| getHTMLNew () | |
| Get HTML. More... | |
Static Public Member Functions | |
| static | getScreenMode () |
| Get Screen Mode for current command. More... | |
| static | addToSettingsForm (ilFormPropertyGUI $a_input) |
| Add inputs to the container news settings form to configure also the contextBlock options. More... | |
| static | writeSettings ($a_values) |
| static | getScreenMode () |
| Get Screen Mode for current command. More... | |
Data Fields | |
| const | OBJECTS_WITH_NEWS_SUBTAB = ["category", "course", "group", "forum"] |
| object type names with settings->news settings subtab More... | |
Data Fields inherited from ilBlockGUI | |
| const | PRES_MAIN_LEG = 0 |
| const | PRES_SEC_LEG = 1 |
| const | PRES_SEC_LIST = 2 |
| const | PRES_MAIN_LIST = 3 |
Static Public Attributes | |
| static | $block_type = "news" |
| static | $st_data |
Protected Member Functions | ||||
| isRepositoryObject () | ||||
Returns whether block has a corresponding repository object.
| ||||
| getMediaPath (int $mob_id) | ||||
| getListItemForData (array $data) | ||||
Get list item for data array.
| ||||
| getNoItemFoundContent () | ||||
| No item entry. More... | ||||
Protected Member Functions inherited from ilBlockGUI | ||||
| isRepositoryObject () | ||||
| Returns whether block has a corresponding repository object. More... | ||||
| initCommands () | ||||
| Init commands. More... | ||||
| fillRowColor ($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... | ||||
| getNoItemFoundContent () | ||||
| No item entry. More... | ||||
Protected Attributes | |
| $help | |
| $settings | |
| $tabs | |
| $obj_definition | |
| $new_rendering = true | |
Protected Attributes inherited from ilBlockGUI | |
| $ui | |
| $data = array() | |
| $enablenuminfo = true | |
| $footer_links = array() | |
| $block_id = 0 | |
| $allow_moving = true | |
| $move = array("left" => false, "right" => false, "up" => false, "down" => false) | |
| $block_commands = array() | |
| $max_count = false | |
| $close_command = false | |
| $image = false | |
| $property = false | |
| $nav_value = "" | |
| $css_row = "" | |
| $title = "" | |
| $admincommands = false | |
| $dropdown | |
| $tpl | |
| $main_tpl | |
| $user | |
| $ctrl | |
| $access | |
| $lng | |
| $obj_def | |
| $presentation | |
| $new_rendering = false | |
BlockGUI class for block NewsForContext.
@ilCtrl_IsCalledBy ilNewsForContextBlockGUI: ilColumnGUI @ilCtrl_Calls ilNewsForContextBlockGUI: ilNewsItemGUI
Definition at line 18 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::__construct | ( | ) |
Constructor.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 48 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $DIC, $ilCtrl, $ilUser, ilBlockGUI\$lng, $st_data, ILIAS\GlobalScreen\Provider\__construct(), getDynamic(), getNewsData(), handleView(), help(), ilNewsItem\prepareNewsDataFromCache(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ilBlockGUI\setRowTemplate(), settings(), ilBlockGUI\setTitle(), and user().
Here is the call graph for this function:
|
static |
Add inputs to the container news settings form to configure also the contextBlock options.
| ilFormPropertyGUI | $a_input |
Definition at line 1166 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$block_id, $DIC, ilBlockGUI\$lng, ilNewsItem\_getDefaultVisibilityForRefId(), and ilBlockSetting\_lookup().
Referenced by ilContainerNewsSettingsGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1224 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, and $ilCtrl.
| ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1443 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 1005 of file class.ilNewsForContextBlockGUI.php.
References initSettingsForm().
Referenced by ilPDNewsBlockGUI\changeFeedSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::enableJS | ( | ) |
Definition at line 1453 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilUser, ilBlockGUI\$user, exit, and getHTML().
Here is the call graph for this function:| ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilPDNewsBlockGUI.
Definition at line 206 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $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 249 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillRow | ( | $data | ) |
get flat list for personal desktop
Reimplemented from ilBlockGUI.
Definition at line 428 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, and getInfoForData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::getBlockType | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 160 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 1358 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
Referenced by __construct(), and ilPDNewsBlockGUI\__construct().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1392 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\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 241 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 263 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $DIC, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$obj_def, ilBlockGUI\$user, ilBlockSetting\_lookup(), ilObject\_lookupObjectId(), ilObject\_lookupType(), ilBlockGUI\addBlockCommand(), getBlockType(), ilBlockGUI\getData(), getEnableEdit(), ilBlockGUI\getProperty(), ilBlockGUI\getRepositoryMode(), ILIAS_HTTP_PATH, OBJECTS_WITH_NEWS_SUBTAB, 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::getInfoForData | ( | $news | ) |
Definition at line 458 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$lng, $obj_definition, $type, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, ilObjectPlugin\lookupTxtById(), and ilUtil\shortenWords().
Referenced by fillRow(), and getListItemForData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1421 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$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:
|
protected |
Get list item for data array.
| array | $data |
Reimplemented from ilBlockGUI.
Definition at line 1473 of file class.ilNewsForContextBlockGUI.php.
References $factory, getInfoForData(), and ui().
Here is the call graph for this function:
|
protected |
| int | $mob_id |
Definition at line 888 of file class.ilNewsForContextBlockGUI.php.
References ilObjMediaObject\_getURL().
Referenced by showNews().
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 110 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
Referenced by __construct(), hideNotifications(), showNews(), and showNotifications().
Here is the caller graph for this function:
|
protected |
No item entry.
Reimplemented from ilBlockGUI.
Definition at line 1500 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::getOverview | ( | ) |
Get overview.
Definition at line 523 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$user, and ilBlockGUI\getData().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\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 176 of file class.ilNewsForContextBlockGUI.php.
References $DIC, $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 378 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, ilBlockGUI\$user, ilBlockSetting\_lookup(), and getBlockType().
Referenced by __construct(), ilPDNewsBlockGUI\__construct(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 975 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 1014 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilSetting, $ilUser, ilBlockGUI\$lng, $settings, $tabs, ilBlockGUI\$user, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), getBlockType(), ilBlockGUI\getProperty(), and IL_CAL_DATETIME.
Referenced by editSettings(), and saveSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Returns whether block has a corresponding repository object.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 168 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::makeClickable | ( | $a_str | ) |
Make clickable.
return
Definition at line 909 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Here is the call graph for this function:| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1234 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $_POST, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, 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 231 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1320 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$title, ilBlockGUI\$tpl, ilBlockGUI\$user, ilObjUser\_lookupFeedHash(), ilObject\_lookupTitle(), and ILIAS_HTTP_PATH.
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNews | ( | ) |
show news
Reimplemented in ilPDNewsBlockGUI.
Definition at line 535 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$access, Vendor\Package\$c, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$title, ilBlockGUI\$tpl, $url, ilBlockGUI\$user, ilObject\_exists(), ilObjForumAccess\_getThreadForPosting(), ilBlockSetting\_lookup(), ilNewsItem\_lookupContextObjId(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilBlockGUI\getData(), ilLinkButton\getInstance(), getMediaPath(), ilObjMediaObject\getMimeType(), getNewsData(), ilBlockGUI\getProperty(), ilNewsRendererFactory\getRenderer(), IL_CAL_DATETIME, ilWikiPage\lookupTitle(), ilWikiUtil\makeUrlTitle(), NEWS_PUBLIC, ilBlockGUI\setData(), and ui().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 948 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::subscribeNews | ( | ) |
Subscribe current user from news.
Definition at line 937 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, and ilNewsSubscription\_subscribe().
Here is the call graph for this function:| ilNewsForContextBlockGUI::unsubscribeNews | ( | ) |
Unsubscribe current user from news.
Definition at line 924 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, and ilNewsSubscription\_unsubscribe().
Here is the call graph for this function:
|
static |
Definition at line 1211 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $DIC, and ilBlockSetting\_write().
Referenced by ilContainerNewsSettingsGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 40 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType(), and ilContainerNewsSettingsGUI\initForm().
|
protected |
Definition at line 28 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 1467 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 43 of file class.ilNewsForContextBlockGUI.php.
Referenced by getInfoForData().
|
protected |
Definition at line 33 of file class.ilNewsForContextBlockGUI.php.
Referenced by ilPDNewsBlockGUI\editSettings(), initSettingsForm(), and ilPDNewsBlockGUI\showFeedUrl().
|
static |
Definition at line 41 of file class.ilNewsForContextBlockGUI.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilNewsForContextBlockGUI.php.
Referenced by initSettingsForm().
| const ilNewsForContextBlockGUI::OBJECTS_WITH_NEWS_SUBTAB = ["category", "course", "group", "forum"] |
object type names with settings->news settings subtab
Definition at line 23 of file class.ilNewsForContextBlockGUI.php.
Referenced by getHTML().