|
ILIAS
release_8 Revision v8.24
|
BlockGUI class for block NewsForContext. More...
Inheritance diagram for ilNewsForContextBlockGUI:
Collaboration diagram for ilNewsForContextBlockGUI:Public Member Functions | |
| __construct () | |
| getNewsData () | |
| getBlockType () | |
| executeCommand () | |
| fillDataSection () | |
| Standard implementation for row based data. More... | |
| getHTML () | |
| handleView () | |
| Handles show/hide notification view and removes notifications if hidden. More... | |
| fillRow (array $a_set) | |
| get flat list for dashboard More... | |
| getInfoForData (array $news) | |
| getOverview () | |
| showNews () | |
| makeClickable (string $a_str) | |
| showNotifications () | |
| hideNotifications () | |
| editSettings () | |
| Show settings screen. More... | |
| initSettingsForm () | |
| Init setting form. More... | |
| cancelSettings () | |
| saveSettings () | |
| showFeedUrl () | |
| getDynamic () | |
| getDynamicReload () | |
| getJSEnabler () | |
| disableJS () | |
| enableJS () | |
| getNoItemFoundContent () | |
Public Member Functions inherited from ilBlockGUI | |
| __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 Member Functions | |
| static | getScreenMode () |
| static | addToSettingsForm (ilFormPropertyGUI $a_input) |
| Add inputs to the container news settings form to configure also the contextBlock options. More... | |
| static | writeSettings (array $a_values) |
| static | getScreenMode () |
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 |
| const | PRES_MAIN_TILE = 4 |
Static Public Attributes | |
| static string | $block_type = "news" |
| static array | $st_data |
Protected Member Functions | |
| isRepositoryObject () | |
| Returns whether block has a corresponding repository object. More... | |
| getMediaPath (int $mob_id) | |
| getListItemForData (array $data) | |
| Get list item for data array. More... | |
Protected Member Functions inherited from ilBlockGUI | |
| 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... | |
BlockGUI class for block NewsForContext.
Definition at line 29 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::__construct | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 55 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, $DIC, $ilUser, ilBlockGUI\$lng, $st_data, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getDynamic(), getNewsData(), handleView(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ilNewsItem\prepareNewsDataFromCache(), ilBlockGUI\setBlockId(), ilBlockGUI\setData(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ilBlockGUI\setRowTemplate(), ILIAS\Repository\settings(), ilBlockGUI\setTitle(), ILIAS\Repository\tabs(), ilLanguage\txt(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Add inputs to the container news settings form to configure also the contextBlock options.
Definition at line 1057 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $DIC, ilBlockGUI\$lng, $std_request, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), ILIAS\News\StandardGUIRequest\getRefId(), and ilLanguage\txt().
Referenced by ilContainerNewsSettingsGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Definition at line 1115 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, and ilCtrl\returnToParent().
Here is the call graph for this function:| ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1325 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilUser, ilBlockGUI\$user, and ilSession\set().
Here is the call graph for this function:| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 913 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 1335 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, ilBlockGUI\$user, getHTML(), ilBlockGUI\send(), and ilSession\set().
Here is the call graph for this function:| ilNewsForContextBlockGUI::executeCommand | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 198 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\getEnableEdit(), and ilCtrl\getNextClass().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillDataSection | ( | ) |
Standard implementation for row based data.
Overwrite this and call setContent for other data.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 217 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\getData(), getDynamicReload(), getOverview(), and ilBlockGUI\setDataSection().
Here is the call graph for this function:| ilNewsForContextBlockGUI::fillRow | ( | array | $a_set | ) |
get flat list for dashboard
Reimplemented from ilBlockGUI.
Definition at line 376 of file class.ilNewsForContextBlockGUI.php.
References getInfoForData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::getBlockType | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 164 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 1241 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilUser, ilBlockGUI\$user, and ilSession\get().
Referenced by __construct(), and ilPDNewsBlockGUI\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1275 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\getBlockId(), getBlockType(), and ilLanguage\txt().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getHTML | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 228 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $DIC, $ilUser, ilBlockGUI\$lng, ilBlockGUI\$obj_def, $ref_id, ilBlockGUI\$user, ilBlockSetting\_lookup(), ilObject\_lookupObjectId(), ilObject\_lookupType(), ilBlockGUI\addBlockCommand(), CLIENT_ID, getBlockType(), ilObjectDefinition\getClassName(), ilBlockGUI\getData(), ilBlockGUI\getEnableEdit(), ilBlockGUI\getProperty(), ilBlockGUI\getRepositoryMode(), ilBlockGUI\setTitle(), and ilLanguage\txt().
Referenced by enableJS(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getInfoForData | ( | array | $news | ) |
Definition at line 406 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$lng, $obj_definition, $type, ilObject\_getIcon(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, ilObjectDefinition\isPlugin(), ilObjectPlugin\lookupTxtById(), ilStr\shortenWords(), and ilLanguage\txt().
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 1304 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\getBlockId(), getBlockType(), and ilCtrl\setParameterByClass().
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 1349 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data, $factory, getInfoForData(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Here is the call graph for this function:
|
protected |
Definition at line 834 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 | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 118 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilUser, and ilBlockGUI\$user.
Referenced by __construct(), hideNotifications(), showNews(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getNoItemFoundContent | ( | ) |
Reimplemented from ilBlockGUI.
Definition at line 1369 of file class.ilNewsForContextBlockGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilNewsForContextBlockGUI::getOverview | ( | ) |
Definition at line 470 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$lng, ilBlockGUI\getData(), and ilLanguage\txt().
Referenced by fillDataSection(), and ilPDNewsBlockGUI\fillDataSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 174 of file class.ilNewsForContextBlockGUI.php.
References $DIC, 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 343 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, ilBlockGUI\$user, ilBlockSetting\_lookup(), getBlockType(), and ILIAS\Repository\int().
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 885 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), getHTML(), getNewsData(), handleView(), ilBlockGUI\send(), and ilBlockGUI\setData().
Here is the call graph for this function:| ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 922 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$lng, $tabs, ilNewsItem\_getDefaultVisibilityForRefId(), ilBlockSetting\_lookup(), ilTabsGUI\clearTargets(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and ilLanguage\txt().
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.
Definition at line 169 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::makeClickable | ( | string | $a_str | ) |
Definition at line 849 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Here is the call graph for this function:| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1122 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $ilUser, $settings_form, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and initSettingsForm().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 1206 of file class.ilNewsForContextBlockGUI.php.
References $ilUser, ilBlockGUI\$lng, $panel, ilBlockGUI\$title, ilBlockGUI\$tpl, ilBlockGUI\$user, ilObjUser\_lookupFeedHash(), ilObject\_lookupTitle(), CLIENT_ID, ilTemplate\get(), HTML_Template_IT\setVariable(), ilLanguage\txt(), and ILIAS\Repository\ui().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNews | ( | ) |
Definition at line 477 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$access, $c, ilBlockGUI\$ctrl, $ilUser, ilBlockGUI\$lng, $panel, ilBlockGUI\$title, ilBlockGUI\$tpl, $url, ilBlockGUI\$user, ilObject\_exists(), ilObject\_getIcon(), ilObjForumAccess\_getThreadForPosting(), ilBlockSetting\_lookup(), ilNewsItem\_lookupContextObjId(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\_setRead(), CLIENT_ID, ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), ilTemplate\get(), ilBlockGUI\getData(), ilLinkButton\getInstance(), ilObjUser\getLogin(), getMediaPath(), ilObjMediaObject\getMimeType(), getNewsData(), ilBlockGUI\getProperty(), ilNewsRendererFactory\getRenderer(), IL_CAL_DATETIME, ILIAS\Repository\int(), ilWikiPage\lookupTitle(), ilWikiUtil\makeUrlTitle(), NEWS_PUBLIC, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), ilBlockGUI\setData(), HTML_Template_IT\setVariable(), ilLanguage\txt(), ILIAS\Repository\ui(), and ilObjUser\userExists().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 860 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$data, $ilUser, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), getHTML(), getNewsData(), handleView(), ilBlockGUI\send(), and ilBlockGUI\setData().
Here is the call graph for this function:
|
static |
Definition at line 1105 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$block_id, $DIC, ILIAS\LTI\ToolProvider\$key, and ilBlockSetting\_write().
Referenced by ilContainerNewsSettingsGUI\save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file class.ilNewsForContextBlockGUI.php.
|
static |
Definition at line 50 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType(), and ilContainerNewsSettingsGUI\initForm().
|
protected |
Definition at line 36 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 37 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 47 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 40 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 35 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 52 of file class.ilNewsForContextBlockGUI.php.
Referenced by getInfoForData().
|
protected |
Definition at line 48 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 46 of file class.ilNewsForContextBlockGUI.php.
Referenced by saveSettings().
|
protected |
Definition at line 39 of file class.ilNewsForContextBlockGUI.php.
|
static |
Definition at line 51 of file class.ilNewsForContextBlockGUI.php.
Referenced by __construct(), and ilPDNewsBlockGUI\__construct().
|
protected |
Definition at line 53 of file class.ilNewsForContextBlockGUI.php.
Referenced by addToSettingsForm().
|
protected |
Definition at line 49 of file class.ilNewsForContextBlockGUI.php.
Referenced by initSettingsForm().
|
protected |
Definition at line 45 of file class.ilNewsForContextBlockGUI.php.
| const ilNewsForContextBlockGUI::OBJECTS_WITH_NEWS_SUBTAB = ["category", "course", "group", "forum"] |
object type names with settings->news settings subtab
Definition at line 34 of file class.ilNewsForContextBlockGUI.php.