IP.Board  3.3.0
reportLibrary Class Reference

Public Member Functions

 __construct (ipsRegistry $registry)
 buildQueryPermissions ($check='mod')
 buildStatuses ($ignore_html=false)
 buildStatusIcon ($row)
 canReport ($className)
 checkMemberRSSKey ()
 loadPlugin ($plugin_name, $app)
 processUrl ($url, $friendlyTitle='', $friendlyTemplate='')
 rebuildMemberCacheArray ()
 rebuildReportCache ()
 showReportForm ($name, $url, $ex_data=array())
 updateCacheTime ()

Data Fields

 $flag_body = ''
 $flag_cache = array()
 $plugins
 $report_is_complete = 0
 $report_is_new = 0

Protected Attributes

 $cache
 $caches
 $DB
 $lang
 $member
 $member_group_ids
 $memberData
 $registry
 $request
 $settings

Constructor & Destructor Documentation

__construct ( ipsRegistry registry)

Constructor

Parameters:
object$registryRegistry object
Returns:
void

Member Function Documentation

buildQueryPermissions ( check = 'mod')

Builds permissions for several sql queries for various functions

Parameters:
stringbased on mods or users
Returns:
string
buildStatuses ( ignore_html = false)

Builds the status information (and maybe drop down html)

Parameters:
booleanDo we need the drop down?
Returns:
string HTML body
buildStatusIcon ( row)

Returns the correct status icon / flag to display for a report row

Parameters:
arrayReport Row
Returns:
string
canReport ( className)

Check permissions for "can report"

Parameters:
string$classNameReport center class name
Returns:
bool

Fixes the member's RSS Key if none set

Returns:
void
loadPlugin ( plugin_name,
app 
)

Loads plugins into $this->plugins object for later use

Parameters:
string$plugin_nameplugin name (>name<.php)
string$appApp name
Returns:
void
processUrl ( url,
friendlyTitle = '',
friendlyTemplate = '' 
)

Process a URL

Parameters:
stringURL
stringFURL Title
stringFURL Template
Returns:
string Full URL if existing URL was short

Rebuild the member cache array if it is outdated

Returns:
integer New 'total reports' count

Recache report center plugins

Returns:
void
showReportForm ( name,
url,
ex_data = array() 
)

Generates report form HTML

Parameters:
stringTitle - What is being reported
stringURL - what the user can click on (title)
arrayExtra data passed on to the form for processing
Returns:
string

Updates global 'cache time' which forces 'mod caches' to re-cache

Returns:
void

Field Documentation

$registry [protected]

Registry Object Shortcuts


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