Comment __construct(
[int
$id = NULL]
)
|
|
Constructor for a comment
Parameters:
int |
$id: |
set to the ID of the comment if not a new one. |
Returns true if the comment is flagged anonymous
Returns the custom data field of the comment
returns the comment date/time
returns the email address of the commentor
Returns true if the comment is marked for moderation
Returns the IP address of the comment poster
Returns the commentor's name
Returns the id of the comment owner
Returns true if the comment is flagged private
Returns the 'type' of the comment. i.e. the class of the owner object
returns the Website of the commentor
void setAnon(
bool
$value
)
|
|
Sets the anonymous flag of the comment
Parameters:
void setComment(
string
$value
)
|
|
Stores the comment text
Parameters:
void setCustomData(
string
$value
)
|
|
Stores the custom data field of the comment
Parameters:
void setDateTime(
string
$datetime
)
|
|
Sets a comment date/time value
Parameters:
void setEmail(
string
$value
)
|
|
Sets the email address of the commentor
Parameters:
void setInModeration(
int
$value
)
|
|
Sets the moderation flag of the comment
Parameters:
void setIP(
string
$value
)
|
|
Sets the IP address field of the comment
Parameters:
void setName(
string
$value
)
|
|
Sets the commentor's name
Parameters:
void setOwnerID(
int
$value
)
|
|
Sets the id of the owner of the comment
Parameters:
void setPrivate(
bool
$value
)
|
|
Sets the private flag of the comment
Parameters:
void setType(
string
$type
)
|
|
Sets the 'type' field of the comment
Parameters:
void setWebsite(
string
$value
)
|
|
Stores the website of the commentor
Parameters: