當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。