Class: IPAddressReport

IPAddressReport

new IPAddressReport(args)

IP Address Report builder

Name Type Description
args Object report arguments
Example
var ip_report = new IPAddressReport({
    users: { username: ..., user_id: ... }, // user to apply action to
    bb   : bb, // BulletinBoard object
});

Methods

Create an Action to download the report

Returns:
Type Description
Action download the report and define the 'ip address report' key

bbcode(){jQuery.Promise}

Get the report BBCode

Returns:
Type Description
jQuery.Promise

cache_timeout(timeout)

Set the time after which the report will need to be redownloaded

the special values 0 and Infinity set the cache to immediately/never expire.
Name Type Description
timeout Number (Epoch) time when the cache will expire

html(){jQuery.Promise}

Get the report HTML

Returns:
Type Description
jQuery.Promise

Set the list of affected users

Name Type Description
users Array.<Object> list of users