|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Inheritance diagram for ilNewsItem:
Collaboration diagram for ilNewsItem:Public Member Functions | |
| __construct ($a_id=0) | |
| Constructor. More... | |
| setLimitation ($a_limitation) | |
| Set Limitation for number of items. More... | |
| getLimitation () | |
| Get Limitation for number of items. More... | |
| setContentTextIsLangVar ($a_val=0) | |
| Set content text ist lang var. More... | |
| getContentTextIsLangVar () | |
| Get content text ist lang var. More... | |
| setMobPlayCounter ($a_val) | |
| Set mob play counter. More... | |
| getMobPlayCounter () | |
| Get mob play counter. More... | |
| setMobDownloadCounter ($a_val) | |
| Set mob download counter. More... | |
| getMobDownloadCounter () | |
| Get mob download counter. More... | |
| read () | |
| Read item from database. More... | |
| create () | |
| Create. More... | |
| update ($a_as_new=false) | |
| Update item in database. More... | |
| 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, $a_user_id=null) | |
| Get News For Ref Id. More... | |
| getAggregatedNewsData ($a_ref_id, $a_only_public=false, $a_time_period=0, $a_prevent_aggregation=false, $a_starting_date="", $a_no_auto_generated=false, $a_user_id=null) | |
| Get news aggregation (e.g. More... | |
| aggregateForums ($news, $a_group_posting_sequence=false) | |
| 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. More... | |
| setContext ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
| Convenient function to set the whole context information. More... | |
| queryNewsForContext ($a_for_rss_use=false, $a_time_period=0, $a_starting_date="", $a_no_auto_generated=false, $a_oldest_first=false, $a_limit=0) | |
| checkNewsExistsForGroupCourse ($a_ref_id, $a_time_period=1) | |
| queryNewsForMultipleContexts ($a_contexts, $a_for_rss_use=false, $a_time_period=0, $a_starting_date="", $a_no_auto_generated=false, $a_user_id=null) | |
| Query News for multiple Contexts. More... | |
| _setRead ($a_user_id, $a_news_id) | |
| Set item read. More... | |
| _setUnread ($a_user_id, $a_news_id) | |
| Set item unread. More... | |
| mergeNews ($n1, $n2) | |
| Merges two sets of news. More... | |
| delete () | |
| Delete news item. More... | |
| _lookupDefaultPDPeriod () | |
| _lookupUserPDPeriod ($a_user_id) | |
| _lookupRSSPeriod () | |
| setPrivateFeedId ($a_userId) | |
| getPrivateFeedId () | |
| deliverMobFile ($a_purpose="Standard", $a_increase_download_cnt=false) | |
| Deliver mob file. More... | |
| increaseDownloadCounter () | |
| Increase download counter. More... | |
| increasePlayCounter () | |
| Increase play counter. More... | |
Public Member Functions inherited from ilNewsItemGen | |
| __construct ($a_id=0) | |
| Constructor. More... | |
| setId ($a_id) | |
| Set Id. More... | |
| getId () | |
| Get Id. More... | |
| setTitle ($a_title) | |
| Set Title. More... | |
| getTitle () | |
| Get Title. More... | |
| setContent ($a_content) | |
| Set Content. More... | |
| getContent () | |
| Get Content. More... | |
| setContextObjId ($a_context_obj_id) | |
| Set ContextObjId. More... | |
| getContextObjId () | |
| Get ContextObjId. More... | |
| setContextObjType ($a_context_obj_type) | |
| Set ContextObjType. More... | |
| getContextObjType () | |
| Get ContextObjType. More... | |
| setContextSubObjId ($a_context_sub_obj_id) | |
| Set ContextSubObjId. More... | |
| getContextSubObjId () | |
| Get ContextSubObjId. More... | |
| setContextSubObjType ($a_context_sub_obj_type) | |
| Set ContextSubObjType. More... | |
| getContextSubObjType () | |
| Get ContextSubObjType. More... | |
| setContentType ($a_content_type="text") | |
| Set ContentType. More... | |
| getContentType () | |
| Get ContentType. More... | |
| setCreationDate ($a_creation_date) | |
| Set CreationDate. More... | |
| getCreationDate () | |
| Get CreationDate. More... | |
| setUpdateDate ($a_update_date) | |
| Set UpdateDate. More... | |
| getUpdateDate () | |
| Get UpdateDate. More... | |
| setUserId ($a_user_id) | |
| Set UserId. More... | |
| getUserId () | |
| Get UserId. More... | |
| setVisibility ($a_visibility="users") | |
| Set Visibility. More... | |
| getVisibility () | |
| Get Visibility. More... | |
| setContentLong ($a_content_long) | |
| Set ContentLong. More... | |
| getContentLong () | |
| Get ContentLong. More... | |
| setPriority ($a_priority=1) | |
| Set Priority. More... | |
| getPriority () | |
| Get Priority. More... | |
| setContentIsLangVar ($a_content_is_lang_var=0) | |
| Set ContentIsLangVar. More... | |
| getContentIsLangVar () | |
| Get ContentIsLangVar. More... | |
| setMobId ($a_mob_id) | |
| Set MobId. More... | |
| getMobId () | |
| Get MobId. More... | |
| setPlaytime ($a_playtime) | |
| Set Playtime. More... | |
| getPlaytime () | |
| Get Playtime. More... | |
| create () | |
| Create new item. More... | |
| delete () | |
| Delete item from database. More... | |
| queryNewsForContext () | |
| Query NewsForContext. More... | |
| queryNewsForVisibility () | |
| Query NewsForVisibility. More... | |
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. More... | |
| static | _getDefaultVisibilityForRefId ($a_ref_id) |
| Get default visibility for reference id. More... | |
| 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. More... | |
| static | _lookupTitle ($a_news_id) |
| Lookup News Title. More... | |
| static | _lookupVisibility ($a_news_id) |
| Lookup News Visibility. More... | |
| static | _lookupMobId ($a_news_id) |
| Lookup mob id. More... | |
| static | filterObjIdsPerNews ($a_obj_ids, $a_time_period=0, $a_starting_date="", $a_ending_date='', $ignore_period=false) |
| Checks whether news are available for. More... | |
| 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. More... | |
| static | determineNewsContent ($a_context_obj_type, $a_content, $a_is_lang_var) |
| Determine new content. More... | |
| 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. More... | |
| static | getLastNewsIdForContext ($a_context_obj_id, $a_context_obj_type, $a_context_sub_obj_id="", $a_context_sub_obj_type="", $a_only_today=false) |
| Get last news id of news set related to a certain context. More... | |
| static | _lookupMediaObjectUsages ($a_mob_id) |
| Lookup media object usage(s) More... | |
| static | _lookupContextObjId ($a_news_id) |
| Context Object ID. More... | |
| static | prepareNewsDataFromCache ($a_cres) |
| Prepare news data from cache. More... | |
Static Protected Member Functions | |
| static | handleTimePeriod ($a_time_period) |
| Convert time period for DB-queries. More... | |
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 22 of file class.ilNewsItem.php.
| ilNewsItem::__construct | ( | $a_id = 0 | ) |
Constructor.
| int | $a_id |
Reimplemented from ilNewsItemGen.
Definition at line 33 of file class.ilNewsItem.php.
|
static |
Get default visibility for reference id.
| $a_ref_id | reference id |
Definition at line 1057 of file class.ilNewsItem.php.
References $ilSetting, $path, $row, ilNewsItemGen\$visibility, and ilBlockSetting\_lookup().
Referenced by ilObjFile\createProperties(), ilObjForum\createSettings(), ilNewsItemGUI\initFormNewsItem(), and ilNewsForContextBlockGUI\initSettingsForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get all news items for a user.
Definition at line 280 of file class.ilNewsItem.php.
References $data, $ref_id, ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), ilNewsSubscription\_getSubscriptionsOfUser(), ilObjUser\_lookupDesktopItems(), ilObject\_lookupObjId(), ilObjUser\_lookupPref(), ilObject\_lookupType(), getPrivateFeedId(), mergeNews(), and ilUtil\sortArray().
Referenced by ilPDNewsBlockGUI\getNewsData(), and ilUserFeedWriter\ilUserFeedWriter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1411 of file class.ilNewsItem.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
Here is the caller graph for this function:| ilNewsItem::_lookupDefaultPDPeriod | ( | ) |
Definition at line 1425 of file class.ilNewsItem.php.
Referenced by _lookupUserPDPeriod(), ilObjNewsSettingsGUI\editSettings(), ilPDNewsBlockGUI\editSettings(), and ilPDNewsTableGUI\initFilter().
Here is the caller graph for this function:
|
static |
Lookup media object usage(s)
Definition at line 1389 of file class.ilNewsItem.php.
Referenced by ilObjMediaObject\lookupUsages().
Here is the caller graph for this function:
|
static |
Lookup mob id.
Definition at line 1187 of file class.ilNewsItem.php.
Referenced by ilNewsExporter\getXmlExportHeadDependencies().
Here is the caller graph for this function:| ilNewsItem::_lookupRSSPeriod | ( | ) |
Definition at line 1462 of file class.ilNewsItem.php.
Referenced by ilObjNewsSettingsGUI\editSettings(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), and ilObjMediaCastGUI\initSettingsForm().
Here is the caller graph for this function:
|
static |
Lookup News Title.
Definition at line 1158 of file class.ilNewsItem.php.
| ilNewsItem::_lookupUserPDPeriod | ( | $a_user_id | ) |
Definition at line 1437 of file class.ilNewsItem.php.
References $ilSetting, ilBlockSetting\_lookup(), and _lookupDefaultPDPeriod().
Referenced by ilPDNewsBlockGUI\editSettings(), ilPDNewsBlockGUI\getHTML(), ilPDNewsBlockGUI\getNewsData(), ilPDNewsTableGUI\initFilter(), and ilPDNewsGUI\view().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookup News Visibility.
Definition at line 1172 of file class.ilNewsItem.php.
| ilNewsItem::_setRead | ( | $a_user_id, | |
| $a_news_id | |||
| ) |
Set item read.
Definition at line 995 of file class.ilNewsItem.php.
References $ilDB.
Referenced by ilNewsForContextBlockGUI\showNews().
Here is the caller graph for this function:| ilNewsItem::_setUnread | ( | $a_user_id, | |
| $a_news_id | |||
| ) |
Set item unread.
Definition at line 1022 of file class.ilNewsItem.php.
References $ilDB.
| ilNewsItem::aggregateFiles | ( | $news, | |
| $a_ref_id | |||
| ) |
Definition at line 598 of file class.ilNewsItem.php.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
Here is the caller graph for this function:| ilNewsItem::aggregateForums | ( | $news, | |
$a_group_posting_sequence = false |
|||
| ) |
Definition at line 548 of file class.ilNewsItem.php.
Referenced by getNewsForRefId().
Here is the caller graph for this function:| ilNewsItem::checkNewsExistsForGroupCourse | ( | $a_ref_id, | |
$a_time_period = 1 |
|||
| ) |
| int | $a_ref_id | |
| int | $a_time_period | hours |
Definition at line 855 of file class.ilNewsItem.php.
References $ilDB, $query, and handleTimePeriod().
Here is the call graph for this function:| ilNewsItem::create | ( | ) |
Create.
Reimplemented from ilNewsItemGen.
Definition at line 157 of file class.ilNewsItem.php.
References $ilDB, $query, ilNewsItemGen\getContent(), ilNewsItemGen\getContentIsLangVar(), ilNewsItemGen\getContentLong(), getContentTextIsLangVar(), ilNewsItemGen\getContentType(), ilNewsItemGen\getContextObjId(), ilNewsItemGen\getContextObjType(), ilNewsItemGen\getContextSubObjId(), ilNewsItemGen\getContextSubObjType(), ilNewsItemGen\getId(), getLimitation(), ilNewsItemGen\getMobId(), ilNewsItemGen\getPlaytime(), ilNewsItemGen\getPriority(), ilNewsItemGen\getTitle(), ilNewsItemGen\getUserId(), ilNewsItemGen\getVisibility(), ilUtil\now(), and ilNewsItemGen\setId().
Here is the call graph for this function:| ilNewsItem::delete | ( | ) |
Delete news item.
Reimplemented from ilNewsItemGen.
Definition at line 1097 of file class.ilNewsItem.php.
References $ilDB, ilObject\_exists(), and ilNewsItemGen\getMobId().
Here is the call graph for this function:
|
static |
Delete all news of a context.
Definition at line 1124 of file class.ilNewsItem.php.
Referenced by ilPageObject\delete().
Here is the caller graph for this function:| ilNewsItem::deliverMobFile | ( | $a_purpose = "Standard", |
|
$a_increase_download_cnt = false |
|||
| ) |
Deliver mob file.
return
Definition at line 1488 of file class.ilNewsItem.php.
References $file, ilObjMediaObject\_getDirectory(), ilUtil\deliverFile(), ilNewsItemGen\getMobId(), increaseDownloadCounter(), ilUtil\redirect(), and ilUtil\sendFailure().
Here is the call graph for this function:
|
static |
Determine new content.
Definition at line 1309 of file class.ilNewsItem.php.
References $lng.
Referenced by ilPDNewsTableGUI\fillRow(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), ilMembershipCronNotifications\parseNewsItem(), and ilNewsForContextBlockGUI\showNews().
Here is the caller graph for this function:
|
static |
Determine title for news item entry.
Definition at line 1234 of file class.ilNewsItem.php.
References $lng.
Referenced by ilNewsForContextBlockGUI\fillRow(), ilObjectFeedWriter\ilObjectFeedWriter(), ilUserFeedWriter\ilUserFeedWriter(), ilMembershipCronNotifications\parseNewsItem(), and ilNewsForContextBlockGUI\showNews().
Here is the caller graph for this function:
|
static |
Checks whether news are available for.
Definition at line 1201 of file class.ilNewsItem.php.
References $ilDB, $query, and handleTimePeriod().
Referenced by getAggregatedChildNewsData(), getAggregatedNewsData(), and ilPDNewsGUI\view().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 633 of file class.ilNewsItem.php.
References $data, $ref_id, aggregateFiles(), filterObjIdsPerNews(), getNewsForRefId(), mergeNews(), queryNewsForMultipleContexts(), and ilUtil\sortArray().
Referenced by getNewsForRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, |
|||
$a_user_id = null |
|||
| ) |
Get news aggregation (e.g.
for courses, groups)
Definition at line 452 of file class.ilNewsItem.php.
References $data, $ref_id, aggregateFiles(), filterObjIdsPerNews(), mergeNews(), ilObjectActivation\preloadData(), queryNewsForMultipleContexts(), and ilUtil\sortArray().
Referenced by getNewsForRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItem::getContentTextIsLangVar | ( | ) |
Get content text ist lang var.
Definition at line 75 of file class.ilNewsItem.php.
Referenced by create(), and update().
Here is the caller graph for this function:
|
static |
Get first new id of news set related to a certain context.
Definition at line 1329 of file class.ilNewsItem.php.
Referenced by ilForum\deletePost(), ilForumTopic\movePosts(), and ilForum\postCensorship().
Here is the caller graph for this function:
|
static |
Get last news id of news set related to a certain context.
Definition at line 1352 of file class.ilNewsItem.php.
References ilNewsItemGen\$id, $ilDB, $query, and ilUtil\now().
Referenced by ilWikiPage\updateNews().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItem::getLimitation | ( | ) |
Get Limitation for number of items.
Definition at line 55 of file class.ilNewsItem.php.
References $limitation.
Referenced by create().
Here is the caller graph for this function:| ilNewsItem::getMobDownloadCounter | ( | ) |
Get mob download counter.
Definition at line 115 of file class.ilNewsItem.php.
Referenced by increaseDownloadCounter(), and update().
Here is the caller graph for this function:| ilNewsItem::getMobPlayCounter | ( | ) |
Get mob play counter.
Definition at line 95 of file class.ilNewsItem.php.
Referenced by increasePlayCounter(), and update().
Here is the caller graph for this function:| 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, |
|||
$a_user_id = null |
|||
| ) |
Get News For Ref Id.
$a_user_id does only work for groups and courses so far
Definition at line 377 of file class.ilNewsItem.php.
References ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupType(), aggregateForums(), getAggregatedChildNewsData(), getAggregatedNewsData(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItem::getPrivateFeedId | ( | ) |
Definition at line 1477 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by _getNewsItemsOfUser(), queryNewsForContext(), and queryNewsForMultipleContexts().
Here is the caller graph for this function:
|
staticprotected |
Convert time period for DB-queries.
| mixed | $a_time_period |
Definition at line 714 of file class.ilNewsItem.php.
Referenced by checkNewsExistsForGroupCourse(), filterObjIdsPerNews(), queryNewsForContext(), and queryNewsForMultipleContexts().
Here is the caller graph for this function:| ilNewsItem::increaseDownloadCounter | ( | ) |
Increase download counter.
return
Definition at line 1536 of file class.ilNewsItem.php.
References $ilDB, getMobDownloadCounter(), and setMobDownloadCounter().
Referenced by deliverMobFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItem::increasePlayCounter | ( | ) |
Increase play counter.
return
Definition at line 1555 of file class.ilNewsItem.php.
References $ilDB, getMobPlayCounter(), and setMobPlayCounter().
Here is the call graph for this function:| ilNewsItem::mergeNews | ( | $n1, | |
| $n2 | |||
| ) |
Merges two sets of news.
| array | $n1 | Array of news |
| array | $n2 | Array of news |
Definition at line 1042 of file class.ilNewsItem.php.
References ilNewsItemGen\$id.
Referenced by _getNewsItemsOfUser(), getAggregatedChildNewsData(), and getAggregatedNewsData().
Here is the caller graph for this function:
|
static |
Prepare news data from cache.
| string | $a_cres | cache string |
Definition at line 1574 of file class.ilNewsItem.php.
Referenced by ilNewsForContextBlockGUI\ilNewsForContextBlockGUI(), and ilPDNewsBlockGUI\ilPDNewsBlockGUI().
Here is the caller graph for this function:| ilNewsItem::queryNewsForContext | ( | $a_for_rss_use = false, |
|
$a_time_period = 0, |
|||
$a_starting_date = "", |
|||
$a_no_auto_generated = false, |
|||
$a_oldest_first = false, |
|||
$a_limit = 0 |
|||
| ) |
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 740 of file class.ilNewsItem.php.
References $ilDB, $ilUser, $lng, $query, $result, ilBlockSetting\_lookup(), ilNewsItemGen\getContextObjId(), ilNewsItemGen\getContextObjType(), ilNewsItemGen\getContextSubObjId(), ilNewsItemGen\getContextSubObjType(), getPrivateFeedId(), handleTimePeriod(), NEWS_PUBLIC, and ilNewsItemGen\queryNewsForContext().
Here is the call graph for this function:| ilNewsItem::queryNewsForMultipleContexts | ( | $a_contexts, | |
$a_for_rss_use = false, |
|||
$a_time_period = 0, |
|||
$a_starting_date = "", |
|||
$a_no_auto_generated = false, |
|||
$a_user_id = null |
|||
| ) |
Query News for multiple Contexts.
| array | $a_contexts | array of array("obj_id", "obj_type") |
Definition at line 898 of file class.ilNewsItem.php.
References $ilCtrl, $ilDB, $ilUser, $lng, $query, $result, ilNewsItemGen\$user_id, ilBlockSetting\_lookup(), getPrivateFeedId(), handleTimePeriod(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNewsItem::read | ( | ) |
Read item from database.
Definition at line 123 of file class.ilNewsItem.php.
References $ilDB, $query, ilNewsItemGen\getId(), ilNewsItemGen\setContent(), ilNewsItemGen\setContentIsLangVar(), ilNewsItemGen\setContentLong(), setContentTextIsLangVar(), ilNewsItemGen\setContentType(), ilNewsItemGen\setContextObjId(), ilNewsItemGen\setContextObjType(), ilNewsItemGen\setContextSubObjId(), ilNewsItemGen\setContextSubObjType(), ilNewsItemGen\setCreationDate(), setMobDownloadCounter(), ilNewsItemGen\setMobId(), setMobPlayCounter(), ilNewsItemGen\setPlaytime(), ilNewsItemGen\setPriority(), ilNewsItemGen\setTitle(), ilNewsItemGen\setUpdateDate(), ilNewsItemGen\setUserId(), and ilNewsItemGen\setVisibility().
Here is the call graph for this function:| ilNewsItem::setContentTextIsLangVar | ( | $a_val = 0 | ) |
Set content text ist lang var.
| boolean | $a_content_is_lang_var |
Definition at line 65 of file class.ilNewsItem.php.
Referenced by read().
Here is the caller graph for this function:| 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 700 of file class.ilNewsItem.php.
References ilNewsItemGen\setContextObjId(), ilNewsItemGen\setContextObjType(), ilNewsItemGen\setContextSubObjId(), and ilNewsItemGen\setContextSubObjType().
Here is the call graph for this function:| ilNewsItem::setLimitation | ( | $a_limitation | ) |
Set Limitation for number of items.
| boolean | $a_limitation | Limitation for number of items |
Definition at line 45 of file class.ilNewsItem.php.
| ilNewsItem::setMobDownloadCounter | ( | $a_val | ) |
Set mob download counter.
| int | $a_val | counter |
Definition at line 105 of file class.ilNewsItem.php.
Referenced by increaseDownloadCounter(), and read().
Here is the caller graph for this function:| ilNewsItem::setMobPlayCounter | ( | $a_val | ) |
Set mob play counter.
| int | $a_val | counter |
Definition at line 85 of file class.ilNewsItem.php.
Referenced by increasePlayCounter(), and read().
Here is the caller graph for this function:| ilNewsItem::setPrivateFeedId | ( | $a_userId | ) |
Definition at line 1472 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by ilObjectFeedWriter\ilObjectFeedWriter().
Here is the caller graph for this function:| ilNewsItem::update | ( | $a_as_new = false | ) |
Update item in database.
| boolean | $a_as_new | If true, creation date is set "now" |
Definition at line 235 of file class.ilNewsItem.php.
References $ilDB, ilNewsItemGen\getContent(), ilNewsItemGen\getContentIsLangVar(), ilNewsItemGen\getContentLong(), getContentTextIsLangVar(), ilNewsItemGen\getContentType(), ilNewsItemGen\getContextObjId(), ilNewsItemGen\getContextObjType(), ilNewsItemGen\getContextSubObjId(), ilNewsItemGen\getContextSubObjType(), ilNewsItemGen\getId(), getMobDownloadCounter(), ilNewsItemGen\getMobId(), getMobPlayCounter(), ilNewsItemGen\getPlaytime(), ilNewsItemGen\getPriority(), ilNewsItemGen\getTitle(), ilNewsItemGen\getUserId(), ilNewsItemGen\getVisibility(), and ilUtil\now().
Here is the call graph for this function:
|
private |
Definition at line 26 of file class.ilNewsItem.php.
Referenced by getLimitation().
|
staticprivate |
Definition at line 25 of file class.ilNewsItem.php.
Referenced by getPrivateFeedId(), and setPrivateFeedId().