PHP Class Scalr\Model\Entity\Announcement

Since: 5.11 (03.10.2016)
Author: Sergy Goncharov ([email protected])
Inheritance: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\ScopeInterface, implements Scalr\DataType\AccessPermissionsInterface
Show file Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$accountId integer The identifier of Account If not set - announcement were visible for every accounts
$added DateTime Date and time when announcement was created
$createdByEmail string User's email, last modified announcement. Maximum length 100.
$createdById integer User's Id, last modified announcement
$id integer ID
$msg string Announcement's text
$title string Announcement's title. Maximum length 100.

Public Methods

Method Description
getScope ( ) {@inheritDoc}
hasAccessPermissions ( $user, $environment = null, $modify = null ) {@inheritDoc}

Method Details

getScope() public method

{@inheritDoc}
See also: Scalr\DataType\ScopeInterface::getScope()
public getScope ( )

hasAccessPermissions() public method

{@inheritDoc}
public hasAccessPermissions ( $user, $environment = null, $modify = null )

Property Details

$accountId public property

The identifier of Account If not set - announcement were visible for every accounts
public int $accountId
return integer

$added public property

Date and time when announcement was created
public DateTime $added
return DateTime

$createdByEmail public property

User's email, last modified announcement. Maximum length 100.
public string $createdByEmail
return string

$createdById public property

User's Id, last modified announcement
public int $createdById
return integer

$id public property

ID
public int $id
return integer

$msg public property

Announcement's text
public string $msg
return string

$title public property

Announcement's title. Maximum length 100.
public string $title
return string