ILIAS
Release_5_0_x_branch Revision 61816
|
A news item can be created by different sources. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
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. | |
create () | |
Create new item. | |
delete () | |
Delete item from database. | |
queryNewsForContext () | |
Query NewsForContext. | |
queryNewsForVisibility () | |
Query NewsForVisibility. |
Protected Attributes | |
$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 |
A news item can be created by different sources.
E.g. when a new forum posting is created, or when a change in a learning module is announced.
Definition at line 38 of file class.ilNewsItemGen.php.
ilNewsItemGen::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id |
Reimplemented in ilNewsItem.
Definition at line 64 of file class.ilNewsItemGen.php.
References setId().
ilNewsItemGen::create | ( | ) |
Create new item.
Reimplemented in ilNewsItem.
Definition at line 418 of file class.ilNewsItemGen.php.
References $ilDB.
ilNewsItemGen::delete | ( | ) |
Delete item from database.
Reimplemented in ilNewsItem.
Definition at line 430 of file class.ilNewsItemGen.php.
References $ilDB, $query, and getId().
ilNewsItemGen::getContent | ( | ) |
Get Content.
Definition at line 129 of file class.ilNewsItemGen.php.
References $content.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getContentIsLangVar | ( | ) |
Get ContentIsLangVar.
Definition at line 369 of file class.ilNewsItemGen.php.
References $content_is_lang_var.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getContentLong | ( | ) |
Get ContentLong.
Definition at line 329 of file class.ilNewsItemGen.php.
References $content_long.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getContentType | ( | ) |
Get ContentType.
Definition at line 229 of file class.ilNewsItemGen.php.
References $content_type.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 149 of file class.ilNewsItemGen.php.
References $context_obj_id.
Referenced by ilNewsItem\create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and ilNewsItem\update().
ilNewsItemGen::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 169 of file class.ilNewsItemGen.php.
References $context_obj_type.
Referenced by ilNewsItem\create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and ilNewsItem\update().
ilNewsItemGen::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 189 of file class.ilNewsItemGen.php.
References $context_sub_obj_id.
Referenced by ilNewsItem\create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and ilNewsItem\update().
ilNewsItemGen::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 209 of file class.ilNewsItemGen.php.
References $context_sub_obj_type.
Referenced by ilNewsItem\create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and ilNewsItem\update().
ilNewsItemGen::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 249 of file class.ilNewsItemGen.php.
References $creation_date.
ilNewsItemGen::getId | ( | ) |
Get Id.
Definition at line 89 of file class.ilNewsItemGen.php.
References $id.
Referenced by ilNewsItem\create(), delete(), ilNewsItem\increaseDownloadCounter(), ilNewsItem\increasePlayCounter(), ilNewsItem\read(), and ilNewsItem\update().
ilNewsItemGen::getMobId | ( | ) |
Get MobId.
Definition at line 389 of file class.ilNewsItemGen.php.
References $mob_id.
Referenced by ilNewsItem\create(), ilNewsItem\delete(), ilNewsItem\deliverMobFile(), and ilNewsItem\update().
ilNewsItemGen::getPlaytime | ( | ) |
Get Playtime.
Definition at line 409 of file class.ilNewsItemGen.php.
References $playtime.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getPriority | ( | ) |
Get Priority.
Definition at line 349 of file class.ilNewsItemGen.php.
References $priority.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getTitle | ( | ) |
Get Title.
Definition at line 109 of file class.ilNewsItemGen.php.
References $title.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getUpdateDate | ( | ) |
Get UpdateDate.
Definition at line 269 of file class.ilNewsItemGen.php.
References $update_date.
ilNewsItemGen::getUserId | ( | ) |
Get UserId.
Definition at line 289 of file class.ilNewsItemGen.php.
References $user_id.
Referenced by ilNewsItem\create(), and ilNewsItem\update().
ilNewsItemGen::getVisibility | ( | ) |
Get Visibility.
Definition at line 309 of file class.ilNewsItemGen.php.
References $visibility.
Referenced by ilNewsItem\create(), queryNewsForVisibility(), and ilNewsItem\update().
ilNewsItemGen::queryNewsForContext | ( | ) |
Query NewsForContext.
Definition at line 445 of file class.ilNewsItemGen.php.
References $ilDB, $query, $result, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Referenced by ilNewsItem\queryNewsForContext().
ilNewsItemGen::queryNewsForVisibility | ( | ) |
Query NewsForVisibility.
Definition at line 473 of file class.ilNewsItemGen.php.
References $ilDB, $query, $result, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getVisibility().
ilNewsItemGen::setContent | ( | $a_content | ) |
Set Content.
string | $a_content | Content of news. |
Definition at line 119 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setContentIsLangVar | ( | $a_content_is_lang_var = 0 | ) |
Set ContentIsLangVar.
boolean | $a_content_is_lang_var |
Definition at line 359 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setContentLong | ( | $a_content_long | ) |
Set ContentLong.
string | $a_content_long | Long content of news |
Definition at line 319 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setContentType | ( | $a_content_type = "text" | ) |
Set ContentType.
string | $a_content_type | Content type. |
Definition at line 219 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
int | $a_context_obj_id |
Definition at line 139 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read(), and ilNewsItem\setContext().
ilNewsItemGen::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
int | $a_context_obj_type |
Definition at line 159 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read(), and ilNewsItem\setContext().
ilNewsItemGen::setContextSubObjId | ( | $a_context_sub_obj_id | ) |
Set ContextSubObjId.
int | $a_context_sub_obj_id |
Definition at line 179 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read(), and ilNewsItem\setContext().
ilNewsItemGen::setContextSubObjType | ( | $a_context_sub_obj_type | ) |
Set ContextSubObjType.
int | $a_context_sub_obj_type |
Definition at line 199 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read(), and ilNewsItem\setContext().
ilNewsItemGen::setCreationDate | ( | $a_creation_date | ) |
Set CreationDate.
string | $a_creation_date | Date of creation. |
Definition at line 239 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 79 of file class.ilNewsItemGen.php.
Referenced by __construct(), and ilNewsItem\create().
ilNewsItemGen::setMobId | ( | $a_mob_id | ) |
Set MobId.
int | $a_mob_id | Media Object ID (if news includes attachement) |
Definition at line 379 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setPlaytime | ( | $a_playtime | ) |
Set Playtime.
string | $a_playtime | Play Time, hh:mm:ss (of attached media file) |
Definition at line 399 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setPriority | ( | $a_priority = 1 | ) |
Set Priority.
int | $a_priority | News Priority |
Definition at line 339 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title of news item. |
Definition at line 99 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setUpdateDate | ( | $a_update_date | ) |
Set UpdateDate.
string | $a_update_date | Date of last update. |
Definition at line 259 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setUserId | ( | $a_user_id | ) |
Set UserId.
int | $a_user_id | User Id of last update. |
Definition at line 279 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
ilNewsItemGen::setVisibility | ( | $a_visibility = "users" | ) |
Set Visibility.
string | $a_visibility | Access level of news. |
Definition at line 299 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\read().
|
protected |
Definition at line 43 of file class.ilNewsItemGen.php.
Referenced by getContent().
|
protected |
Definition at line 55 of file class.ilNewsItemGen.php.
Referenced by getContentIsLangVar().
|
protected |
Definition at line 53 of file class.ilNewsItemGen.php.
Referenced by getContentLong().
|
protected |
Definition at line 48 of file class.ilNewsItemGen.php.
Referenced by getContentType().
|
protected |
Definition at line 44 of file class.ilNewsItemGen.php.
Referenced by getContextObjId().
|
protected |
Definition at line 45 of file class.ilNewsItemGen.php.
Referenced by getContextObjType().
|
protected |
Definition at line 46 of file class.ilNewsItemGen.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 47 of file class.ilNewsItemGen.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 49 of file class.ilNewsItemGen.php.
Referenced by getCreationDate().
|
protected |
Definition at line 41 of file class.ilNewsItemGen.php.
Referenced by getId(), ilNewsItem\getLastNewsIdForContext(), and ilNewsItem\mergeNews().
|
protected |
Definition at line 56 of file class.ilNewsItemGen.php.
Referenced by getMobId().
|
protected |
Definition at line 57 of file class.ilNewsItemGen.php.
Referenced by getPlaytime().
|
protected |
Definition at line 54 of file class.ilNewsItemGen.php.
Referenced by getPriority().
|
protected |
Definition at line 42 of file class.ilNewsItemGen.php.
Referenced by getTitle().
|
protected |
Definition at line 50 of file class.ilNewsItemGen.php.
Referenced by getUpdateDate().
|
protected |
Definition at line 51 of file class.ilNewsItemGen.php.
Referenced by getUserId(), and ilNewsItem\queryNewsForMultipleContexts().
|
protected |
Definition at line 52 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\_getDefaultVisibilityForRefId(), and getVisibility().