VISIBILITY_GLOBAL
VISIBILITY_GLOBAL ='global'
Represent an announcement model.
$pool :\DevOwl\RealProductManagerWpClient\announcement\AnnouncementPool
Announcement pool instance.
fromResponse(\DevOwl\RealProductManagerWpClient\announcement\AnnouncementPool $pool,array $response)
New instance.
| \DevOwl\RealProductManagerWpClient\announcement\AnnouncementPool | $pool | The associated pool to all announcements |
| array | $response | An item from the official REST API response |
__construct(\DevOwl\RealProductManagerWpClient\announcement\AnnouncementPool $pool,string $id,string $graphicUrl = null,string $graphicUrlRetina = null,string $graphicFileLink = null,string $title = null,string $text = null,string $dismissible = true,string $data = array(),string $severity = 'info',string $visibility = 'local')
C'tor.
| \DevOwl\RealProductManagerWpClient\announcement\AnnouncementPool | $pool | |
| string | $id | |
| string | $graphicUrl | |
| string | $graphicUrlRetina | |
| string | $graphicFileLink | |
| string | $title | |
| string | $text | |
| string | $dismissible | |
| string | $data | |
| string | $severity | |
| string | $visibility |