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


PHP SugarBean::get_list_view_array方法代码示例

本文整理汇总了PHP中SugarBean::get_list_view_array方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarBean::get_list_view_array方法的具体用法?PHP SugarBean::get_list_view_array怎么用?PHP SugarBean::get_list_view_array使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SugarBean的用法示例。


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

示例1: substr

 function get_list_view_data()
 {
     $ret_array = parent::get_list_view_array();
     if (!empty($ret_array['STATUS']) && $ret_array['STATUS'] > 0) {
         $ret_array['STATUS'] = '<input type="checkbox" class="checkbox" style="checkbox" checked disabled>';
     } else {
         $ret_array['STATUS'] = '<input type="checkbox" class="checkbox" style="checkbox" disabled>';
     }
     if (strlen($ret_array['URL']) > 63) {
         $ret_array['URL'] = substr($ret_array['URL'], 0, 50) . '...' . substr($ret_array['URL'], -10);
     }
     $ret_array['CREATED_BY'] = get_assigned_user_name($this->created_by);
     $ret_array['PLACEMENT'] = translate('DROPDOWN_PLACEMENT', 'iFrames', $ret_array['PLACEMENT']);
     $ret_array['TYPE'] = translate('DROPDOWN_TYPE', 'iFrames', $ret_array['TYPE']);
     return $ret_array;
 }
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:16,代码来源:iFrame.php

示例2: strtolower

 function get_list_view_data()
 {
     global $locale, $current_user;
     $temp_array = parent::get_list_view_array();
     $related_type = $temp_array['RELATED_TYPE'];
     $related_id = $temp_array['RELATED_ID'];
     $is_person = SugarModule::get($related_type)->moduleImplements('Person');
     if ($is_person) {
         $query = "SELECT first_name, last_name FROM " . strtolower($related_type) . " WHERE id ='" . $related_id . "'";
     } else {
         $query = "SELECT name FROM " . strtolower($related_type) . " WHERE id ='" . $related_id . "'";
     }
     $result = $this->db->query($query);
     $row = $this->db->fetchByAssoc($result);
     if ($row) {
         $temp_array['RECIPIENT_NAME'] = $is_person ? $locale->getLocaleFormattedName($row['first_name'], $row['last_name'], '') : $row['name'];
     }
     //also store the recipient_email address
     $query = "SELECT addr.email_address FROM email_addresses addr,email_addr_bean_rel eb WHERE eb.deleted=0 AND addr.id=eb.email_address_id AND bean_id ='" . $related_id . "' AND primary_address = '1'";
     $result = $this->db->query($query);
     $row = $this->db->fetchByAssoc($result);
     if ($row) {
         $temp_array['RECIPIENT_EMAIL'] = $row['email_address'];
     }
     $this->email1 = $temp_array['RECIPIENT_EMAIL'];
     $temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
开发者ID:jgera,项目名称:sugarcrm_dev,代码行数:28,代码来源:EmailMan.php

示例3: strtolower

 function get_list_view_data()
 {
     global $locale;
     $temp_array = parent::get_list_view_array();
     $query = "select first_name, last_name from " . strtolower($temp_array['RELATED_TYPE']) . " where id ='" . $temp_array['RELATED_ID'] . "'";
     $result = $this->db->query($query);
     $row = $this->db->fetchByAssoc($result);
     if ($row) {
         $full_name = $locale->getLocaleFormattedName($row['first_name'], $row['last_name'], '');
         $temp_array['RECIPIENT_NAME'] = $full_name;
     }
     //also store the recipient_email address
     $query = "select addr.email_address from email_addresses addr,email_addr_bean_rel eb where eb.deleted=0 and addr.id=eb.email_address_id and bean_id ='" . $temp_array['RELATED_ID'] . "' and primary_address = '1'";
     $result = $this->db->query($query);
     $row = $this->db->fetchByAssoc($result);
     if ($row) {
         $temp_array['RECIPIENT_EMAIL'] = $row['email_address'];
     }
     return $temp_array;
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:20,代码来源:EmailMan.php

示例4: strtolower

 function get_list_view_data()
 {
     global $locale, $current_user;
     $temp_array = parent::get_list_view_array();
     $related_type = $temp_array['RELATED_TYPE'];
     $related_type = strtolower($related_type);
     $related_type = ucfirst($related_type);
     $related_id = $temp_array['RELATED_ID'];
     $related_bean = BeanFactory::getBean($related_type, $related_id);
     if ($related_bean) {
         $temp_array['RECIPIENT_NAME'] = $related_bean->get_summary_text();
     }
     //also store the recipient_email address
     $query = "SELECT addr.email_address FROM email_addresses addr,email_addr_bean_rel eb WHERE eb.deleted=0 AND addr.id=eb.email_address_id AND bean_id ='" . $related_id . "' AND primary_address = '1'";
     $result = $this->db->query($query);
     $row = $this->db->fetchByAssoc($result);
     if ($row) {
         $temp_array['RECIPIENT_EMAIL'] = $row['email_address'];
     }
     $this->email1 = $temp_array['RECIPIENT_EMAIL'];
     $temp_array['EMAIL_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:23,代码来源:EmailMan.php


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