0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-05 14:39:45 +00:00
salesagility_SuiteCRM/modules/jjwg_Areas/Dashlets/jjwg_AreasDashlet/jjwg_AreasDashlet.php
Dillon-Brown 4ee7a709a0 Remove PHP4 constructors
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-26 21:50:24 +00:00

29 lines
757 B
PHP
Executable file

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
require_once('include/Dashlets/DashletGeneric.php');
require_once('modules/jjwg_Areas/jjwg_Areas.php');
class jjwg_AreasDashlet extends DashletGeneric
{
public function __construct($id, $def = null)
{
require('modules/jjwg_Areas/metadata/dashletviewdefs.php');
parent::__construct($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'jjwg_Areas');
}
$this->searchFields = $dashletData['jjwg_AreasDashlet']['searchFields'];
$this->columns = $dashletData['jjwg_AreasDashlet']['columns'];
$this->seedBean = BeanFactory::newBean('jjwg_Areas');
}
}