本文整理汇总了PHP中DashletGeneric::DashletGeneric方法的典型用法代码示例。如果您正苦于以下问题:PHP DashletGeneric::DashletGeneric方法的具体用法?PHP DashletGeneric::DashletGeneric怎么用?PHP DashletGeneric::DashletGeneric使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DashletGeneric
的用法示例。
在下文中一共展示了DashletGeneric::DashletGeneric方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MyCallsDashlet
function MyCallsDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/Calls/Dashlets/MyCallsDashlet/MyCallsDashlet.data.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_CALLS', 'Calls');
}
$this->searchFields = $dashletData['MyCallsDashlet']['searchFields'];
if (empty($def['filters'])) {
if (isset($this->searchFields['status'])) {
if (!empty($this->searchFields['status']['default'])) {
$this->filters['status'] = $this->searchFields['status']['default'];
}
}
}
$this->columns = $dashletData['MyCallsDashlet']['columns'];
/*$this->columns['set_accept_links']= array('width' => '10',
'label' => translate('LBL_ACCEPT_THIS', 'Meetings'),
'sortable' => false,
'related_fields' => array('status'),
'default' => 'true');*/
$this->seedBean = BeanFactory::getBean('Calls');
$this->seedBean->disable_row_level_security = true;
}
示例2: MyMeetingsDashlet
function MyMeetingsDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/Meetings/Dashlets/MyMeetingsDashlet/MyMeetingsDashlet.data.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_MEETINGS', 'Meetings');
}
$this->searchFields = $dashletData['MyMeetingsDashlet']['searchFields'];
if (empty($def['filters'])) {
if (isset($this->searchFields['status'])) {
if (!empty($this->searchFields['status']['default'])) {
$this->filters['status'] = $this->searchFields['status']['default'];
}
}
}
$this->columns = $dashletData['MyMeetingsDashlet']['columns'];
/*$this->columns['set_accept_links']= array('width' => '10',
'label' => translate('LBL_ACCEPT_THIS', 'Meetings'),
'sortable' => false,
'default' => true,
'related_fields' => array('status'));*/
$this->hasScript = true;
// dashlet has javascript attached to it
$this->seedBean = new Meeting();
}
示例3: MyProjectTaskDashlet
function MyProjectTaskDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_PROJECT_TASKS', 'ProjectTask');
}
$this->searchFields = $dashletData['MyProjectTaskDashlet']['searchFields'];
$this->columns = $dashletData['MyProjectTaskDashlet']['columns'];
$this->seedBean = new ProjectTask();
}
示例4: translate
function jjwg_Address_CacheDashlet($id, $def = null)
{
require 'modules/jjwg_Address_Cache/metadata/dashletviewdefs.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'jjwg_Address_Cache');
}
$this->searchFields = $dashletData['jjwg_Address_CacheDashlet']['searchFields'];
$this->columns = $dashletData['jjwg_Address_CacheDashlet']['columns'];
$this->seedBean = new jjwg_Address_Cache();
}
示例5: MyOpportunitiesDashlet
function MyOpportunitiesDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_TOP_OPPORTUNITIES', 'Opportunities');
}
$this->searchFields = $dashletData['MyOpportunitiesDashlet']['searchFields'];
$this->columns = $dashletData['MyOpportunitiesDashlet']['columns'];
$this->seedBean = new Opportunity();
}
示例6: MyCasesDashlet
function MyCasesDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_CASES', 'Cases');
}
$this->searchFields = $dashletData['MyCasesDashlet']['searchFields'];
$this->columns = $dashletData['MyCasesDashlet']['columns'];
$this->seedBean = new aCase();
}
示例7: MyAccountsDashlet
function MyAccountsDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'Accounts');
}
$this->searchFields = $dashletData['MyAccountsDashlet']['searchFields'];
$this->columns = $dashletData['MyAccountsDashlet']['columns'];
$this->seedBean = new Account();
}
示例8: MyCallsDashlet
function MyCallsDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_CALLS', 'Calls');
}
$this->searchFields = $dashletData['MyCallsDashlet']['searchFields'];
$this->columns = $dashletData['MyCallsDashlet']['columns'];
$this->columns['set_accept_links'] = array('width' => '10', 'label' => translate('LBL_ACCEPT_THIS', 'Meetings'), 'sortable' => false, 'related_fields' => array('status'));
$this->seedBean = new Call();
}
示例9: MyProjectTaskDashlet
function MyProjectTaskDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/ProjectTask/Dashlets/MyProjectTaskDashlet/MyProjectTaskDashlet.data.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_LIST_MY_PROJECT_TASKS', 'ProjectTask');
}
$this->searchFields = $dashletData['MyProjectTaskDashlet']['searchFields'];
$this->columns = $dashletData['MyProjectTaskDashlet']['columns'];
$this->seedBean = BeanFactory::getBean('ProjectTask');
}
示例10: translate
function anmol_University_listDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/anmol_University_list/metadata/dashletviewdefs.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'anmol_University_list');
}
$this->searchFields = $dashletData['anmol_University_listDashlet']['searchFields'];
$this->columns = $dashletData['anmol_University_listDashlet']['columns'];
$this->seedBean = new anmol_University_list();
}
示例11: translate
function ins_p_insurance_policyDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/ins_p_insurance_policy/metadata/dashletviewdefs.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'ins_p_insurance_policy');
}
$this->searchFields = $dashletData['ins_p_insurance_policyDashlet']['searchFields'];
$this->columns = $dashletData['ins_p_insurance_policyDashlet']['columns'];
$this->seedBean = new ins_p_insurance_policy();
}
示例12: MyOpportunitiesDashlet
function MyOpportunitiesDashlet($id, $def = null)
{
global $current_user, $app_strings, $dashletData;
require 'modules/Opportunities/Dashlets/MyOpportunitiesDashlet/MyOpportunitiesDashlet.data.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_TOP_OPPORTUNITIES', 'Opportunities');
}
$this->searchFields = $dashletData['MyOpportunitiesDashlet']['searchFields'];
$this->columns = $dashletData['MyOpportunitiesDashlet']['columns'];
$this->seedBean = BeanFactory::getBean('Opportunities');
}
示例13: translate
function legal_eventsDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/legal_events/metadata/dashletviewdefs.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'legal_events');
}
$this->searchFields = $dashletData['legal_eventsDashlet']['searchFields'];
$this->columns = $dashletData['legal_eventsDashlet']['columns'];
$this->seedBean = new legal_events();
}
示例14: MyDocumentsDashlet
function MyDocumentsDashlet($id, $def = null)
{
global $current_user, $app_strings;
require 'modules/Documents/Dashlets/MyDocumentsDashlet/MyDocumentsDashlet.data.php';
parent::DashletGeneric($id, $def);
if (empty($def['title'])) {
$this->title = translate('LBL_HOMEPAGE_TITLE', 'Documents');
}
$this->searchFields = $dashletData['MyDocumentsDashlet']['searchFields'];
$this->columns = $dashletData['MyDocumentsDashlet']['columns'];
$this->seedBean = BeanFactory::getBean('Documents');
}
示例15: AllContractsDashlet
function AllContractsDashlet($id, $def = null)
{
require_once "modules/oqc_Contract/Dashlets/AllContractsDashlet/AllContractsDashlet.data.php";
parent::DashletGeneric($id, $def);
$this->searchFields = $dashletData['AllContractsDashlet']['searchFields'];
$this->columns = $dashletData['AllContractsDashlet']['columns'];
// not only showing my contracts (that are contracts where assigned_user_id == my_user_id)
$this->myItemsOnly = false;
// make sure that DashletGeneric::buildWhere is called
// for more filters see include/generic/SugarWidgets/SugarWidgetFielddate.php
$this->seedBean = new oqc_Contract();
}