当前位置: 首页>>代码示例>>PHP>>正文


PHP DashletGeneric::DashletGeneric方法代码示例

本文整理汇总了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;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:25,代码来源:MyCallsDashlet.php

示例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();
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:26,代码来源:MyMeetingsDashlet.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:11,代码来源:MyProjectTaskDashlet.php

示例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();
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:11,代码来源:jjwg_Address_CacheDashlet.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:11,代码来源:MyOpportunitiesDashlet.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:11,代码来源:MyCasesDashlet.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:11,代码来源:MyAccountsDashlet.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:12,代码来源:MyCallsDashlet.php

示例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');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:12,代码来源:MyProjectTaskDashlet.php

示例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();
 }
开发者ID:anmoldeep,项目名称:erp,代码行数:12,代码来源:anmol_University_listDashlet.php

示例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();
 }
开发者ID:mihir-parikh,项目名称:sugarcrm_playground,代码行数:12,代码来源:ins_p_insurance_policyDashlet.php

示例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');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:12,代码来源:MyOpportunitiesDashlet.php

示例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();
 }
开发者ID:BMLP,项目名称:memoryhole-ansible,代码行数:12,代码来源:legal_eventsDashlet.php

示例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');
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:12,代码来源:MyDocumentsDashlet.php

示例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();
 }
开发者ID:santara12,项目名称:OpenQuotesAndContracts,代码行数:12,代码来源:AllContractsDashlet.php


注:本文中的DashletGeneric::DashletGeneric方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。