ILIAS
eassessment Revision 61809
|
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. | |
setCreationDate ($a_creation_date) | |
Set CreationDate. | |
getCreationDate () | |
Get CreationDate. | |
setUpdateDate ($a_update_date) | |
Set UpdateDate. | |
getUpdateDate () | |
Get UpdateDate. | |
setVisibility ($a_visibility= 'users') | |
Set Visibility. | |
getVisibility () | |
Get Visibility. | |
setUserId ($a_user_id) | |
Set UserId. | |
getUserId () | |
Get UserId. | |
create () | |
Create new item. | |
update () | |
Update item in database. | |
delete () | |
Delete item from database. |
Private Member Functions | |
read () | |
Read item from database. |
Private Attributes | |
$id = 0 | |
$title = '' | |
$content = '' | |
$creation_date = null | |
$update_date = null | |
$user_id = 0 | |
$visibility = 'users' |
Definition at line 9 of file class.ilShopNewsItem.php.
ilShopNewsItem::__construct | ( | $a_id = 0 | ) |
ilShopNewsItem::create | ( | ) |
Create new item.
Definition at line 178 of file class.ilShopNewsItem.php.
References $ilDB, getContent(), getTitle(), getUserId(), getVisibility(), IL_CAL_DATETIME, and IL_CAL_UNIX.
ilShopNewsItem::delete | ( | ) |
ilShopNewsItem::getContent | ( | ) |
Get Content.
Definition at line 88 of file class.ilShopNewsItem.php.
References $content.
Referenced by create(), and update().
ilShopNewsItem::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 109 of file class.ilShopNewsItem.php.
References $creation_date.
ilShopNewsItem::getId | ( | ) |
ilShopNewsItem::getTitle | ( | ) |
Get Title.
Definition at line 68 of file class.ilShopNewsItem.php.
References $title.
Referenced by create(), and update().
ilShopNewsItem::getUpdateDate | ( | ) |
Get UpdateDate.
Definition at line 129 of file class.ilShopNewsItem.php.
References $update_date.
ilShopNewsItem::getUserId | ( | ) |
Get UserId.
Definition at line 169 of file class.ilShopNewsItem.php.
References $user_id.
Referenced by create(), and update().
ilShopNewsItem::getVisibility | ( | ) |
Get Visibility.
Definition at line 149 of file class.ilShopNewsItem.php.
References $visibility.
Referenced by create(), and update().
|
private |
Read item from database.
Definition at line 207 of file class.ilShopNewsItem.php.
References $ilDB, getId(), setContent(), setCreationDate(), setTitle(), setUpdateDate(), setUserId(), and setVisibility().
Referenced by __construct().
ilShopNewsItem::setContent | ( | $a_content | ) |
Set Content.
string | $a_content | Content of news. |
Definition at line 78 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setCreationDate | ( | $a_creation_date | ) |
Set CreationDate.
string | $a_creation_date | Date of creation. |
Definition at line 99 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 38 of file class.ilShopNewsItem.php.
Referenced by __construct().
ilShopNewsItem::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title of news item. |
Definition at line 58 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setUpdateDate | ( | $a_update_date | ) |
Set UpdateDate.
string | $a_update_date | Date of last update. |
Definition at line 119 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setUserId | ( | $a_user_id | ) |
Set UserId.
int | $a_user_id |
Definition at line 159 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setVisibility | ( | $a_visibility = 'users' | ) |
Set Visibility.
string | $a_visibility | Access level of news. |
Definition at line 139 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::update | ( | ) |
Update item in database.
Definition at line 232 of file class.ilShopNewsItem.php.
References $ilDB, getContent(), getId(), getTitle(), getUserId(), getVisibility(), IL_CAL_DATETIME, and IL_CAL_UNIX.
|
private |
Definition at line 13 of file class.ilShopNewsItem.php.
Referenced by getContent().
|
private |
Definition at line 14 of file class.ilShopNewsItem.php.
Referenced by getCreationDate().
|
private |
Definition at line 11 of file class.ilShopNewsItem.php.
Referenced by getId().
|
private |
Definition at line 12 of file class.ilShopNewsItem.php.
Referenced by getTitle().
|
private |
Definition at line 15 of file class.ilShopNewsItem.php.
Referenced by getUpdateDate().
|
private |
Definition at line 16 of file class.ilShopNewsItem.php.
Referenced by getUserId().
|
private |
Definition at line 17 of file class.ilShopNewsItem.php.
Referenced by getVisibility().