ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
News service. More...
Public Member Functions | |
__construct (ilLanguage $lng, ilSetting $settings, ilObjUser $user, ilNewsObjectAdapterInterface $obj_adapter=null) | |
Constructor. More... | |
data () | |
item (ilNewsContext $context) | |
Get a new news item for a context. More... | |
contextForRefId (int $ref_id, int $subid=0, string $subtype="") | |
Get context object for news. More... | |
Protected Attributes | |
$_deps | |
News service.
Definition at line 11 of file class.ilNewsService.php.
ilNewsService::__construct | ( | ilLanguage | $lng, |
ilSetting | $settings, | ||
ilObjUser | $user, | ||
ilNewsObjectAdapterInterface | $obj_adapter = null |
||
) |
Constructor.
ilLanguage | $lng |
Definition at line 22 of file class.ilNewsService.php.
ilNewsService::contextForRefId | ( | int | $ref_id, |
int | $subid = 0 , |
||
string | $subtype = "" |
||
) |
Get context object for news.
int | $ref_id | |
string | $subtype | |
int | $subid |
Definition at line 61 of file class.ilNewsService.php.
ilNewsService::data | ( | ) |
Definition at line 33 of file class.ilNewsService.php.
ilNewsService::item | ( | ilNewsContext | $context | ) |
Get a new news item for a context.
ilNewsContext | $context |
Definition at line 44 of file class.ilNewsService.php.
References ilNewsContext\getObjId(), ilNewsContext\getObjType(), ilNewsContext\getSubId(), ilNewsContext\getSubType(), and NEWS_NOTICE.
|
protected |
Definition at line 16 of file class.ilNewsService.php.