Member Function Documentation
| can |
( |
$ |
type, |
|
|
array $ |
array |
|
) |
| |
Perform a permission check
- Parameters:
-
| string | Type of check (add/edit/delete/editall/deleteall/approve all) |
| array | Array of GENERIC data |
- Returns:
- true or string to be used in exception
Reimplemented from classes_comments_renderer.
Fetch a total count of comments we can see
- Parameters:
-
| mixed | parent Id or parent array |
- Returns:
- int
Reimplemented from classes_comments_renderer.
Fetch parent
- Returns:
- array
Post delete. Can do stuff and that
- Parameters:
-
| array | Array of comment IDs to be deleted |
| int | Parent ID |
- Returns:
- void
Reimplemented from classes_comments_renderer.
| postSave |
( |
$ |
type, |
|
|
array $ |
array, |
|
|
$ |
commentId = 0, |
|
|
$ |
parentId = 0 |
|
) |
| |
Post save Accepts an array of GENERIC data and allows manipulation after it's added to DB
- Parameters:
-
| string | Type of action (edit/add) |
| array | Array of GENERIC data (comment_xxxx) |
| int | Comment id (if available) |
| int | Parent id |
- Returns:
- array Array of GENERIC data
Returns remap keys (generic => local)
- Returns:
- array
Fetch settings
- Returns:
- array
Comment table
- Returns:
- string
Field Documentation
$_parentRemap [protected] |
Initial value: array( 'parent_id' => 'id',
'parent_owner_id' => 'updated_by',
'parent_parent_id' => 'uid',
'parent_title' => 'title',
'parent_seo_title' => 'seoname',
'parent_date' => 'date_created' )
Internal parent remap array
- Parameters:
-
Initial value: array( 'comment_id' => 'id',
'comment_author_id' => 'comment_by',
'comment_author_name' => 'author_name',
'comment_text' => 'comment',
'comment_ip_address' => 'ip_address',
'comment_edit_date' => 'edit_date',
'comment_date' => 'comment_date',
'comment_approved' => 'approved',
'comment_parent_id' => 'rid' )
Internal remap array
- Parameters:
-
The documentation for this class was generated from the following file:
- admin/applications/core/extensions/comments/reports.php