|
ILIAS
eassessment Revision 61809
|
A news item can be created by different sources. More...
Inheritance 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 change in a learning module is announced.
Definition at line 37 of file class.ilNewsItemGen.php.
| ilNewsItemGen::__construct | ( | $a_id = 0 | ) |
Constructor.
| int | $a_id |
Reimplemented in ilNewsItem.
Definition at line 63 of file class.ilNewsItemGen.php.
References read(), and setId().
Here is the call graph for this function:| ilNewsItemGen::create | ( | ) |
Create new item.
Reimplemented in ilNewsItem.
Definition at line 417 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:| ilNewsItemGen::delete | ( | ) |
Delete item from database.
Reimplemented in ilNewsItem.
Definition at line 509 of file class.ilNewsItemGen.php.
References $ilDB, $query, and getId().
Here is the call graph for this function:| ilNewsItemGen::getContent | ( | ) |
Get Content.
Definition at line 128 of file class.ilNewsItemGen.php.
References $content.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getContentIsLangVar | ( | ) |
Get ContentIsLangVar.
Definition at line 368 of file class.ilNewsItemGen.php.
References $content_is_lang_var.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getContentLong | ( | ) |
Get ContentLong.
Definition at line 328 of file class.ilNewsItemGen.php.
References $content_long.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getContentType | ( | ) |
Get ContentType.
Definition at line 228 of file class.ilNewsItemGen.php.
References $content_type.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getContextObjId | ( | ) |
Get ContextObjId.
Definition at line 148 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:| ilNewsItemGen::getContextObjType | ( | ) |
Get ContextObjType.
Definition at line 168 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:| ilNewsItemGen::getContextSubObjId | ( | ) |
Get ContextSubObjId.
Definition at line 188 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:| ilNewsItemGen::getContextSubObjType | ( | ) |
Get ContextSubObjType.
Definition at line 208 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:| ilNewsItemGen::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 248 of file class.ilNewsItemGen.php.
References $creation_date.
| ilNewsItemGen::getId | ( | ) |
| ilNewsItemGen::getMobId | ( | ) |
Get MobId.
Definition at line 388 of file class.ilNewsItemGen.php.
References $mob_id.
Referenced by create(), ilNewsItem\delete(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getPlaytime | ( | ) |
Get Playtime.
Definition at line 408 of file class.ilNewsItemGen.php.
References $playtime.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getPriority | ( | ) |
Get Priority.
Definition at line 348 of file class.ilNewsItemGen.php.
References $priority.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getTitle | ( | ) |
Get Title.
Definition at line 108 of file class.ilNewsItemGen.php.
References $title.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getUpdateDate | ( | ) |
Get UpdateDate.
Definition at line 268 of file class.ilNewsItemGen.php.
References $update_date.
| ilNewsItemGen::getUserId | ( | ) |
Get UserId.
Definition at line 288 of file class.ilNewsItemGen.php.
References $user_id.
Referenced by create(), and update().
Here is the caller graph for this function:| ilNewsItemGen::getVisibility | ( | ) |
Get Visibility.
Definition at line 308 of file class.ilNewsItemGen.php.
References $visibility.
Referenced by create(), queryNewsForVisibility(), and update().
Here is the caller graph for this function:| ilNewsItemGen::queryNewsForContext | ( | ) |
Query NewsForContext.
Definition at line 524 of file class.ilNewsItemGen.php.
References $ilDB, $query, getContextObjId(), getContextObjType(), getContextSubObjId(), and getContextSubObjType().
Here is the call graph for this function:| ilNewsItemGen::queryNewsForVisibility | ( | ) |
Query NewsForVisibility.
Definition at line 552 of file class.ilNewsItemGen.php.
References $ilDB, $query, getContextObjId(), getContextObjType(), getContextSubObjId(), getContextSubObjType(), and getVisibility().
Here is the call graph for this function:| ilNewsItemGen::read | ( | ) |
Read item from database.
Definition at line 447 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 caller graph for this function:| ilNewsItemGen::setContent | ( | $a_content | ) |
Set Content.
| string | $a_content | Content of news. |
Definition at line 118 of file class.ilNewsItemGen.php.
Referenced by read().
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 358 of file class.ilNewsItemGen.php.
Referenced by read().
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 318 of file class.ilNewsItemGen.php.
Referenced by read().
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 218 of file class.ilNewsItemGen.php.
Referenced by read().
Here is the caller graph for this function:| ilNewsItemGen::setContextObjId | ( | $a_context_obj_id | ) |
Set ContextObjId.
| int | $a_context_obj_id |
Definition at line 138 of file class.ilNewsItemGen.php.
Referenced by read(), and ilNewsItem\setContext().
Here is the caller graph for this function:| ilNewsItemGen::setContextObjType | ( | $a_context_obj_type | ) |
Set ContextObjType.
| int | $a_context_obj_type |
Definition at line 158 of file class.ilNewsItemGen.php.
Referenced by read(), and ilNewsItem\setContext().
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 178 of file class.ilNewsItemGen.php.
Referenced by read(), and ilNewsItem\setContext().
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 198 of file class.ilNewsItemGen.php.
Referenced by read(), and ilNewsItem\setContext().
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 238 of file class.ilNewsItemGen.php.
Referenced by read().
Here is the caller graph for this function:| ilNewsItemGen::setId | ( | $a_id | ) |
Set Id.
| int | $a_id |
Definition at line 78 of file class.ilNewsItemGen.php.
Referenced by __construct(), and create().
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 378 of file class.ilNewsItemGen.php.
Referenced by read().
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 398 of file class.ilNewsItemGen.php.
Referenced by read().
Here is the caller graph for this function:| ilNewsItemGen::setPriority | ( | $a_priority = 1 | ) |
Set Priority.
| int | $a_priority | News Priority |
Definition at line 338 of file class.ilNewsItemGen.php.
Referenced by read().
Here is the caller graph for this function:| ilNewsItemGen::setTitle | ( | $a_title | ) |
Set Title.
| string | $a_title | Title of news item. |
Definition at line 98 of file class.ilNewsItemGen.php.
Referenced by read().
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 258 of file class.ilNewsItemGen.php.
Referenced by read().
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 278 of file class.ilNewsItemGen.php.
Referenced by read().
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 298 of file class.ilNewsItemGen.php.
Referenced by read().
Here is the caller graph for this function:| ilNewsItemGen::update | ( | ) |
Update item in database.
Definition at line 479 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:
|
protected |
Definition at line 42 of file class.ilNewsItemGen.php.
Referenced by getContent().
|
protected |
Definition at line 54 of file class.ilNewsItemGen.php.
Referenced by getContentIsLangVar().
|
protected |
Definition at line 52 of file class.ilNewsItemGen.php.
Referenced by getContentLong().
|
protected |
Definition at line 47 of file class.ilNewsItemGen.php.
Referenced by getContentType().
|
protected |
Definition at line 43 of file class.ilNewsItemGen.php.
Referenced by getContextObjId().
|
protected |
Definition at line 44 of file class.ilNewsItemGen.php.
Referenced by getContextObjType().
|
protected |
Definition at line 45 of file class.ilNewsItemGen.php.
Referenced by getContextSubObjId().
|
protected |
Definition at line 46 of file class.ilNewsItemGen.php.
Referenced by getContextSubObjType().
|
protected |
Definition at line 48 of file class.ilNewsItemGen.php.
Referenced by getCreationDate().
|
protected |
Definition at line 40 of file class.ilNewsItemGen.php.
Referenced by getId(), and ilNewsItem\mergeNews().
|
protected |
Definition at line 55 of file class.ilNewsItemGen.php.
Referenced by getMobId().
|
protected |
Definition at line 56 of file class.ilNewsItemGen.php.
Referenced by getPlaytime().
|
protected |
Definition at line 53 of file class.ilNewsItemGen.php.
Referenced by getPriority().
|
protected |
Definition at line 41 of file class.ilNewsItemGen.php.
Referenced by getTitle().
|
protected |
Definition at line 49 of file class.ilNewsItemGen.php.
Referenced by getUpdateDate().
|
protected |
Definition at line 50 of file class.ilNewsItemGen.php.
Referenced by getUserId().
|
protected |
Definition at line 51 of file class.ilNewsItemGen.php.
Referenced by ilNewsItem\_getDefaultVisibilityForRefId(), and getVisibility().