<?php

/*
  MailBeez Automatic Trigger Email Campaigns
  http://www.mailbeez.com

  Copyright (c) 2010 - 2012 MailBeez

  Released under the GNU General Public License
 */

///////////////////////////////////////////////////////////////////////////////
///																			 //
///                 MailBeez Core file - do not edit                         //
///                                                                          //
///////////////////////////////////////////////////////////////////////////////

require_once(MH_DIR_CONFIG . 'config_customer_insight/classes/viewbeez.php');

class view_security extends viewbeez
{

// class constructor
    function __construct()
    {
        parent::__construct();
        $this->code = 'view_security';
        $this->module = 'view_security';
        $this->version = '1.0';
        $this->title = mh_lng('MAILBEEZ_VIEW_SECURITY_TITLE');
        $this->description = mh_lng('MAILBEEZ_VIEW_SECURITY_DESCRIPTION');
        $this->sort_order = 100;
        $this->enabled = true;
        $this->hidden = true;

//        $this->has_dashboard_view = true;

        $this->set_template();

        $this->menu_cnt = $this->cnt_notifications();
    }

    function view_security()
    {
        return self::__construct();
    }

    function get_view_content($template)
    {
        $smarty = $this->init_view_content($template);

        return $this->parse_view_content($smarty, $template);
    }

    function get_view_summary()
    {
        return false;
    }

    function get_view_panel()
    {

        return false;

        $smarty = $this->init_view_panel($this->module);

        $content = $this->parse_view_panel($smarty);

        $smarty->assign(array('widget_title' => $this->title,
            'widget_content' => $content,
            'widget_icon_class' => 'icon-flag',
            'widget_badge_cnt' => $cnt_open,
            'warn' => ($cnt_open > 0) ? true : false,
            'widget_view_module' => 'view_dashboard'
        ));

        return $this->panel_parse_widget($smarty);

    }

    function cnt_notifications()
    {
        return 0;
    }

    function get_view_dashboard_widget()
    {
        return false;
        return "cool";
    }

    function get_view_dashboard_content($template)
    {

        $smarty = $this->init_view_dashboard($this->module);
//        $open_conversations_result = $this->get_open_conversations();
//        $smarty->assign('conversations', $open_conversations_result['rows']);

        return $this->parse_view_dashboard($smarty);

        return "cool! Security";
    }

}


?>