Comments main comment class

Comments link up to the object they refer to.

package net.nehmer.comments

 Methods

_log_moderation ($action, $reporter, $extra)

Parameters

$action

$reporter

$extra

_on_updated ()

check_spam ($config)

Check the post against possible spam filters.

This will update post status on the background and log the information.

Parameters

$config

confirm_abuse ()

Marks the message as confirmed abuse

confirm_junk ()

Marks the message as confirmed junk (spam)

count_by_objectguid ($guid, $status)

Returns the number of comments associated with a given object.
Static

This is intended for outside usage to render stuff like "15 comments". The count is executed unchecked.

Parameters

$guid

$status

Returns

intNumber of comments matching a given result.

count_by_objectguid_filter_anonymous ($guid, $status)

Returns the number of comments associated with a given object by actual registered users.
Static

This is intended for outside usage to render stuff like "15 comments". The count is executed unchecked.

Parameters

$guid

$status

Returns

intNumber of comments matching a given result.

get_class_magic_default_privileges ()

DBA magic defaults which assign write privileges for all USERS, so that they can add new comments at will.

get_default_status ()

Static

get_logs ()

get_parent_guid_uncached ()

Link to the parent object specified in the objectguid field.

list_by_objectguid (\guid $guid, $limit, $order, $paging, $status)

Returns a list of comments applicable to a given object, ordered by creation date.
Static

Parameters

$guid

\guidThe GUID of the object to bind to.

$limit

$order

$paging

$status

Returns

ArrayList of applicable comments.

list_by_objectguid_filter_anonymous (\guid $guid, $limit, $order, $paging, $status)

Returns a list of comments applicable to a given object not diplaying empty comments or anonymous posts, ordered by creation date.
Static

Parameters

$guid

\guidThe GUID of the object to bind to.

$limit

$order

$paging

$status

Returns

ArrayList of applicable comments.

report_abuse ()

report_not_abuse ()

Marks the message as not abuse

_cache_ratings ()

Update possible ratings cache as requested in configuration

_construct_message ()

This function constructs the message

_send_notifications ()

 Properties

 

mixed $__mgdschema_class_name__

 

mixed $__midcom_class_name__

 

mixed $_send_notification

 

mixed $_sudo_requested

 Constants

 

ABUSE

 

JUNK

 

MODERATED

 

NEW_ANONYMOUS

 

NEW_USER

 

REPORTED_ABUSE