Dashboard

Dashboard

  1. You can manage your dashboard layout by adding widgets.
  2. You can refresh, minimize, or delete a widget.
  3. Widgets can be moved by dragging the widget bar around.

Dashboard Plugins

You can easily write your own custom dashboard plugins by extending the Model_Dashboard_Widget class.

Dashboard plugins can be located in the following directory:

/usr/local/psa/admin/plib/modules/sentinel/library/application/classes/Model/Dashboard/Plugin/

Dashboard plugin example:

<?php defined('SYSPATH') OR die('No direct access allowed.');

/**
 * Model_Dashboard_Plugin_Announcements
 * @package          application
 * @category         Models
 * @author           Danami
 */
class Model_Dashboard_Plugin_Announcements extends Model_Dashboard_Widget {

    /**
     * Plugin constructor
     * @access    public
     * @return    void
     */
    public function __construct()
    {
        // plugin meta
        $this->_data['id']          = 'Announcements';
        $this->_data['title']       = __('Announcements');
        $this->_data['author']      = 'Danami';
        $this->_data['image']       = URL::asset('img/application/dashboard/plugins/announcements.png');
    }

    /**
     * loads our widget
     * @access    public
     * @return    void
     */
    public function load_widget()
    {
        // assign our view
        $this->_data['output'] = new View('dashboard/plugins/announcements');

        // get our announcments feed
        $feed = Feed::fetch('announcements');

        // assign to the template
        $this->_data['output']->bind('feed', $feed);
    }
}