<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */
/*********************************************************************************
 * $Id$
 * Description:  Defines the English language pack for the base application.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/

require_once('include/Dashlets/DashletGeneric.php');
require_once('modules/SP_SecurityRoles/SP_SecurityRoles.php');

class SP_SecurityRolesDashlet extends DashletGeneric { 
    function SP_SecurityRolesDashlet($id, $def = null) {
		global $current_user, $app_strings;
		require('modules/SP_SecurityRoles/metadata/dashletviewdefs.php');

        parent::DashletGeneric($id, $def);

        if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', 'SP_SecurityRoles');

        $this->searchFields = $dashletData['SP_SecurityRolesDashlet']['searchFields'];
        $this->columns = $dashletData['SP_SecurityRolesDashlet']['columns'];

        $this->seedBean = new SP_SecurityRoles();        
    }
}