ILIAS
Release_3_10_x_branch Revision 61812
|
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. | |
read () | |
Read item from database. | |
update () | |
Update item in database. | |
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 read(), and setId().
ilNewsItemGen::create | ( | ) |
Create new item.
Reimplemented in ilNewsItem.
Definition at line 418 of file class.ilNewsItemGen.php.
References getContent(), getContentIsLangVar(), getContentLong(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getMobId(), getPlaytime(), getPriority(), getTitle(), getUserId(), getVisibility(), and setId().
ilNewsItemGen::delete | ( | ) |
Delete item from database.
Reimplemented in ilNewsItem.
Definition at line 529 of file class.ilNewsItemGen.php.
References getId().
ilNewsItemGen::getContent | ( | ) |
Get Content.
Definition at line 129 of file class.ilNewsItemGen.php.
References $content.
Referenced by create(), and update().
ilNewsItemGen::getContentIsLangVar | ( | ) |
Get ContentIsLangVar.
Definition at line 369 of file class.ilNewsItemGen.php.
References $content_is_lang_var.
Referenced by create(), and update().
ilNewsItemGen::getContentLong | ( | ) |
Get ContentLong.
Definition at line 329 of file class.ilNewsItemGen.php.
References $content_long.
Referenced by create(), and update().
ilNewsItemGen::getContentType | ( | ) |
Get ContentType.
Definition at line 229 of file class.ilNewsItemGen.php.
References $content_type.
Referenced by create(), and update().
ilNewsItemGen::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 149 of file class.ilNewsItemGen.php.
References $context_obj_id.
Referenced by ilNewsItem\create(), create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and update().
ilNewsItemGen::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 169 of file class.ilNewsItemGen.php.
References $context_obj_type.
Referenced by ilNewsItem\create(), create(), queryNewsForContext(), ilNewsItem\queryNewsForContext(), queryNewsForVisibility(), and update().
ilNewsItemGen::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 189 of file class.ilNewsItemGen.php.
References $context_sub_obj_id.
Referenced by ilNewsItem\create(), create(), queryNewsForContext(), queryNewsForVisibility(), and update().
ilNewsItemGen::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 209 of file class.ilNewsItemGen.php.
References $context_sub_obj_type.
Referenced by ilNewsItem\create(), create(), queryNewsForContext(), queryNewsForVisibility(), and update().
ilNewsItemGen::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 249 of file class.ilNewsItemGen.php.
References $creation_date.
Referenced by update().
ilNewsItemGen::getId | ( | ) |
Get Id.
Definition at line 89 of file class.ilNewsItemGen.php.
References $id.
Referenced by delete(), ilNewsItem\delete(), read(), and update().
ilNewsItemGen::getMobId | ( | ) |
Get MobId.
Definition at line 389 of file class.ilNewsItemGen.php.
References $mob_id.
Referenced by create(), ilNewsItem\delete(), and update().
ilNewsItemGen::getPlaytime | ( | ) |
Get Playtime.
Definition at line 409 of file class.ilNewsItemGen.php.
References $playtime.
Referenced by create(), and update().
ilNewsItemGen::getPriority | ( | ) |
Get Priority.
Definition at line 349 of file class.ilNewsItemGen.php.
References $priority.
Referenced by create(), and update().
ilNewsItemGen::getTitle | ( | ) |
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 create(), and update().
ilNewsItemGen::getVisibility | ( | ) |
Get Visibility.
Definition at line 309 of file class.ilNewsItemGen.php.
References $visibility.
Referenced by create(), queryNewsForVisibility(), and update().
ilNewsItemGen::queryNewsForContext | ( | ) |
Query NewsForContext.
Definition at line 544 of file class.ilNewsItemGen.php.
References $result, DB_FETCHMODE_ASSOC, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
ilNewsItemGen::queryNewsForVisibility | ( | ) |
Query NewsForVisibility.
Definition at line 573 of file class.ilNewsItemGen.php.
References $result, DB_FETCHMODE_ASSOC, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getVisibility().
ilNewsItemGen::read | ( | ) |
Read item from database.
Definition at line 466 of file class.ilNewsItemGen.php.
References DB_FETCHMODE_ASSOC, getId(), setContent(), setContentIsLangVar(), setContentLong(), setContentType(), setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setCreationDate(), setMobId(), setPlaytime(), setPriority(), setTitle(), setUpdateDate(), setUserId(), and setVisibility().
Referenced by __construct().
ilNewsItemGen::setContent | ( | $a_content | ) |
Set Content.
string | $a_content | Content of news. |
Definition at line 119 of file class.ilNewsItemGen.php.
Referenced by 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 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 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 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 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 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 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 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 read().
ilNewsItemGen::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 79 of file class.ilNewsItemGen.php.
Referenced by __construct(), and 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 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 read().
ilNewsItemGen::setPriority | ( | $a_priority = 1 | ) |
Set Priority.
int | $a_priority | News Priority |
Definition at line 339 of file class.ilNewsItemGen.php.
Referenced by 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 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 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 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 read().
ilNewsItemGen::update | ( | ) |
Update item in database.
Definition at line 498 of file class.ilNewsItemGen.php.
References getContent(), getContentIsLangVar(), getContentLong(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getCreationDate(), getId(), getMobId(), getPlaytime(), getPriority(), getTitle(), getUserId(), and getVisibility().
|
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(), 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().
|
protected |
Definition at line 52 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\_getDefaultVisibilityForRefId(), and getVisibility().