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


PHP DashletGeneric类代码示例

本文整理汇总了PHP中DashletGeneric的典型用法代码示例。如果您正苦于以下问题:PHP DashletGeneric类的具体用法?PHP DashletGeneric怎么用?PHP DashletGeneric使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DashletGeneric类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: 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

示例3: jjwg_Address_CacheDashlet

 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

示例4: 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

示例5: 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

示例6: 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

示例7: MyBugsDashlet

 function MyBugsDashlet($id, $def = null)
 {
     global $current_user, $app_strings;
     require 'modules/Bugs/Dashlets/MyBugsDashlet/MyBugsDashlet.data.php';
     parent::DashletGeneric($id, $def);
     $this->searchFields = $dashletData['MyBugsDashlet']['searchFields'];
     $this->columns = $dashletData['MyBugsDashlet']['columns'];
     if (empty($def['title'])) {
         $this->title = translate('LBL_LIST_MY_BUGS', 'Bugs');
     }
     $this->seedBean = new Bug();
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:12,代码来源:MyBugsDashlet.php

示例8: opalo_items_solicitud_cotizacionDashlet

 function opalo_items_solicitud_cotizacionDashlet($id, $def = null)
 {
     global $current_user, $app_strings;
     require 'modules/opalo_items_solicitud_cotizacion/metadata/dashletviewdefs.php';
     parent::DashletGeneric($id, $def);
     if (empty($def['title'])) {
         $this->title = translate('LBL_HOMEPAGE_TITLE', 'opalo_items_solicitud_cotizacion');
     }
     $this->searchFields = $dashletData['opalo_items_solicitud_cotizacionDashlet']['searchFields'];
     $this->columns = $dashletData['opalo_items_solicitud_cotizacionDashlet']['columns'];
     $this->seedBean = new opalo_items_solicitud_cotizacion();
 }
开发者ID:juanOspina13,项目名称:SRX,代码行数:12,代码来源:opalo_items_solicitud_cotizacionDashlet.php

示例9: anmol_University_listDashlet

 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

示例10: ins_p_insurance_policyDashlet

 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

示例11: d1_The_possible_transactionDashlet

 function d1_The_possible_transactionDashlet($id, $def = null)
 {
     global $current_user, $app_strings;
     require 'modules/d1_The_possible_transaction/metadata/dashletviewdefs.php';
     parent::DashletGeneric($id, $def);
     if (empty($def['title'])) {
         $this->title = translate('LBL_HOMEPAGE_TITLE', 'd1_The_possible_transaction');
     }
     $this->searchFields = $dashletData['d1_The_possible_transactionDashlet']['searchFields'];
     $this->columns = $dashletData['d1_The_possible_transactionDashlet']['columns'];
     $this->seedBean = new d1_The_possible_transaction();
 }
开发者ID:doanthaibao,项目名称:dataved,代码行数:12,代码来源:d1_The_possible_transactionDashlet.php

示例12: MyProjectDashlet

 function MyProjectDashlet($id, $def = null)
 {
     global $current_user, $app_strings;
     require 'custom/modules/Project/Dashlets/MyProjectDashlet/MyProjectDashlet.data.php';
     parent::DashletGeneric($id, $def);
     if (empty($def['title'])) {
         $this->title = translate('LBL_LIST_MY_PROJECT', 'Project');
     }
     $this->searchFields = $dashletData['MyProjectDashlet']['searchFields'];
     $this->columns = $dashletData['MyProjectDashlet']['columns'];
     $this->seedBean = new Project();
 }
开发者ID:anmoldeep,项目名称:erp,代码行数:12,代码来源:MyProjectDashlet.php

示例13: process

 /**
  * Overrides the generic process to include custom logic for email addresses,
  * since they are no longer stored in  a list view friendly manner.
  * (A record may have an undetermined number of email addresses).
  *
  * @param array $lvsParams
  */
 function process($lvsParams = array())
 {
     if (isset($this->displayColumns) && array_search('email1', $this->displayColumns) !== false) {
         $lvsParams['custom_select'] = ', email_address as email1';
         $lvsParams['custom_from'] = "LEFT JOIN email_addr_bean_rel eabr ON eabr.deleted = 0 AND bean_module = 'Accounts' " . "AND eabr.bean_id = accounts.id AND primary_address = 1 " . "LEFT JOIN email_addresses ea ON ea.deleted = 0 AND ea.id = eabr.email_address_id";
     }
     parent::process($lvsParams);
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:15,代码来源:MyAccountsDashlet.php

示例14: process

 function process($lvsParams = array())
 {
     global $current_language, $app_list_strings, $current_user;
     $mod_strings = return_module_language($current_language, 'Meetings');
     // handle myitems only differently --  set the custom query to show assigned meetings and invitee meetings
     if ($this->myItemsOnly) {
         //join with meeting_users table to process related users
         $this->seedBean->listview_inner_join = array('LEFT JOIN  meetings_users m_u on  m_u.meeting_id = meetings.id');
         //set the custom query to retrieve invitees AND assigned meetings
         $lvsParams['custom_where'] = ' AND (meetings.assigned_user_id = \'' . $current_user->id . '\' OR (m_u.user_id = \'' . $current_user->id . '\' AND m_u.deleted=0)) ';
     }
     $this->myItemsOnly = false;
     //query needs to be distinct to avoid multiple records being returned for the same meeting (one for each invited user),
     //so we need to make sure date entered is also set so the sort can work with the group by
     $lvsParams['custom_select'] = ', meetings.date_entered ';
     $lvsParams['distinct'] = true;
     parent::process($lvsParams);
     $keys = array();
     foreach ($this->lvs->data['data'] as $num => $row) {
         $keys[] = $row['ID'];
     }
     // grab meeting status
     if (!empty($keys)) {
         $query = "SELECT meeting_id, accept_status FROM meetings_users WHERE deleted = 0 AND user_id = '" . $current_user->id . "' AND meeting_id IN ('" . implode("','", $keys) . "')";
         $result = $GLOBALS['db']->query($query);
         while ($row = $GLOBALS['db']->fetchByAssoc($result)) {
             $rowNums = $this->lvs->data['pageData']['idIndex'][$row['meeting_id']];
             // figure out which rows have this guid
             foreach ($rowNums as $rowNum) {
                 $this->lvs->data['data'][$rowNum]['ACCEPT_STATUS'] = $row['accept_status'];
             }
         }
     }
     foreach ($this->lvs->data['data'] as $rowNum => $row) {
         if (empty($this->lvs->data['data'][$rowNum]['DURATION_HOURS'])) {
             $this->lvs->data['data'][$rowNum]['DURATION'] = '0' . $mod_strings['LBL_HOURS_ABBREV'];
         } else {
             $this->lvs->data['data'][$rowNum]['DURATION'] = $this->lvs->data['data'][$rowNum]['DURATION_HOURS'] . $mod_strings['LBL_HOURS_ABBREV'];
         }
         if (empty($this->lvs->data['data'][$rowNum]['DURATION_MINUTES']) || empty($this->seedBean->minutes_values[$this->lvs->data['data'][$rowNum]['DURATION_MINUTES']])) {
             $this->lvs->data['data'][$rowNum]['DURATION'] .= '00';
         } else {
             $this->lvs->data['data'][$rowNum]['DURATION'] .= $this->seedBean->minutes_values[$this->lvs->data['data'][$rowNum]['DURATION_MINUTES']];
         }
         $this->lvs->data['data'][$rowNum]['DURATION'] .= $mod_strings['LBL_MINSS_ABBREV'];
         if (!empty($this->lvs->data['data'][$rowNum]['STATUS']) && $this->lvs->data['data'][$rowNum]['STATUS'] == $app_list_strings['meeting_status_dom']['Planned']) {
             if ($this->lvs->data['data'][$rowNum]['ACCEPT_STATUS'] == '') {
                 //if no status has been set, then do not show accept options
                 $this->lvs->data['data'][$rowNum]['SET_ACCEPT_LINKS'] = "<div id=\"accept" . $this->id . "\" class=\"acceptMeeting\"></div>";
             } elseif ($this->lvs->data['data'][$rowNum]['ACCEPT_STATUS'] == 'none') {
                 $this->lvs->data['data'][$rowNum]['SET_ACCEPT_LINKS'] = "<div id=\"accept" . $this->id . "\" class=\"acceptMeeting\"><a title=\"" . $app_list_strings['dom_meeting_accept_options']['accept'] . "\" href=\"javascript:SUGAR.util.retrieveAndFill('index.php?module=Activities&to_pdf=1&action=SetAcceptStatus&id=" . $this->id . "&object_type=Meeting&object_id=" . $this->lvs->data['data'][$rowNum]['ID'] . "&accept_status=accept', null, null, SUGAR.mySugar.retrieveDashlet, '{$this->id}');\">" . SugarThemeRegistry::current()->getImage("accept_inline", "border='0'", null, null, '.gif', $app_list_strings['dom_meeting_accept_options']['accept']) . "</a>&nbsp;<a title=\"" . $app_list_strings['dom_meeting_accept_options']['tentative'] . "\" href=\"javascript:SUGAR.util.retrieveAndFill('index.php?module=Activities&to_pdf=1&action=SetAcceptStatus&id=" . $this->id . "&object_type=Meeting&object_id=" . $this->lvs->data['data'][$rowNum]['ID'] . "&accept_status=tentative', null, null, SUGAR.mySugar.retrieveDashlet, '{$this->id}');\">" . SugarThemeRegistry::current()->getImage("tentative_inline", "border='0'", null, null, '.gif', $app_list_strings['dom_meeting_accept_options']['tentative']) . "</a>&nbsp;<a title=\"" . $app_list_strings['dom_meeting_accept_options']['decline'] . "\" href=\"javascript:SUGAR.util.retrieveAndFill('index.php?module=Activities&to_pdf=1&action=SetAcceptStatus&id=" . $this->id . "&object_type=Meeting&object_id=" . $this->lvs->data['data'][$rowNum]['ID'] . "&accept_status=decline', null, null, SUGAR.mySugar.retrieveDashlet, '{$this->id}');\">" . SugarThemeRegistry::current()->getImage("decline_inline", "border='0'", null, null, '.gif', $app_list_strings['dom_meeting_accept_options']['decline']) . "</a></div>";
             } else {
                 $this->lvs->data['data'][$rowNum]['SET_ACCEPT_LINKS'] = $app_list_strings['dom_meeting_accept_status'][$this->lvs->data['data'][$rowNum]['ACCEPT_STATUS']];
             }
         }
     }
     $this->displayColumns[] = "set_accept_links";
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:58,代码来源:MyMeetingsDashlet.php

示例15: process

 function process($lvsParams = array())
 {
     if (!empty($this->displayColumns)) {
         if (array_search('amount', $this->displayColumns)) {
             $this->displayColumns[array_search('amount', $this->displayColumns)] = 'amount_usdollar';
         }
     }
     parent::process($lvsParams);
 }
开发者ID:delkyd,项目名称:sugarcrm_dev,代码行数:9,代码来源:MyOpportunitiesDashlet.php


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