|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
BlockGUI class for block NewsForContext. More...
Inheritance diagram for ilNewsForContextBlockGUI:
Collaboration diagram for ilNewsForContextBlockGUI:Public Member Functions | |
| __construct () | |
| getBlockType () | |
| executeCommand () | |
| getHTML () | |
| handleView () | |
| Handles show/hide notification view and removes notifications if hidden. More... | |
| getOverview () | |
| makeClickable (string $a_str) | |
| showNotifications () | |
| hideNotifications () | |
| editSettings () | |
| Show settings screen. More... | |
| initSettingsForm () | |
| Init setting form. More... | |
| cancelSettings () | |
| saveSettings () | |
| showFeedUrl () | |
| 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 () | |
| checkOffset (int $offset) | |
| 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="", ?RoundTrip $modal=null) | |
| getBlockCommands () | |
| getHTML () | |
| getAsynch () | |
| Use this for final get before sending asynchronous output (ajax) per echo to output. More... | |
| getPaginationViewControl () | |
| Fill previous/next row. More... | |
| getViewControlsForPanel () | |
| sortObject () | |
| addSortOption (string $option, string $label, bool $active) | |
| setSortTarget (string $target) | |
| addPresentation (string $label, string $target, bool $active) | |
| getNoItemFoundContent () | |
Static Public Member Functions | |
| static | getScreenMode () |
| static | addToSettingsForm (ilFormPropertyGUI $a_input, string $public_feed_info) |
| 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" |
Protected Member Functions | |
| initData (NewsCollection $collection) | |
| preloadData (array $data) | |
| Method will be called before rendering the block. More... | |
| getListItemForData (array $data) | |
| Get list item for data array. More... | |
| isRepositoryObject () | |
| Returns whether block has a corresponding repository object. More... | |
| getMediaPath (int $mob_id) | |
| downloadMob () | |
Protected Member Functions inherited from ilBlockGUI | |
| isRepositoryObject () | |
| Returns whether block has a corresponding repository object. More... | |
| specialCharsAsEntities (string $string) | |
| initCommands () | |
| preloadData (array $data) | |
| Can be overwritten in subclasses. More... | |
| getLegacyContent () | |
| Get legacy content. 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... | |
| getActionsForPanel () | |
| send (string $output) | |
| Send. More... | |
Private Member Functions | |
| loadNewsData () | |
| getNewsForId (int $news_id) | |
BlockGUI class for block NewsForContext.
Definition at line 35 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::__construct | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 64 of file class.ilNewsForContextBlockGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), handleView(), ILIAS\Repository\help(), ILIAS\Repository\lng(), loadNewsData(), ILIAS\Repository\logger(), ILIAS\Repository\refinery(), ilBlockGUI\setBlockId(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ilBlockGUI\setRowTemplate(), ILIAS\Repository\settings(), ilBlockGUI\setTitle(), and ILIAS\Repository\tabs().
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 867 of file class.ilNewsForContextBlockGUI.php.
Referenced by ilContainerNewsSettingsGUI\initForm().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::cancelSettings | ( | ) |
Definition at line 908 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::disableJS | ( | ) |
Definition at line 1075 of file class.ilNewsForContextBlockGUI.php.
References ilSession\set().
Here is the call graph for this function:
|
protected |
Definition at line 1098 of file class.ilNewsForContextBlockGUI.php.
| ilNewsForContextBlockGUI::editSettings | ( | ) |
Show settings screen.
Definition at line 750 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 1085 of file class.ilNewsForContextBlockGUI.php.
References send(), and ilSession\set().
Here is the call graph for this function:| ilNewsForContextBlockGUI::executeCommand | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 251 of file class.ilNewsForContextBlockGUI.php.
References ILIAS\Repository\ctrl(), and ilBlockGUI\getEnableEdit().
Here is the call graph for this function:| ilNewsForContextBlockGUI::getBlockType | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 217 of file class.ilNewsForContextBlockGUI.php.
References $block_type.
Referenced by getHTML(), hideNotifications(), initSettingsForm(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getDynamicReload | ( | ) |
Definition at line 1025 of file class.ilNewsForContextBlockGUI.php.
References $lng.
| ilNewsForContextBlockGUI::getHTML | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 263 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, $DIC, ilBlockGUI\$lng, ilBlockGUI\$obj_def, 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 hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getJSEnabler | ( | ) |
Definition at line 1054 of file class.ilNewsForContextBlockGUI.php.
Referenced by ilPDNewsBlockGUI\getHTML().
Here is the caller graph for this function:
|
protected |
Get list item for data array.
| array | $data |
Reimplemented from ilBlockGUI.
Definition at line 137 of file class.ilNewsForContextBlockGUI.php.
References Vendor\Package\$e, $info, getNewsForId(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), and ILIAS\Repository\ui().
Here is the call graph for this function:
|
protected |
Definition at line 678 of file class.ilNewsForContextBlockGUI.php.
|
private |
Definition at line 162 of file class.ilNewsForContextBlockGUI.php.
References $info, ilBlockGUI\$title, ilObject\_getIcon(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), ilNewsItem\determineNewsTitle(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, ILIAS\Repository\lng(), ilObjectPlugin\lookupTxtById(), ilStr\shortenWords(), and ILIAS\Repository\user().
Referenced by getListItemForData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::getNoItemFoundContent | ( | ) |
Reimplemented from ilBlockGUI.
Definition at line 1093 of file class.ilNewsForContextBlockGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilNewsForContextBlockGUI::getOverview | ( | ) |
Definition at line 410 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$lng, ilBlockGUI\getData(), and ilLanguage\txt().
Here is the call graph for this function:
|
static |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDNewsBlockGUI.
Definition at line 227 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 378 of file class.ilNewsForContextBlockGUI.php.
Referenced by __construct(), ilPDNewsBlockGUI\__construct(), hideNotifications(), and showNotifications().
Here is the caller graph for this function:| ilNewsForContextBlockGUI::hideNotifications | ( | ) |
Definition at line 723 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), getHTML(), handleView(), loadNewsData(), and ilBlockGUI\send().
Here is the call graph for this function:
|
protected |
Definition at line 122 of file class.ilNewsForContextBlockGUI.php.
References $collection, and ILIAS\News\Data\NewsCollection\pluck().
Referenced by loadNewsData(), and ilPDNewsBlockGUI\loadNewsData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::initSettingsForm | ( | ) |
Init setting form.
Definition at line 759 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$lng, $tabs, ilBlockSetting\_lookup(), ilTabsGUI\clearTargets(), getBlockType(), ilBlockGUI\getProperty(), IL_CAL_DATETIME, and ilLanguage\txt().
Referenced by editSettings().
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 222 of file class.ilNewsForContextBlockGUI.php.
|
private |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 102 of file class.ilNewsForContextBlockGUI.php.
References $collection, ILIAS\Repository\ctrl(), ILIAS\News\Data\NewsCollection\getNewsForContext(), ILIAS\News\Data\NewsCollection\groupFiles(), ILIAS\News\Data\NewsCollection\groupForums(), initData(), and ILIAS\Repository\user().
Referenced by __construct(), hideNotifications(), and showNotifications().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsForContextBlockGUI::makeClickable | ( | string | $a_str | ) |
Definition at line 688 of file class.ilNewsForContextBlockGUI.php.
References ilUtil\makeClickable().
Here is the call graph for this function:
|
protected |
Method will be called before rendering the block.
It lazily loads the required news items.
Reimplemented from ilBlockGUI.
Definition at line 131 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$data.
| ilNewsForContextBlockGUI::saveSettings | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 915 of file class.ilNewsForContextBlockGUI.php.
References ilBlockSetting\_write(), IL_CAL_DATETIME, and ILIAS\Repository\user().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showFeedUrl | ( | ) |
Reimplemented in ilPDNewsBlockGUI.
Definition at line 990 of file class.ilNewsForContextBlockGUI.php.
References $lng, ILIAS\News\Common\Table\$tpl, ilObjUser\_lookupFeedHash(), ilObject\_lookupTitle(), CLIENT_ID, ILIAS\UICore\GlobalTemplate\get(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\Repository\ui().
Here is the call graph for this function:| ilNewsForContextBlockGUI::showNotifications | ( | ) |
Definition at line 699 of file class.ilNewsForContextBlockGUI.php.
References ilBlockGUI\$ctrl, ilBlockGUI\$user, ilBlockSetting\_write(), getBlockType(), getHTML(), handleView(), loadNewsData(), and ilBlockGUI\send().
Here is the call graph for this function:
|
static |
Definition at line 898 of file class.ilNewsForContextBlockGUI.php.
References $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 41 of file class.ilNewsForContextBlockGUI.php.
Referenced by getBlockType(), and ilContainerNewsSettingsGUI\initForm().
|
protected |
Definition at line 60 of file class.ilNewsForContextBlockGUI.php.
Referenced by initData(), loadNewsData(), and ilPDNewsBlockGUI\loadNewsData().
|
protected |
Definition at line 56 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 43 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 57 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 51 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 61 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 42 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 59 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 62 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 52 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 50 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 44 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 55 of file class.ilNewsForContextBlockGUI.php.
|
protected |
Definition at line 53 of file class.ilNewsForContextBlockGUI.php.
Referenced by initSettingsForm().
|
protected |
Definition at line 49 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 40 of file class.ilNewsForContextBlockGUI.php.