📄 myproductservicesdashlet.php
字号:
<?php
if(empty($GLOBALS['sugarEntry'])) die('Not A Valid Entry Point');
require_once('include/Dashlets/DashletGeneric.php');
require_once('modules/ProductServices/ProductService.php');
require_once('MyProductServicesDashlet.data.php');
class MyProductServicesDashlet extends DashletGeneric {
function MyProductServicesDashlet($id, $def = null) {
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', 'ProductServices');
$this->searchFields = $dashletData['MyProductServicesDashlet']['searchFields'];
$this->columns = $dashletData['MyProductServicesDashlet']['columns'];
$this->seedBean = new ProductService();
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -