IP.Board  3.3.0
comments_blog_entries Class Reference
Inheritance diagram for comments_blog_entries:
classes_comments_renderer

Public Member Functions

 __construct ()
 akismetLog ($comment, $action, $akismetError='')
 can ($type, array $array)
 count ($parent)
 fetchParent ($id)
 perPage ()
 postDelete ($commentIds, $parentId)
 postSave ($type, array $array)
 postVisibility ($toggle, $commentIds, $parentId)
 preSave ($type, array $array)
 remapKeys ($type='comment')
 setEntryData ($entry=null)
 settings ()
 skin ()
 table ()
 whoAmI ()

Protected Member Functions

 _checkCommentQueued ($blog)
 _checkForNewComment ($blog, $entry)

Protected Attributes

 $_entries = array()
 $_parentRemap
 $_remap
 $isAkismetSpam = null

Constructor & Destructor Documentation

CONSTRUCTOR

Returns:
void

Reimplemented from classes_comments_renderer.


Member Function Documentation

_checkCommentQueued ( blog) [protected]

Check for queued comments

Returns:
bool
_checkForNewComment ( blog,
entry 
) [protected]

perform: Check for new comment

Returns:
bool
akismetLog ( comment,
action,
akismetError = '' 
)

Log akismet call

Parameters:
array$commentData sent to akismet
string$actionAction performed
string$akismetErrorAkismet error, if any was returned
Returns:
void
can ( type,
array $  array 
)

Perform a permission check

Parameters:
stringType of check (add/edit/delete/editall/deleteall/approve all)
arrayArray of GENERIC data
Returns:
true or string to be used in exception

Reimplemented from classes_comments_renderer.

count ( parent)

Fetch a total count of comments we can see

Parameters:
mixedparent Id or parent array
Returns:
int

Reimplemented from classes_comments_renderer.

fetchParent ( id)

Fetch parent

Returns:
array
perPage ( )

Number of items per page

Returns:
int

Reimplemented from classes_comments_renderer.

postDelete ( commentIds,
parentId 
)

Post delete. Can do stuff and that

Parameters:
arrayArray of comment IDs to be deleted
intParent ID
Returns:
void

Reimplemented from classes_comments_renderer.

postSave ( type,
array $  array 
)

Post save Accepts an array of GENERIC data and allows manipulation after it's added to DB

Parameters:
stringType of action (edit/add)
arrayArray of GENERIC data (comment_xxxx)
Returns:
array Array of GENERIC data

Reimplemented from classes_comments_renderer.

postVisibility ( toggle,
commentIds,
parentId 
)

Toggles visibility

Parameters:
stringon/off
arrayArray of comment IDs to be deleted
intParent ID
Returns:
void

Reimplemented from classes_comments_renderer.

preSave ( type,
array $  array 
)

Pre save Accepts an array of GENERIC data and allows manipulation before it's added to DB

Parameters:
stringType of save (edit/add)
arrayArray of GENERIC data (comment_xxxx)
Returns:
array Array of GENERIC data

Reimplemented from classes_comments_renderer.

remapKeys ( type = 'comment')

Returns remap keys (generic => local)

Returns:
array
settings ( )

Fetch settings

Returns:
array
skin ( )

Skin class

Returns:
string

Reimplemented from classes_comments_renderer.

table ( )

Comment table

Returns:
string
whoAmI ( )

Who am I?

Returns:
string

Field Documentation

$_parentRemap [protected]
Initial value:
 array('parent_id'                      => 'entry_id',
                                                                        'parent_owner_id'       => 'entry_author_id',
                                                                        'parent_parent_id'  => 'blog_id',
                                                                        'parent_title'      => 'entry_name',
                                                                        'parent_seo_title'  => 'entry_name_seo',
                                                                        'parent_date'       => 'entry_date'
                                                                        )

Internal parent remap array

Parameters:
array
$_remap [protected]
Initial value:
 array( 'comment_id'                            => 'comment_id',
                                                           'comment_author_id'          => 'member_id',
                                                           'comment_author_name'        => 'member_name',
                                                           'comment_text'                       => 'comment_text',
                                                           'comment_ip_address'         => 'ip_address',
                                                           'comment_edit_date'          => 'comment_edit_time',
                                                           'comment_date'                       => 'comment_date',
                                                           'comment_approved'           => 'comment_approved',
                                                           'comment_parent_id'          => 'entry_id'
                                                         )

Internal remap array

Parameters:
array

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables