ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
BlockGUI class for block NewsForContext. More...
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 () | |
![]() | |
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... | |
![]() | |
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 () | |
getMediaPath (int $mob_id) | |
getListItemForData (array $data) | |
getNoItemFoundContent () | |
No item entry. More... | |
![]() | |
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 | |
![]() | |
$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.
ilNewsForContextBlockGUI: ilColumnGUI ilNewsForContextBlockGUI: ilNewsItemGUI
Definition at line 18 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::__construct | ( | ) |
Constructor.
Definition at line 48 of file class.ilNewsForContextBlockGUI.php.
References $_GET, ilBlockGUI\$data, $DIC, $ilCtrl, $ilUser, ilBlockGUI\$lng, 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().
|
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(), ilBlockSetting\_lookup(), ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by ilContainerNewsSettingsGUI\initForm().
ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Cancel settings.
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().
ilNewsForContextBlockGUI::enableJS | ( | ) |
Definition at line 1453 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, $ilUser, ilBlockGUI\$user, exit, and getHTML().
ilNewsForContextBlockGUI::executeCommand | ( | ) |
execute command
Definition at line 206 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, and getEnableEdit().
ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Fill data section.
Definition at line 249 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
ilNewsForContextBlockGUI::fillRow | ( | $data | ) |
get flat list for personal desktop
Definition at line 428 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, and getInfoForData().
ilNewsForContextBlockGUI::getBlockType | ( | ) |
Definition at line 160 of file class.ilNewsForContextBlockGUI.php.
Referenced by getDynamicReload(), getHTML(), getJSEnabler(), handleView(), hideNotifications(), initSettingsForm(), saveSettings(), and showNotifications().
ilNewsForContextBlockGUI::getDynamic | ( | ) |
Definition at line 1358 of file class.ilNewsForContextBlockGUI.php.
References $_SESSION, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, and ilBlockGUI\$user.
Referenced by ilPDNewsBlockGUI\__construct(), and __construct().
ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1392 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilCtrl, ilBlockGUI\$lng, ilBlockGUI\getBlockId(), and getBlockType().
Referenced by ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
ilNewsForContextBlockGUI::getEnableEdit | ( | ) |
Get EnableEdit.
Definition at line 241 of file class.ilNewsForContextBlockGUI.php.
Referenced by executeCommand(), and getHTML().
ilNewsForContextBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
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().
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().
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().
|
protected |
Definition at line 1473 of file class.ilNewsForContextBlockGUI.php.
References $factory, getInfoForData(), and ui().
|
protected |
int | $mob_id |
Definition at line 888 of file class.ilNewsForContextBlockGUI.php.
References ilObjMediaObject\_getURL().
Referenced by showNews().
ilNewsForContextBlockGUI::getNewsData | ( | ) |
Get news for context.
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().
|
protected |
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 ilPDNewsBlockGUI\fillDataSection(), and fillDataSection().
|
static |
Get Screen Mode for current command.
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 ilBlockGUI\$block_id, $ilUser, ilBlockGUI\$user, ilBlockSetting\_lookup(), and getBlockType().
Referenced by ilPDNewsBlockGUI\__construct(), __construct(), hideNotifications(), and showNotifications().
ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 975 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
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(), IL_CAL_DATETIME, ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), and ilFormPropertyGUI\setRequired().
Referenced by editSettings(), and saveSettings().
|
protected |
Definition at line 168 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::makeClickable | ( | $a_str | ) |
Make clickable.
Definition at line 909 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
ilNewsForContextBlockGUI::saveSettings | ( | ) |
Save settings.
Definition at line 1234 of file class.ilNewsForContextBlockGUI.php.
References $_GET, $_POST, ilBlockGUI\$block_id, ilBlockGUI\$ctrl, $ilCtrl, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and initSettingsForm().
ilNewsForContextBlockGUI::setEnableEdit | ( | $a_enable_edit = 0 | ) |
Set EnableEdit.
boolean | $a_enable_edit | Edit mode on/off |
Definition at line 231 of file class.ilNewsForContextBlockGUI.php.
ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Show feed URL.
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.
ilNewsForContextBlockGUI::showNews | ( | ) |
show news
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().
ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 948 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilCtrl, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), exit, getBlockType(), getHTML(), getNewsData(), handleView(), and ilBlockGUI\setData().
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().
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().
|
static |
Definition at line 1211 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $DIC, and ilBlockSetting\_write().
Referenced by ilContainerNewsSettingsGUI\save().
|
static |
Definition at line 40 of file class.ilNewsForContextBlockGUI.php.
Referenced by 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.
|
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().