ILIAS
Release_4_0_x_branch Revision 61816
|
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 29 of file class.ilShopNewsItem.php.
ilShopNewsItem::__construct | ( | $a_id = 0 | ) |
ilShopNewsItem::create | ( | ) |
Create new item.
Definition at line 198 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 108 of file class.ilShopNewsItem.php.
References $content.
Referenced by create(), and update().
ilShopNewsItem::getCreationDate | ( | ) |
Get CreationDate.
Definition at line 129 of file class.ilShopNewsItem.php.
References $creation_date.
ilShopNewsItem::getId | ( | ) |
ilShopNewsItem::getTitle | ( | ) |
ilShopNewsItem::getUpdateDate | ( | ) |
Get UpdateDate.
Definition at line 149 of file class.ilShopNewsItem.php.
References $update_date.
ilShopNewsItem::getUserId | ( | ) |
Get UserId.
Definition at line 189 of file class.ilShopNewsItem.php.
References $user_id.
Referenced by create(), and update().
ilShopNewsItem::getVisibility | ( | ) |
Get Visibility.
Definition at line 169 of file class.ilShopNewsItem.php.
References $visibility.
Referenced by create(), and update().
|
private |
Read item from database.
Definition at line 227 of file class.ilShopNewsItem.php.
References $ilDB, $result, 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 98 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 119 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setId | ( | $a_id | ) |
Set Id.
int | $a_id |
Definition at line 58 of file class.ilShopNewsItem.php.
Referenced by __construct().
ilShopNewsItem::setTitle | ( | $a_title | ) |
Set Title.
string | $a_title | Title of news item. |
Definition at line 78 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 139 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::setUserId | ( | $a_user_id | ) |
Set UserId.
int | $a_user_id |
Definition at line 179 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 159 of file class.ilShopNewsItem.php.
Referenced by read().
ilShopNewsItem::update | ( | ) |
Update item in database.
Definition at line 252 of file class.ilShopNewsItem.php.
References $ilDB, getContent(), getId(), getTitle(), getUserId(), getVisibility(), IL_CAL_DATETIME, and IL_CAL_UNIX.
|
private |
Definition at line 33 of file class.ilShopNewsItem.php.
Referenced by getContent().
|
private |
Definition at line 34 of file class.ilShopNewsItem.php.
Referenced by getCreationDate().
|
private |
Definition at line 31 of file class.ilShopNewsItem.php.
Referenced by getId().
|
private |
Definition at line 32 of file class.ilShopNewsItem.php.
Referenced by getTitle().
|
private |
Definition at line 35 of file class.ilShopNewsItem.php.
Referenced by getUpdateDate().
|
private |
Definition at line 36 of file class.ilShopNewsItem.php.
Referenced by getUserId().
|
private |
Definition at line 37 of file class.ilShopNewsItem.php.
Referenced by getVisibility().