Methods summary
public
Comment
|
#
__construct( integer $id = NULL )
Constructor for a comment
Constructor for a comment
Parameters
- $id
- set to the ID of the comment if not a new one.
Returns
Overrides
|
public
|
#
setDefaults( )
Sets up default items on new comment objects
Sets up default items on new comment objects
Overrides
|
public
string
|
#
getDateTime( )
returns the comment date/time
returns the comment date/time
Returns
string
|
public
|
#
setDateTime( string $datetime )
Sets a comment date/time value
Sets a comment date/time value
Parameters
|
public
integer
|
#
getOwnerID( )
Returns the id of the comment owner
Returns the id of the comment owner
Returns
integer
|
public
|
#
setOwnerID( integer $value )
Sets the id of the owner of the comment
Sets the id of the owner of the comment
Parameters
|
public
string
|
#
getName( )
Returns the commentor's name
Returns the commentor's name
Returns
string
|
public
|
#
setName( string $value )
Sets the commentor's name
Sets the commentor's name
Parameters
|
public
string
|
#
getEmail( )
returns the email address of the commentor
returns the email address of the commentor
Returns
string
|
public
|
#
setEmail( string $value )
Sets the email address of the commentor
Sets the email address of the commentor
Parameters
|
public
string
|
#
getWebsite( )
returns the Website of the commentor
returns the Website of the commentor
Returns
string
|
public
|
#
setWebsite( string $value )
Stores the website of the commentor
Stores the website of the commentor
Parameters
|
public
integer
|
#
getInModeration( )
Returns true if the comment is marked for moderation
Returns true if the comment is marked for moderation
Returns
integer
|
public
|
#
setInModeration( integer $value )
Sets the moderation flag of the comment
Sets the moderation flag of the comment
Parameters
|
public
string
|
#
getType( )
Returns the 'type' of the comment. i.e. the class of the owner object
Returns the 'type' of the comment. i.e. the class of the owner object
Returns
string
|
public
|
#
setType( string $type )
Sets the 'type' field of the comment
Sets the 'type' field of the comment
Parameters
|
public
string
|
#
getIP( )
Returns the IP address of the comment poster
Returns the IP address of the comment poster
Returns
string
|
public
|
#
setIP( string $value )
Sets the IP address field of the comment
Sets the IP address field of the comment
Parameters
|
public
boolean
|
#
getPrivate( )
Returns true if the comment is flagged private
Returns true if the comment is flagged private
Returns
boolean
|
public
|
#
setPrivate( boolean $value )
Sets the private flag of the comment
Sets the private flag of the comment
Parameters
|
public
boolean
|
#
getAnon( )
Returns true if the comment is flagged anonymous
Returns true if the comment is flagged anonymous
Returns
boolean
|
public
|
#
setAnon( boolean $value )
Sets the anonymous flag of the comment
Sets the anonymous flag of the comment
Parameters
|
public
string
|
#
getCustomData( )
Returns the custom data field of the comment
Returns the custom data field of the comment
Returns
string
|
public
|
#
setCustomData( string $value )
Stores the custom data field of the comment
Stores the custom data field of the comment
Parameters
|