ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__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... | |
setUpdateUserId ($a_val) | |
Set update user id. More... | |
getUpdateUserId () | |
Get update user id. 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... | |
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... | |
setContentHtml ($a_val) | |
Is content HTML (tiny used?) More... | |
getContentHtml () | |
Get content as html. 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, $a_limit=0, $a_excluded=array()) | |
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, $a_limit=0, $a_exclude=array()) | |
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) | |
Query news for a context. More... | |
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, $a_limit=0, $a_exclude=array()) | |
Query News for multiple Contexts. More... | |
delete () | |
Delete news item. More... | |
deliverMobFile ($a_purpose="Standard", $a_increase_download_cnt=false) | |
Deliver mob file. More... | |
increaseDownloadCounter () | |
Increase download counter. More... | |
increasePlayCounter () | |
Increase play counter. 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 | _setRead ($a_user_id, $a_news_id) |
Set item read. More... | |
static | _setUnread ($a_user_id, $a_news_id) |
Set item unread. More... | |
static | mergeNews ($n1, $n2) |
Merges two sets of news. 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 | _lookupDefaultPDPeriod () |
static | _lookupUserPDPeriod ($a_user_id) |
static | _lookupRSSPeriod () |
static | setPrivateFeedId ($a_userId) |
static | getPrivateFeedId () |
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... | |
Protected Attributes | |
$db | |
$tree | |
$access | |
$obj_data_cache | |
$user | |
$lng | |
$ctrl | |
$id | |
$title | |
$content | |
$content_html | |
$context_obj_id | |
$context_obj_type | |
$context_sub_obj_id | |
$context_sub_obj_type | |
$content_type = "text" | |
$creation_date | |
$update_date | |
$user_id | |
$update_user_id | |
$visibility = "users" | |
$content_long | |
$priority = 1 | |
$content_is_lang_var = 0 | |
$mob_id | |
$playtime | |
Private Attributes | |
$limitation | |
Static Private Attributes | |
static | $privFeedId = false |
Definition at line 28 of file class.ilNewsItem.php.
ilNewsItem::__construct | ( | $a_id = 0 | ) |
|
static |
Get default visibility for reference id.
$a_ref_id | reference id |
Definition at line 1583 of file class.ilNewsItem.php.
References $DIC, $ilSetting, $key, $path, $row, $tree, $visibility, ilBlockSetting\_lookup(), and array.
Referenced by ilObjFile\createProperties(), ilObjForum\createSettings(), ilNewsItemGUI\getEditForm(), and ilNewsForContextBlockGUI\initSettingsForm().
|
static |
Get all news items for a user.
Definition at line 735 of file class.ilNewsItem.php.
References $data, $DIC, $i, ilObject\_getAllReferences(), ilParticipants\_getMembershipByType(), ilNewsSubscription\_getSubscriptionsOfUser(), ilObjUser\_lookupDesktopItems(), ilObject\_lookupObjId(), ilObjUser\_lookupPref(), ilObject\_lookupType(), array, getPrivateFeedId(), mergeNews(), and ilUtil\sortArray().
Referenced by ilUserFeedWriter\__construct(), and ilPDNewsBlockGUI\getNewsData().
|
static |
Definition at line 1940 of file class.ilNewsItem.php.
References $DIC, $ilDB, and $query.
Referenced by ilNewsItemGUI\executeCommand(), ilObjMediaObject\getParentObjectIdForUsage(), and ilNewsForContextBlockGUI\showNews().
|
static |
Definition at line 1956 of file class.ilNewsItem.php.
Referenced by _lookupUserPDPeriod(), ilObjNewsSettingsGUI\editSettings(), ilPDNewsBlockGUI\editSettings(), and ilPDNewsTableGUI\initFilter().
|
static |
Lookup media object usage(s)
Definition at line 1917 of file class.ilNewsItem.php.
References $DIC, $ilDB, $query, and array.
Referenced by ilObjMediaObject\lookupUsages().
|
static |
Lookup mob id.
Definition at line 1723 of file class.ilNewsItem.php.
References $DIC, $ilDB, and $query.
Referenced by ilNewsExporter\getXmlExportHeadDependencies().
|
static |
Definition at line 1993 of file class.ilNewsItem.php.
Referenced by ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilObjNewsSettingsGUI\editSettings(), and ilObjMediaCastGUI\initSettingsForm().
|
static |
|
static |
Definition at line 1967 of file class.ilNewsItem.php.
References ilBlockSetting\_lookup(), and _lookupDefaultPDPeriod().
Referenced by ilPDNewsBlockGUI\editSettings(), ilPDNewsBlockGUI\getHTML(), ilPDNewsBlockGUI\getNewsData(), ilPDNewsTableGUI\initFilter(), and ilPDNewsGUI\view().
|
static |
Lookup News Visibility.
Definition at line 1706 of file class.ilNewsItem.php.
References $DIC, $ilDB, and $query.
Referenced by ilObjMediaObjectAccess\checkAccessMob().
|
static |
Set item read.
Definition at line 1509 of file class.ilNewsItem.php.
References $DIC, $ilDB, and array.
Referenced by ilNewsForContextBlockGUI\showNews().
|
static |
Set item unread.
Definition at line 1543 of file class.ilNewsItem.php.
References $DIC, $ilDB, and array.
ilNewsItem::aggregateFiles | ( | $news, | |
$a_ref_id | |||
) |
Definition at line 1094 of file class.ilNewsItem.php.
References array.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
ilNewsItem::aggregateForums | ( | $news, | |
$a_group_posting_sequence = false |
|||
) |
Definition at line 1051 of file class.ilNewsItem.php.
References array.
Referenced by getNewsForRefId().
ilNewsItem::checkNewsExistsForGroupCourse | ( | $a_ref_id, | |
$a_time_period = 1 |
|||
) |
ilNewsItem::create | ( | ) |
Create.
Definition at line 616 of file class.ilNewsItem.php.
References $db, $ilDB, $query, array, getContent(), getContentHtml(), getContentIsLangVar(), getContentLong(), getContentTextIsLangVar(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getLimitation(), getMobId(), getPlaytime(), getPriority(), getTitle(), getUpdateUserId(), getUserId(), getVisibility(), ilUtil\now(), and setId().
ilNewsItem::delete | ( | ) |
Delete news item.
Definition at line 1626 of file class.ilNewsItem.php.
References $db, $ilDB, $query, ilObject\_exists(), getId(), and getMobId().
|
static |
Delete all news of a context.
Definition at line 1654 of file class.ilNewsItem.php.
References $DIC, $ilDB, and $query.
Referenced by ilBlogPosting\delete(), ilPageObject\delete(), ilObjTest\saveToDb(), and ilBlogPosting\unpublish().
ilNewsItem::deliverMobFile | ( | $a_purpose = "Standard" , |
|
$a_increase_download_cnt = false |
|||
) |
Deliver mob file.
Definition at line 2018 of file class.ilNewsItem.php.
References $file, ilObjMediaObject\_getDirectory(), ilUtil\deliverFile(), getMobId(), increaseDownloadCounter(), ilUtil\redirect(), and ilUtil\sendFailure().
|
static |
Determine new content.
Definition at line 1830 of file class.ilNewsItem.php.
References $a_content, $DIC, and $lng.
Referenced by ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilPDNewsTableGUI\fillRow(), and ilMembershipCronNotifications\parseNewsItem().
|
static |
Determine title for news item entry.
Definition at line 1771 of file class.ilNewsItem.php.
Referenced by ilObjectFeedWriter\__construct(), ilUserFeedWriter\__construct(), ilNewsForContextBlockGUI\fillRow(), ilMembershipCronNotifications\parseNewsItem(), and ilNewsForContextBlockGUI\showNews().
|
static |
Checks whether news are available for.
Definition at line 1739 of file class.ilNewsItem.php.
References $DIC, $ilDB, $query, and array.
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 1123 of file class.ilNewsItem.php.
References $access, $data, $tree, aggregateFiles(), array, 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 , |
|||
$a_user_id = null , |
|||
$a_limit = 0 , |
|||
$a_exclude = array() |
|||
) |
Get news aggregation (e.g.
for courses, groups)
Definition at line 948 of file class.ilNewsItem.php.
References $access, $data, $obj_data_cache, $tree, aggregateFiles(), array, filterObjIdsPerNews(), mergeNews(), ilObjectActivation\preloadData(), queryNewsForMultipleContexts(), and ilUtil\sortArray().
Referenced by getNewsForRefId().
ilNewsItem::getContent | ( | ) |
Get Content.
Definition at line 172 of file class.ilNewsItem.php.
References $content.
Referenced by create(), and update().
ilNewsItem::getContentHtml | ( | ) |
Get content as html.
Definition at line 573 of file class.ilNewsItem.php.
References $content_html.
Referenced by create(), and update().
ilNewsItem::getContentIsLangVar | ( | ) |
Get ContentIsLangVar.
Definition at line 432 of file class.ilNewsItem.php.
References $content_is_lang_var.
Referenced by create(), and update().
ilNewsItem::getContentLong | ( | ) |
Get ContentLong.
Definition at line 392 of file class.ilNewsItem.php.
References $content_long.
Referenced by create(), and update().
ilNewsItem::getContentTextIsLangVar | ( | ) |
Get content text ist lang var.
Definition at line 513 of file class.ilNewsItem.php.
Referenced by create(), and update().
ilNewsItem::getContentType | ( | ) |
Get ContentType.
Definition at line 272 of file class.ilNewsItem.php.
References $content_type.
Referenced by create(), and update().
ilNewsItem::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 192 of file class.ilNewsItem.php.
References $context_obj_id.
Referenced by create(), queryNewsForContext(), and update().
ilNewsItem::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 212 of file class.ilNewsItem.php.
References $context_obj_type.
Referenced by create(), queryNewsForContext(), and update().
ilNewsItem::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 232 of file class.ilNewsItem.php.
References $context_sub_obj_id.
Referenced by create(), queryNewsForContext(), and update().
ilNewsItem::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 252 of file class.ilNewsItem.php.
References $context_sub_obj_type.
Referenced by create(), queryNewsForContext(), and update().
ilNewsItem::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 292 of file class.ilNewsItem.php.
References $creation_date.
|
static |
Get first new id of news set related to a certain context.
Definition at line 1849 of file class.ilNewsItem.php.
References $DIC, $ilDB, and $query.
Referenced by ilForum\deletePost(), ilForumTopic\movePosts(), ilForum\postCensorship(), ilObjForumGUI\publishDraftObject(), and ilObjTest\saveToDb().
ilNewsItem::getId | ( | ) |
Get Id.
Definition at line 132 of file class.ilNewsItem.php.
References $id.
Referenced by create(), delete(), increaseDownloadCounter(), increasePlayCounter(), read(), and update().
|
static |
Get last news id of news set related to a certain context.
Definition at line 1877 of file class.ilNewsItem.php.
References $DIC, $id, $ilDB, $query, and ilUtil\now().
Referenced by ilBlogPosting\handleNews(), and ilWikiPage\updateNews().
ilNewsItem::getLimitation | ( | ) |
Get Limitation for number of items.
Definition at line 493 of file class.ilNewsItem.php.
References $limitation.
Referenced by create().
ilNewsItem::getMobDownloadCounter | ( | ) |
Get mob download counter.
Definition at line 553 of file class.ilNewsItem.php.
Referenced by increaseDownloadCounter(), and update().
ilNewsItem::getMobId | ( | ) |
Get MobId.
Definition at line 452 of file class.ilNewsItem.php.
References $mob_id.
Referenced by create(), delete(), deliverMobFile(), and update().
ilNewsItem::getMobPlayCounter | ( | ) |
Get mob play counter.
Definition at line 533 of file class.ilNewsItem.php.
Referenced by increasePlayCounter(), and update().
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 , |
|||
$a_limit = 0 , |
|||
$a_excluded = array() |
|||
) |
Get News For Ref Id.
int | $a_ref_id | |
bool | $a_only_public | |
bool | $a_stopnesting | |
int | $a_time_period | |
bool | $a_prevent_aggregation | |
bool | $a_forum_group_sequences | |
bool | $a_no_auto_generated | |
bool | $a_ignore_date_filter | |
null | $a_user_id | |
int | $a_limit | currently only supported for groups and courses |
int[] | $a_excluded currently only supported for groups and courses (news ids) |
Definition at line 848 of file class.ilNewsItem.php.
References ilBlockSetting\_lookup(), ilObject\_lookupObjId(), ilObject\_lookupType(), aggregateForums(), array, getAggregatedChildNewsData(), getAggregatedNewsData(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData().
ilNewsItem::getPlaytime | ( | ) |
Get Playtime.
Definition at line 472 of file class.ilNewsItem.php.
References $playtime.
Referenced by create(), and update().
ilNewsItem::getPriority | ( | ) |
Get Priority.
Definition at line 412 of file class.ilNewsItem.php.
References $priority.
Referenced by create(), and update().
|
static |
Definition at line 2007 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by _getNewsItemsOfUser(), queryNewsForContext(), and queryNewsForMultipleContexts().
ilNewsItem::getTitle | ( | ) |
ilNewsItem::getUpdateDate | ( | ) |
Get UpdateDate.
Definition at line 312 of file class.ilNewsItem.php.
References $update_date.
ilNewsItem::getUpdateUserId | ( | ) |
Get update user id.
Definition at line 352 of file class.ilNewsItem.php.
References $update_user_id.
Referenced by create(), and update().
ilNewsItem::getUserId | ( | ) |
Get UserId.
Definition at line 332 of file class.ilNewsItem.php.
References $user_id.
Referenced by create(), and update().
ilNewsItem::getVisibility | ( | ) |
Get Visibility.
Definition at line 372 of file class.ilNewsItem.php.
References $visibility.
Referenced by create(), and update().
|
staticprotected |
Convert time period for DB-queries.
mixed | $a_time_period |
Definition at line 1215 of file class.ilNewsItem.php.
ilNewsItem::increaseDownloadCounter | ( | ) |
Increase download counter.
Definition at line 2057 of file class.ilNewsItem.php.
References $db, $ilDB, getId(), getMobDownloadCounter(), and setMobDownloadCounter().
Referenced by deliverMobFile().
ilNewsItem::increasePlayCounter | ( | ) |
Increase play counter.
Definition at line 2077 of file class.ilNewsItem.php.
References $db, $ilDB, getId(), getMobPlayCounter(), and setMobPlayCounter().
|
static |
Merges two sets of news.
array | $n1 | Array of news |
array | $n2 | Array of news |
Definition at line 1569 of file class.ilNewsItem.php.
References $id.
Referenced by _getNewsItemsOfUser(), getAggregatedChildNewsData(), and getAggregatedNewsData().
|
static |
Prepare news data from cache.
string | $a_cres | cache string |
Definition at line 2097 of file class.ilNewsItem.php.
References $data, $DIC, $ilDB, and array.
Referenced by ilPDNewsBlockGUI\__construct(), and ilNewsForContextBlockGUI\__construct().
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 1238 of file class.ilNewsItem.php.
References $db, $ilDB, $ilUser, $lng, $query, $result, $user, ilBlockSetting\_lookup(), array, getContextObjId(), getContextObjType(), getContextSubObjId(), 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 , |
|||
$a_user_id = null , |
|||
$a_limit = 0 , |
|||
$a_exclude = array() |
|||
) |
Query News for multiple Contexts.
array | $a_contexts | |
bool | $a_for_rss_use | |
int | $a_time_period | |
string | $a_starting_date | |
bool | $a_no_auto_generated | |
null | $a_user_id | |
int | $a_limit | |
int[] | $a_exclude |
Definition at line 1406 of file class.ilNewsItem.php.
References $ctrl, $db, $ilCtrl, $ilDB, $ilUser, $lng, $query, $result, $type, $user, $user_id, ilBlockSetting\_lookup(), array, getPrivateFeedId(), and NEWS_PUBLIC.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
ilNewsItem::read | ( | ) |
Read item from database.
Definition at line 581 of file class.ilNewsItem.php.
References $db, $ilDB, $query, getId(), setContent(), setContentHtml(), setContentIsLangVar(), setContentLong(), setContentTextIsLangVar(), setContentType(), setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setCreationDate(), setMobDownloadCounter(), setMobId(), setMobPlayCounter(), setPlaytime(), setPriority(), setTitle(), setUpdateDate(), setUpdateUserId(), setUserId(), and setVisibility().
Referenced by __construct().
ilNewsItem::setContent | ( | $a_content | ) |
Set Content.
string | $a_content | Content of news. |
Definition at line 162 of file class.ilNewsItem.php.
References $a_content.
Referenced by read().
ilNewsItem::setContentHtml | ( | $a_val | ) |
Is content HTML (tiny used?)
bool | $a_val |
Definition at line 563 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setContentIsLangVar | ( | $a_content_is_lang_var = 0 | ) |
Set ContentIsLangVar.
boolean | $a_content_is_lang_var |
Definition at line 422 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setContentLong | ( | $a_content_long | ) |
Set ContentLong.
string | $a_content_long | Long content of news |
Definition at line 382 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setContentTextIsLangVar | ( | $a_val = 0 | ) |
Set content text ist lang var.
boolean | $a_content_is_lang_var |
Definition at line 503 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setContentType | ( | $a_content_type = "text" | ) |
Set ContentType.
string | $a_content_type | Content type. |
Definition at line 262 of file class.ilNewsItem.php.
Referenced by read().
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 1201 of file class.ilNewsItem.php.
References setContextObjId(), setContextObjType(), setContextSubObjId(), and setContextSubObjType().
ilNewsItem::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
int | $a_context_obj_id |
Definition at line 182 of file class.ilNewsItem.php.
Referenced by read(), and setContext().
ilNewsItem::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 202 of file class.ilNewsItem.php.
Referenced by read(), and setContext().
ilNewsItem::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
int | $a_context_sub_obj_id |
Definition at line 222 of file class.ilNewsItem.php.
Referenced by read(), and setContext().
ilNewsItem::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
int | $a_context_sub_obj_type |
Definition at line 242 of file class.ilNewsItem.php.
Referenced by read(), and setContext().
ilNewsItem::setCreationDate | ( | $a_creation_date | ) |
Set CreationDate.
string | $a_creation_date | Date of creation. |
Definition at line 282 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 122 of file class.ilNewsItem.php.
Referenced by __construct(), and create().
ilNewsItem::setLimitation | ( | $a_limitation | ) |
Set Limitation for number of items.
boolean | $a_limitation | Limitation for number of items |
Definition at line 483 of file class.ilNewsItem.php.
ilNewsItem::setMobDownloadCounter | ( | $a_val | ) |
Set mob download counter.
int | $a_val | counter |
Definition at line 543 of file class.ilNewsItem.php.
Referenced by increaseDownloadCounter(), and read().
ilNewsItem::setMobId | ( | $a_mob_id | ) |
Set MobId.
int | $a_mob_id | Media Object ID (if news includes attachement) |
Definition at line 442 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setMobPlayCounter | ( | $a_val | ) |
Set mob play counter.
int | $a_val | counter |
Definition at line 523 of file class.ilNewsItem.php.
Referenced by increasePlayCounter(), and read().
ilNewsItem::setPlaytime | ( | $a_playtime | ) |
Set Playtime.
string | $a_playtime | Play Time, hh:mm:ss (of attached media file) |
Definition at line 462 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setPriority | ( | $a_priority = 1 | ) |
Set Priority.
int | $a_priority | News Priority |
Definition at line 402 of file class.ilNewsItem.php.
Referenced by read().
|
static |
Definition at line 2002 of file class.ilNewsItem.php.
References $privFeedId.
Referenced by ilObjectFeedWriter\__construct().
ilNewsItem::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title of news item. |
Definition at line 142 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setUpdateDate | ( | $a_update_date | ) |
Set UpdateDate.
string | $a_update_date | Date of last update. |
Definition at line 302 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setUpdateUserId | ( | $a_val | ) |
Set update user id.
int | $a_val | update user id |
Definition at line 342 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setUserId | ( | $a_user_id | ) |
Set UserId.
int | $a_user_id | User Id of last update. |
Definition at line 322 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::setVisibility | ( | $a_visibility = "users" | ) |
Set Visibility.
string | $a_visibility | Access level of news. |
Definition at line 362 of file class.ilNewsItem.php.
Referenced by read().
ilNewsItem::update | ( | $a_as_new = false | ) |
Update item in database.
boolean | $a_as_new | If true, creation date is set "now" |
Definition at line 692 of file class.ilNewsItem.php.
References $db, $ilDB, array, getContent(), getContentHtml(), getContentIsLangVar(), getContentLong(), getContentTextIsLangVar(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getMobDownloadCounter(), getMobId(), getMobPlayCounter(), getPlaytime(), getPriority(), getTitle(), getUpdateUserId(), getUserId(), getVisibility(), and ilUtil\now().
|
protected |
Definition at line 43 of file class.ilNewsItem.php.
Referenced by getAggregatedChildNewsData(), and getAggregatedNewsData().
|
protected |
Definition at line 67 of file class.ilNewsItem.php.
Referenced by getContent().
|
protected |
Definition at line 71 of file class.ilNewsItem.php.
Referenced by getContentHtml().
|
protected |
Definition at line 87 of file class.ilNewsItem.php.
Referenced by getContentIsLangVar().
|
protected |
Definition at line 85 of file class.ilNewsItem.php.
Referenced by getContentLong().
|
protected |
Definition at line 76 of file class.ilNewsItem.php.
Referenced by getContentType().
|
protected |
Definition at line 72 of file class.ilNewsItem.php.
Referenced by getContextObjId().
|
protected |
Definition at line 73 of file class.ilNewsItem.php.
Referenced by getContextObjType().
|
protected |
Definition at line 74 of file class.ilNewsItem.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 75 of file class.ilNewsItem.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 77 of file class.ilNewsItem.php.
Referenced by getCreationDate().
|
protected |
Definition at line 63 of file class.ilNewsItem.php.
Referenced by queryNewsForMultipleContexts().
|
protected |
Definition at line 33 of file class.ilNewsItem.php.
Referenced by checkNewsExistsForGroupCourse(), create(), delete(), increaseDownloadCounter(), increasePlayCounter(), queryNewsForContext(), queryNewsForMultipleContexts(), read(), and update().
|
protected |
Definition at line 65 of file class.ilNewsItem.php.
Referenced by getId(), getLastNewsIdForContext(), and mergeNews().
|
private |
Definition at line 92 of file class.ilNewsItem.php.
Referenced by getLimitation().
|
protected |
Definition at line 58 of file class.ilNewsItem.php.
Referenced by determineNewsContent(), determineNewsTitle(), queryNewsForContext(), and queryNewsForMultipleContexts().
|
protected |
Definition at line 88 of file class.ilNewsItem.php.
Referenced by getMobId().
|
protected |
Definition at line 48 of file class.ilNewsItem.php.
Referenced by getAggregatedNewsData().
|
protected |
Definition at line 89 of file class.ilNewsItem.php.
Referenced by getPlaytime().
|
protected |
Definition at line 86 of file class.ilNewsItem.php.
Referenced by getPriority().
|
staticprivate |
Definition at line 91 of file class.ilNewsItem.php.
Referenced by getPrivateFeedId(), and setPrivateFeedId().
|
protected |
Definition at line 66 of file class.ilNewsItem.php.
Referenced by getTitle().
|
protected |
Definition at line 38 of file class.ilNewsItem.php.
Referenced by _getDefaultVisibilityForRefId(), checkNewsExistsForGroupCourse(), getAggregatedChildNewsData(), and getAggregatedNewsData().
|
protected |
Definition at line 78 of file class.ilNewsItem.php.
Referenced by getUpdateDate().
|
protected |
Definition at line 83 of file class.ilNewsItem.php.
Referenced by getUpdateUserId().
|
protected |
Definition at line 53 of file class.ilNewsItem.php.
Referenced by queryNewsForContext(), and queryNewsForMultipleContexts().
|
protected |
Definition at line 79 of file class.ilNewsItem.php.
Referenced by getUserId(), and queryNewsForMultipleContexts().
|
protected |
Definition at line 84 of file class.ilNewsItem.php.
Referenced by _getDefaultVisibilityForRefId(), and getVisibility().