<?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_MergedObjectPointer/SP_MergedObjectPointer.php');

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

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

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

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

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