ILIAS
eassessment Revision 61809
|
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
setLimitation ($a_limitation) | |
Set Limitation for number of items. | |
getLimitation () | |
Get Limitation for number of items. | |
create () | |
Create. | |
getNewsForRefId ($a_ref_id, $a_only_public=false, $a_stopnesting=false, $a_time_period=0, $a_prevent_aggregation=true, $a_forum_group_sequences=false, $a_no_auto_generated=false, $a_ignore_date_filter=false) | |
Get News For Ref Id. | |
getAggregatedNewsData ($a_ref_id, $a_only_public=false, $a_time_period=0, $a_prevent_aggregation=false, $a_starting_date="", $a_no_auto_generated=false) | |
Get news aggregation (e.g. | |
aggregateFiles ($news, $a_ref_id) | |
getAggregatedChildNewsData ($a_ref_id, $a_only_public=false, $a_time_period=0, $a_prevent_aggregation=false, $a_starting_date="", $a_no_auto_generated=false) | |
Get news aggregation for child objects (e.g. | |
setContext ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Convenient function to set the whole context information. | |
queryNewsForContext ($a_for_rss_use=false, $a_time_period=0, $a_starting_date="", $a_no_auto_generated=false, $a_oldest_first=false) | |
Query news for a context. | |
queryNewsForMultipleContexts ($a_contexts, $a_for_rss_use=false, $a_time_period=0, $a_starting_date="", $a_no_auto_generated=false) | |
Query News for multiple Contexts. | |
_setRead ($a_user_id, $a_news_id) | |
Set item read. | |
_setUnread ($a_user_id, $a_news_id) | |
Set item unread. | |
mergeNews ($n1, $n2) | |
Merges two sets of news. | |
delete () | |
Delete news item. | |
_lookupDefaultPDPeriod () | |
_lookupUserPDPeriod ($a_user_id) | |
_lookupRSSPeriod () | |
setPrivateFeedId ($a_userId) | |
getPrivateFeedId () | |
Public Member Functions inherited from ilNewsItemGen | |
setId ($a_id) | |
Set Id. | |
getId () | |
Get Id. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setContent ($a_content) | |
Set Content. | |
getContent () | |
Get Content. | |
setContextObjId ($a_context_obj_id) | |
Set ContextObjId. | |
getContextObjId () | |
Get ContextObjId. | |
setContextObjType ($a_context_obj_type) | |
Set ContextObjType. | |
getContextObjType () | |
Get ContextObjType. | |
setContextSubObjId ($a_context_sub_obj_id) | |
Set ContextSubObjId. | |
getContextSubObjId () | |
Get ContextSubObjId. | |
setContextSubObjType ($a_context_sub_obj_type) | |
Set ContextSubObjType. | |
getContextSubObjType () | |
Get ContextSubObjType. | |
setContentType ($a_content_type="text") | |
Set ContentType. | |
getContentType () | |
Get ContentType. | |
setCreationDate ($a_creation_date) | |
Set CreationDate. | |
getCreationDate () | |
Get CreationDate. | |
setUpdateDate ($a_update_date) | |
Set UpdateDate. | |
getUpdateDate () | |
Get UpdateDate. | |
setUserId ($a_user_id) | |
Set UserId. | |
getUserId () | |
Get UserId. | |
setVisibility ($a_visibility="users") | |
Set Visibility. | |
getVisibility () | |
Get Visibility. | |
setContentLong ($a_content_long) | |
Set ContentLong. | |
getContentLong () | |
Get ContentLong. | |
setPriority ($a_priority=1) | |
Set Priority. | |
getPriority () | |
Get Priority. | |
setContentIsLangVar ($a_content_is_lang_var=0) | |
Set ContentIsLangVar. | |
getContentIsLangVar () | |
Get ContentIsLangVar. | |
setMobId ($a_mob_id) | |
Set MobId. | |
getMobId () | |
Get MobId. | |
setPlaytime ($a_playtime) | |
Set Playtime. | |
getPlaytime () | |
Get Playtime. | |
read () | |
Read item from database. | |
update () | |
Update item in database. | |
queryNewsForContext () | |
Query NewsForContext. | |
queryNewsForVisibility () | |
Query NewsForVisibility. |
Static Public Member Functions | |
static | _getNewsItemsOfUser ($a_user_id, $a_only_public=false, $a_prevent_aggregation=false, $a_per=0, &$a_cnt=NULL) |
Get all news items for a user. | |
static | _getDefaultVisibilityForRefId ($a_ref_id) |
Get default visibility for reference id. | |
static | deleteNewsOfContext ($a_context_obj_id, $a_context_obj_type, $a_context_sub_obj_id=0, $a_context_sub_obj_type="") |
Delete all news of a context. | |
static | _lookupTitle ($a_news_id) |
Lookup News Title. | |
static | _lookupVisibility ($a_news_id) |
Lookup News Visibility. | |
static | _lookupMobId ($a_news_id) |
Lookup mob id. | |
static | filterObjIdsPerNews ($a_obj_ids, $a_time_period=0, $a_starting_date="", $a_ending_date= '', $ignore_period=false) |
Checks whether news are available for. | |
static | determineNewsTitle ($a_context_obj_type, $a_title, $a_content_is_lang_var, $a_agg_ref_id=0, $a_aggregation="") |
Determine title for news item entry. | |
static | getFirstNewsIdForContext ($a_context_obj_id, $a_context_obj_type, $a_context_sub_obj_id="", $a_context_sub_obj_type="") |
Get first new id of news set related to a certain context. | |
static | _lookupMediaObjectUsages ($a_mob_id) |
Lookup media object usage(s) | |
static | _lookupContextObjId ($a_news_id) |
Context Object ID. |
Private Attributes | |
$limitation |
Static Private Attributes | |
static | $privFeedId = false |
Additional Inherited Members | |
Protected Attributes inherited from ilNewsItemGen | |
$id | |
$title | |
$content | |
$context_obj_id | |
$context_obj_type | |
$context_sub_obj_id | |
$context_sub_obj_type | |
$content_type = "text" | |
$creation_date | |
$update_date | |
$user_id | |
$visibility = "users" | |
$content_long | |
$priority = 1 | |
$content_is_lang_var = 0 | |
$mob_id | |
$playtime |
Definition at line 21 of file class.ilNewsItem.php.
ilNewsItem::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Reimplemented from ilNewsItemGen.
Definition at line 32 of file class.ilNewsItem.php.
|
static |
Get default visibility for reference id.
$a_ref_id | reference id |
Definition at line 694 of file class.ilNewsItem.php.
References $ilSetting, $path, $row, ilNewsItemGen\$visibility, and ilBlockSetting\_lookup().
Referenced by ilObjFile\createProperties(), ilNewsItemGUI\initFormNewsItem(), and ilNewsForContextBlockGUI\initSettingsForm().
|
static |
Get all news items for a user.
Definition at line 116 of file class.ilNewsItem.php.
References $data, $ref_id, ilNewsSubscription\_getSubscriptionsOfUser(), ilObjUser\_lookupDesktopItems(), ilObject\_lookupObjId(), ilObjUser\_lookupPref(), ilObject\_lookupType(), getPrivateFeedId(), mergeNews(), and ilUtil\sortArray().
Referenced by ilPDNewsBlockGUI\getNewsData(), and ilUserFeedWriter\ilUserFeedWriter().
|
static |
Definition at line 977 of file class.ilNewsItem.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
ilNewsItem::_lookupDefaultPDPeriod | ( | ) |
Definition at line 991 of file class.ilNewsItem.php.
Referenced by _lookupUserPDPeriod(), ilObjNewsSettingsGUI\editSettings(), ilPDNewsBlockGUI\editSettings(), and ilPDNewsTableGUI\initFilter().
|
static |
Lookup media object usage(s)
Definition at line 955 of file class.ilNewsItem.php.
Referenced by ilObjMediaObject\lookupUsages().
|
static |
Lookup mob id.
Definition at line 824 of file class.ilNewsItem.php.
Referenced by ilNewsExporter\getXmlExportHeadDependencies().
ilNewsItem::_lookupRSSPeriod | ( | ) |
Definition at line 1028 of file class.ilNewsItem.php.
Referenced by ilObjNewsSettingsGUI\editSettings(), ilObjectFeedWriter\ilObjectFeedWriter(), and ilUserFeedWriter\ilUserFeedWriter().
|
static |
Lookup News Title.
Definition at line 795 of file class.ilNewsItem.php.
Referenced by ilShopResultPresentationGUI\__appendChildLinks().
ilNewsItem::_lookupUserPDPeriod | ( | $a_user_id | ) |
Definition at line 1003 of file class.ilNewsItem.php.
References $ilSetting, ilBlockSetting\_lookup(), and _lookupDefaultPDPeriod().
Referenced by ilPDNewsBlockGUI\editSettings(), ilPDNewsBlockGUI\getHTML(), ilPDNewsBlockGUI\getNewsData(), ilPDNewsTableGUI\initFilter(), and ilPDNewsGUI\view().
|
static |
Lookup News Visibility.
Definition at line 809 of file class.ilNewsItem.php.
Referenced by ilWebAccessChecker\checkAccess().
ilNewsItem::_setRead | ( | $a_user_id, | |
$a_news_id | |||
) |
Set item read.
Definition at line 641 of file class.ilNewsItem.php.
References $ilDB.
Referenced by ilNewsForContextBlockGUI\showNews().
ilNewsItem::_setUnread | ( | $a_user_id, | |
$a_news_id | |||
) |
Set item unread.
Definition at line 659 of file class.ilNewsItem.php.
References $ilDB.
ilNewsItem::aggregateFiles | ( | $news, | |
$a_ref_id | |||
) |
Definition at line 343 of file class.ilNewsItem.php.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
ilNewsItem::create | ( | ) |
Create.
Reimplemented from ilNewsItemGen.
Definition at line 62 of file class.ilNewsItem.php.
References $ilDB, $query, ilNewsItemGen\getContextObjId(), ilNewsItemGen\getContextObjType(), ilNewsItemGen\getContextSubObjId(), ilNewsItemGen\getContextSubObjType(), and getLimitation().
ilNewsItem::delete | ( | ) |
Delete news item.
Reimplemented from ilNewsItemGen.
Definition at line 734 of file class.ilNewsItem.php.
References $ilDB, ilObject\_exists(), and ilNewsItemGen\getMobId().
|
static |
Delete all news of a context.
Definition at line 761 of file class.ilNewsItem.php.
Referenced by ilPageObject\delete().
|
static |
Determine title for news item entry.
Definition at line 871 of file class.ilNewsItem.php.
References $lng.
Referenced by ilNewsForContextBlockGUI\fillRow(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), and ilNewsForContextBlockGUI\showNews().
|
static |
Checks whether news are available for.
Definition at line 838 of file class.ilNewsItem.php.
Referenced by getAggregatedChildNewsData(), getAggregatedNewsData(), and ilPDNewsGUI\view().
ilNewsItem::getAggregatedChildNewsData | ( | $a_ref_id, | |
$a_only_public = false , |
|||
$a_time_period = 0 , |
|||
$a_prevent_aggregation = false , |
|||
$a_starting_date = "" , |
|||
$a_no_auto_generated = false |
|||
) |
Get news aggregation for child objects (e.g.
for categories)
Definition at line 378 of file class.ilNewsItem.php.
References $data, $ref_id, aggregateFiles(), filterObjIdsPerNews(), getNewsForRefId(), mergeNews(), queryNewsForMultipleContexts(), and ilUtil\sortArray().
Referenced by getNewsForRefId().
ilNewsItem::getAggregatedNewsData | ( | $a_ref_id, | |
$a_only_public = false , |
|||
$a_time_period = 0 , |
|||
$a_prevent_aggregation = false , |
|||
$a_starting_date = "" , |
|||
$a_no_auto_generated = false |
|||
) |
Get news aggregation (e.g.
for courses, groups)
Definition at line 257 of file class.ilNewsItem.php.
References $data, $ref_id, aggregateFiles(), filterObjIdsPerNews(), mergeNews(), queryNewsForMultipleContexts(), and ilUtil\sortArray().
Referenced by getNewsForRefId().
|
static |
Get first new id of news set related to a certain context.
Definition at line 932 of file class.ilNewsItem.php.
ilNewsItem::getLimitation | ( | ) |
Get Limitation for number of items.
Definition at line 54 of file class.ilNewsItem.php.
References $limitation.
Referenced by create().
ilNewsItem::getNewsForRefId | ( | $a_ref_id, | |
$a_only_public = false , |
|||
$a_stopnesting = false , |
|||
$a_time_period = 0 , |
|||
$a_prevent_aggregation = true , |
|||
$a_forum_group_sequences = false , |
|||
$a_no_auto_generated = false , |
|||
$a_ignore_date_filter = false |
|||
) |
Get News For Ref Id.
Definition at line 191 of file class.ilNewsItem.php.
References ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupType(), getAggregatedChildNewsData(), getAggregatedNewsData(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData().
ilNewsItem::getPrivateFeedId | ( | ) |
Definition at line 1043 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by _getNewsItemsOfUser(), queryNewsForContext(), and queryNewsForMultipleContexts().
ilNewsItem::mergeNews | ( | $n1, | |
$n2 | |||
) |
Merges two sets of news.
array | $n1 | Array of news |
array | $n2 | Array of news |
Definition at line 679 of file class.ilNewsItem.php.
References ilNewsItemGen\$id.
Referenced by _getNewsItemsOfUser(), getAggregatedChildNewsData(), and getAggregatedNewsData().
ilNewsItem::queryNewsForContext | ( | $a_for_rss_use = false , |
|
$a_time_period = 0 , |
|||
$a_starting_date = "" , |
|||
$a_no_auto_generated = false , |
|||
$a_oldest_first = false |
|||
) |
Query news for a context.
boolean | query for outgoing rss feed |
int | time period in seconds |
string | startind date |
boolean | do not include auto generated news items |
Definition at line 461 of file class.ilNewsItem.php.
References $ilDB, $lng, $query, ilBlockSetting\_lookup(), ilNewsItemGen\getContextObjId(), ilNewsItemGen\getContextObjType(), ilNewsItemGen\getContextSubObjId(), ilNewsItemGen\getContextSubObjType(), getPrivateFeedId(), and NEWS_PUBLIC.
ilNewsItem::queryNewsForMultipleContexts | ( | $a_contexts, | |
$a_for_rss_use = false , |
|||
$a_time_period = 0 , |
|||
$a_starting_date = "" , |
|||
$a_no_auto_generated = false |
|||
) |
Query News for multiple Contexts.
array | $a_contexts | array of array("obj_id", "obj_type") |
Definition at line 553 of file class.ilNewsItem.php.
References $ilCtrl, $ilDB, $lng, $query, $type, ilBlockSetting\_lookup(), getPrivateFeedId(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
ilNewsItem::setContext | ( | $a_obj_id, | |
$a_obj_type, | |||
$a_sub_obj_id = 0 , |
|||
$a_sub_obj_type = "" |
|||
) |
Convenient function to set the whole context information.
Definition at line 445 of file class.ilNewsItem.php.
References ilNewsItemGen\setContextObjId(), ilNewsItemGen\setContextObjType(), ilNewsItemGen\setContextSubObjId(), and ilNewsItemGen\setContextSubObjType().
ilNewsItem::setLimitation | ( | $a_limitation | ) |
Set Limitation for number of items.
boolean | $a_limitation | Limitation for number of items |
Definition at line 44 of file class.ilNewsItem.php.
ilNewsItem::setPrivateFeedId | ( | $a_userId | ) |
Definition at line 1038 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by ilObjectFeedWriter\ilObjectFeedWriter(), and ilUserFeedWriter\ilUserFeedWriter().
|
private |
Definition at line 25 of file class.ilNewsItem.php.
Referenced by getLimitation().
|
staticprivate |
Definition at line 24 of file class.ilNewsItem.php.
Referenced by getPrivateFeedId(), and setPrivateFeedId().