class Message extends AbstractModel

Class Message

Properties

int $id from AbstractModel
$threadId
Thread $thread
int $adminUserId
string $message
bool $read
DateTime $creationDate

Methods

static  null|AbstractModel
getById($id)

Get Range by id.

static  boolean
isMultiShop()

No description

static  boolean
isMultiShopFK()

No description

static  AbstractModel
create()

Create new instance of Pimcore Object.

static  AbstractModel|null
getByShopId($id, null $shopId = null)

No description

static  null|AbstractModel
getByField( string $field, string $value, int $shopId = null)

Get Range by id.

static  AbstractListing
getList()

get listing class.

static  AbstractModel[]
getAll()

Get all objects form this type.

int
getId()

No description

setId( int $id)

No description

string
getCacheKey()

No description

save()

Save Message.

bool
delete()

delete model.

getLocalizedFields()

Get LocalizedFields Provider.

setLocalizedFields($localizedFields)

Get LocalizedFields Provider.

AbstractModel
setValue($key, $value)

Override setValue function to support localized fields.

string
__toString()

No description

array
__sleep()

Prepare object to goto sleep.

__wakeup()

Prepare object to wakeup.

sendNotification( string $type, string $recipient)

Send email to recipient with Message.

mixed
getThreadId()

No description

setThreadId( mixed $threadId)

No description

getThread()

No description

setThread( Thread $thread)

No description

int
getAdminUserId()

No description

setAdminUserId( int $adminUserId)

No description

string
getMessage()

No description

setMessage( string $message)

No description

bool
getRead()

No description

setRead( bool $read)

No description

getCreationDate()

No description

setCreationDate( DateTime $creationDate)

No description

Details

in AbstractModel at line line 72
static null|AbstractModel getById($id)

Get Range by id.

Parameters

$id

Return Value

null|AbstractModel

in AbstractModel at line line 80
static boolean isMultiShop()

Return Value

boolean

in AbstractModel at line line 94
static boolean isMultiShopFK()

Return Value

boolean

in AbstractModel at line line 112
static AbstractModel create()

Create new instance of Pimcore Object.

Return Value

AbstractModel

Exceptions

Exception

in AbstractModel at line line 122
static AbstractModel|null getByShopId($id, null $shopId = null)

Parameters

$id
null $shopId

Return Value

AbstractModel|null

in AbstractModel at line line 170
static null|AbstractModel getByField( string $field, string $value, int $shopId = null)

Get Range by id.

Parameters

string $field
string $value
int $shopId

Return Value

null|AbstractModel

in AbstractModel at line line 223
static AbstractListing getList()

get listing class.

Return Value

AbstractListing

Exceptions

Exception

in AbstractModel at line line 243
static AbstractModel[] getAll()

Get all objects form this type.

Return Value

AbstractModel[]

in AbstractModel at line line 253
int getId()

Return Value

int

in AbstractModel at line line 261
setId( int $id)

Parameters

int $id

in AbstractModel at line line 269
string getCacheKey()

Return Value

string

at line line 80
save()

Save Message.

in AbstractModel at line line 294
bool delete()

delete model.

Return Value

bool

in AbstractModel at line line 310
LocalizedFields|null getLocalizedFields()

Get LocalizedFields Provider.

Return Value

LocalizedFields|null

in AbstractModel at line line 329
setLocalizedFields($localizedFields)

Get LocalizedFields Provider.

Parameters

$localizedFields

in AbstractModel at line line 342
AbstractModel setValue($key, $value)

Override setValue function to support localized fields.

Parameters

$key
$value

Return Value

AbstractModel

at line line 94
string __toString()

Return Value

string

in AbstractModel at line line 370
array __sleep()

Prepare object to goto sleep.

Return Value

array

in AbstractModel at line line 390
__wakeup()

Prepare object to wakeup.

at line line 69
sendNotification( string $type, string $recipient)

Send email to recipient with Message.

Parameters

string $type
string $recipient

Exceptions

Exception

at line line 102
mixed getThreadId()

Return Value

mixed

at line line 110
setThreadId( mixed $threadId)

Parameters

mixed $threadId

at line line 118
Thread getThread()

Return Value

Thread

at line line 132
setThread( Thread $thread)

Parameters

Thread $thread

Exceptions

Exception

at line line 145
int getAdminUserId()

Return Value

int

at line line 153
setAdminUserId( int $adminUserId)

Parameters

int $adminUserId

at line line 161
string getMessage()

Return Value

string

at line line 169
setMessage( string $message)

Parameters

string $message

at line line 177
bool getRead()

Return Value

bool

at line line 185
setRead( bool $read)

Parameters

bool $read

at line line 193
DateTime getCreationDate()

Return Value

DateTime

at line line 201
setCreationDate( DateTime $creationDate)

Parameters

DateTime $creationDate