Method | Description | |
---|---|---|
defaultAction ( ) | ||
hasAccess ( ) | ||
viewAction ( ) | ||
xListAction ( |
||
xListAnnouncementsAction ( ) : array | Get announcements for dashboard Announcement and popup What's new in Scalr | |
xRemoveAction ( |
||
xSaveAction ( string $msg, string $title, integer $id = null ) | Add or update announcement message | |
xSetTmAction ( integer $tm ) | If session is not virtual, - sets UserSetting::NAME_UI_ANNOUNCEMENT_TIME |
Method | Description | |
---|---|---|
dbAnnouncements ( $type, $params ) : array | Get announcements from DB ordered by added desc | |
getRssFeedXml ( string $url ) : SimpleXMLElement | false | Get RSS feed content | |
prepareDataForDashboard ( |
Transform entity of type MESSAGE for client-side (dashboard, popup) | |
prepareDataForList ( |
Transform entity of type MESSAGE for client-side (view, edit) | |
rssAnnouncements ( $type, $params ) : array | Get announcements from rss feed or from rss cache if any |
public xListAction ( |
||
$sort | Sorting order, defaults to added desc | |
$query | string | optional If set search in fields `id` (exact match), `title`, `msg` (partial match) |
$start | integer | optional Offset |
$limit | integer | optional Limit |
public xListAnnouncementsAction ( ) : array | ||
return | array |
public xRemoveAction ( |
||
$ids | Array of announcements' ids to remove |
public xSetTmAction ( integer $tm ) | ||
$tm | integer | Unix timestamp |