| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
A news item can be created by different sources. More...
 Inheritance diagram for ilNewsItemGen:
 Inheritance diagram for ilNewsItemGen: Collaboration diagram for ilNewsItemGen:
 Collaboration diagram for ilNewsItemGen:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNewsItemGen::create | ( | ) | 
Create new item.
Reimplemented in ilNewsItem.
Definition at line 418 of file class.ilNewsItemGen.php.
References $ilDB, getContent(), getContentIsLangVar(), getContentLong(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getMobId(), getPlaytime(), getPriority(), getTitle(), getUserId(), getVisibility(), ilUtil\now(), and setId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNewsItemGen::delete | ( | ) | 
Delete item from database.
Reimplemented in ilNewsItem.
Definition at line 510 of file class.ilNewsItemGen.php.
References $ilDB, $query, and getId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNewsItemGen::getContent | ( | ) | 
Get Content.
Definition at line 129 of file class.ilNewsItemGen.php.
References $content.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContentIsLangVar | ( | ) | 
Get ContentIsLangVar.
Definition at line 369 of file class.ilNewsItemGen.php.
References $content_is_lang_var.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContentLong | ( | ) | 
Get ContentLong.
Definition at line 329 of file class.ilNewsItemGen.php.
References $content_long.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContentType | ( | ) | 
Get ContentType.
Definition at line 229 of file class.ilNewsItemGen.php.
References $content_type.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContextObjId | ( | ) | 
Get ContextObjId.
Definition at line 149 of file class.ilNewsItemGen.php.
References $context_obj_id.
Referenced by ilNewsItem\create(), create(), ilNewsItem\queryNewsForContext(), queryNewsForContext(), queryNewsForVisibility(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContextObjType | ( | ) | 
Get ContextObjType.
Definition at line 169 of file class.ilNewsItemGen.php.
References $context_obj_type.
Referenced by ilNewsItem\create(), create(), ilNewsItem\queryNewsForContext(), queryNewsForContext(), queryNewsForVisibility(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContextSubObjId | ( | ) | 
Get ContextSubObjId.
Definition at line 189 of file class.ilNewsItemGen.php.
References $context_sub_obj_id.
Referenced by ilNewsItem\create(), create(), ilNewsItem\queryNewsForContext(), queryNewsForContext(), queryNewsForVisibility(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getContextSubObjType | ( | ) | 
Get ContextSubObjType.
Definition at line 209 of file class.ilNewsItemGen.php.
References $context_sub_obj_type.
Referenced by ilNewsItem\create(), create(), ilNewsItem\queryNewsForContext(), queryNewsForContext(), queryNewsForVisibility(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getCreationDate | ( | ) | 
Get CreationDate.
Definition at line 249 of file class.ilNewsItemGen.php.
References $creation_date.
| ilNewsItemGen::getId | ( | ) | 
| ilNewsItemGen::getMobId | ( | ) | 
Get MobId.
Definition at line 389 of file class.ilNewsItemGen.php.
References $mob_id.
Referenced by create(), ilNewsItem\delete(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getPlaytime | ( | ) | 
Get Playtime.
Definition at line 409 of file class.ilNewsItemGen.php.
References $playtime.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getPriority | ( | ) | 
Get Priority.
Definition at line 349 of file class.ilNewsItemGen.php.
References $priority.
Referenced by create(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::getVisibility | ( | ) | 
Get Visibility.
Definition at line 309 of file class.ilNewsItemGen.php.
References $visibility.
Referenced by create(), queryNewsForVisibility(), and update().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::queryNewsForContext | ( | ) | 
Query NewsForContext.
Definition at line 525 of file class.ilNewsItemGen.php.
References $ilDB, $query, $result, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNewsItemGen::queryNewsForVisibility | ( | ) | 
Query NewsForVisibility.
Definition at line 553 of file class.ilNewsItemGen.php.
References $ilDB, $query, $result, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getVisibility().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNewsItemGen::read | ( | ) | 
Read item from database.
Definition at line 448 of file class.ilNewsItemGen.php.
References $ilDB, $query, getId(), setContent(), setContentIsLangVar(), setContentLong(), setContentType(), setContextObjId(), setContextObjType(), setContextSubObjId(), setContextSubObjType(), setCreationDate(), setMobId(), setPlaytime(), setPriority(), setTitle(), setUpdateDate(), setUserId(), and setVisibility().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::setContent | ( | $a_content | ) | 
Set Content.
| string | $a_content | Content of news. | 
Definition at line 119 of file class.ilNewsItemGen.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::setId | ( | $a_id | ) | 
Set Id.
| int | $a_id | 
Definition at line 79 of file class.ilNewsItemGen.php.
Referenced by __construct(), and create().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::setPriority | ( | $a_priority = 1 | ) | 
Set Priority.
| int | $a_priority | News Priority | 
Definition at line 339 of file class.ilNewsItemGen.php.
Referenced by read().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNewsItemGen::update | ( | ) | 
Update item in database.
Definition at line 480 of file class.ilNewsItemGen.php.
References $ilDB, getContent(), getContentIsLangVar(), getContentLong(), getContentType(), getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), getId(), getMobId(), getPlaytime(), getPriority(), getTitle(), getUserId(), getVisibility(), and ilUtil\now().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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().