Reports

Report Description
Antispam and Antivirus Rates The antispam and antivirus daily rates.
Antispam - Ham Client IP Addresses The top ham client IP addresses.
Antispam - Ham Client IP Countries The top ham client IP countries.
Antispam - Ham Client IP Locations The top ham client IP locations.
Antispam - Ham Languages The top ham languages.
Antispam - Ham Recipients The antispam top ham recipients.
Antispam - Ham Relay Countries The top ham relay countries.
Antispam - Ham Rules The top ham rules.
Antispam - Ham Statistics The ham statistics.
Antispam - Ham Subject The top ham subjects.
Antispam - Rule Statistics The spamassassin rule statistics.
Antispam - Spam Client IP Addresses The top spam client IP Addresses.
Antispam - Spam Client IP Countries The top spam client IP countries.
Antispam - Spam Client IP Locations The top spam client IP locations.
Antispam - Spam Languages The top spam languages.
Antispam - Spam Recipients The top spam recipients.
Antispam - Spam Relay Countries The top spam relay countries.
Antispam - Spam Rules The top spam rules.
Antispam - Spam Senders The top spam senders.
Antispam - Spam Statistics The spam statistics.
Antispam - Rule Statistics The spamassassin rule statistics.
Antivirus - Virus Names The top virus names.
Antivirus - Virus Recipients The top virus recipients.
Antivirus - Virus Senders The top virus senders.
Antivirus - Virus Statistics The top virus recipients.
Antivirus - Virus Recipients The virus statistics.
Antivirus - Virus Subjects The top virus subjects.

Report Plugins

You can easily write your own custom reports by extending the Model_Report class.

Report plugins are located in the following directory:

/usr/local/psa/admin/plib/modules/warden/library/application/classes/Model/Report/Plugin/

Report plugins all extend the following base class:


<?php defined('SYSPATH') or die('No direct script access.');
/**
 * Model_Report
 * @package          modules/report
 * @category         Models
 * @author           Danami
 * @copyright    (c) 2016 Danami http://www.danami.com
 */
class Model_Report extends Automodeler
{
    /**
     * Model data
     * @access    protected
     * @var    array
     */
    protected $_data = array(

        // plugin data
        'enabled'     => TRUE,
        'id'          => '',
        'title'       => '',
        'description' => '',
        'author'      => '',
        'image'       => '',
        'url'         => '',

        // report data
        'start_time'  => '',
        'end_time'    => '',
        'timespan'    => '',
        'domain_id'   => '',
        'renderer'    => '',
        'renderers'   => array(),
        'options'     => array(),
        'theme'       => array(),
        'series'      => array(),
        'output'      => '',
        'refresh'     => 0
    );

    /**
     * Loads the reports series data based of a passed in query
     * @access    public
     * @return    array
     */
    public function load_series(Database_Query_Builder_Select $query = NULL){}

    /**
     * loads the plot options based on the renderer type
     * @access    public
     * @return    void
     */
    public function options(){}

    /**
     * Get the model output
     * @access    public
     * @param     string    $id           element id
     * @param     string    $width        width of the chart (in px or %)
     * @param     string    $height       height of the chart (in px)
     * @return    string
     */
    public function output($id='chart', $width='100%', $height='325px'){} 

)
?>