class CReporting


Located at : UKNOWVA_ROOT/components/com_community/libraries/reporting.php

Properties

$sendEmail
$actions
$report

Methods

createReport($title, $link, $message)

Method to use to create a new report item. Before adding / registering a report action, a report needs to be created first.

boolean
addAction($label, $actionData, $args, $default = false)

Caller can specify what needed to be done by admin

addActions($actions)

No description

getReportingHTML($reportText = '', $reportFunc, $args)

Get the html code to be added to the page

executeDefaultAction()

Executes a default action

Details

at line 31
createReport($title, $link, $message)

Method to use to create a new report item. Before adding / registering a report action, a report needs to be created first.

Parameters

$title Title that is shown to back end administrator
$link Link of the reported item
$message Reported message

at line 102
boolean addAction($label, $actionData, $args, $default = false)

Caller can specify what needed to be done by admin

Parameters

$label The text label that is displayed
$actionData The function name that needs to be executed.
$args The arguments that needs to be parsed to the function
$default Sets whether the current action is the default action when X number of reports is reached.

Return Value

boolean True on success.

at line 142
addActions($actions)

Parameters

$actions

at line 174
getReportingHTML($reportText = '', $reportFunc, $args)

Get the html code to be added to the page

Parameters

$reportText
$reportFunc
$args

at line 204
executeDefaultAction()

Executes a default action