5 # Part of the Collection Workflow Integration System (CWIS) 6 # Copyright 2012-2013 Edward Almasy and Internet Scout Research Group 7 # http://scout.wisc.edu/cwis 19 # ---- PUBLIC INTERFACE -------------------------------------------------- 32 # create a new empty message record 33 $DB->Query(
"INSERT INTO Messages (MessageId) VALUES (NULL)");
36 $MessageId =
$DB->LastInsertId();
38 $Message =
new Message($MessageId);
73 $PosterName =
new CWUser($PosterId);
74 return $PosterName->Get(
"UserName");
91 $PosterName =
new CWUser($PosterId);
92 return $PosterName->Get(
"EMail");
131 return $this->
UpdateValue(
"ParentType", $NewValue);
141 return $this->
UpdateValue(
"DatePosted", $NewValue);
151 return $this->
UpdateValue(
"DateEdited", $NewValue);
DateEdited($NewValue=DB_NOVALUE)
Get or set the date the message was last edited.
MessageId()
Get this message's messageId.
Abstraction for forum messages and resource comments.
UpdateValue($ColumnName, $NewValue=DB_NOVALUE)
Convenience function to supply parameters to Database::UpdateValue().
static Create()
Create an empty message object.
SQL database abstraction object with smart query caching.
const PARENTTYPE_RESOURCE
Subject($NewValue=DB_NOVALUE)
Get or set the message subject.
PosterEmail()
Get the email address of the most recent poster.
CWIS-specific user factory class.
Body($NewValue=DB_NOVALUE)
Get or set the message body.
PosterName()
Get the CWIS username of the most recent poster.
Common base class for persistent items store in database.
EditorId($NewValue=DB_NOVALUE)
Get the CWIS user ID of the most recent editor.
DatePosted($NewValue=DB_NOVALUE)
Get or set the date posted.
Delete()
Delete this message from the underlying database.
ParentId($NewValue=DB_NOVALUE)
Get or set the ParentId.
CWIS-specific user class.
PosterId($NewValue=DB_NOVALUE)
Get or set the poster id (e.g., the author) for this message.
ParentType($NewValue=DB_NOVALUE)
Get or set the ParentType.