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


PHP Person::get_list_view_data方法代码示例

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


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

示例1: translate

 function get_list_view_data()
 {
     $user_fields = parent::get_list_view_data();
     if ($this->is_admin) {
         $user_fields['IS_ADMIN_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } elseif (!$this->is_admin) {
         $user_fields['IS_ADMIN'] = '';
     }
     if ($this->is_group) {
         $user_fields['IS_GROUP_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } else {
         $user_fields['IS_GROUP_IMAGE'] = '';
     }
     if ($this->is_admin) {
         $user_fields['IS_ADMIN_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } elseif (!$this->is_admin) {
         $user_fields['IS_ADMIN'] = '';
     }
     if ($this->is_group) {
         $user_fields['IS_GROUP_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } else {
         $user_fields['NAME'] = empty($this->name) ? '' : $this->name;
     }
     $user_fields['REPORTS_TO_NAME'] = $this->reports_to_name;
     if (isset($_REQUEST['module']) && $_REQUEST['module'] == 'Teams' && (isset($_REQUEST['record']) && !empty($_REQUEST['record']))) {
         $q = "SELECT count(*) c FROM team_memberships WHERE deleted=0 AND user_id = '{$this->id}' AND team_id = '{$_REQUEST['record']}' AND explicit_assign = 1";
         $r = $this->db->query($q);
         $a = $this->db->fetchByAssoc($r);
         $user_fields['UPLINE'] = translate('LBL_TEAM_UPLINE', 'Users');
         if ($a['c'] > 0) {
             $user_fields['UPLINE'] = translate('LBL_TEAM_UPLINE_EXPLICIT', 'Users');
         }
     }
     return $user_fields;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:35,代码来源:User.php

示例2: elseif

 function get_list_view_data()
 {
     global $mod_strings;
     $user_fields = parent::get_list_view_data();
     if ($this->is_admin) {
         $user_fields['IS_ADMIN_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', $mod_strings['LBL_CHECKMARK']);
     } elseif (!$this->is_admin) {
         $user_fields['IS_ADMIN'] = '';
     }
     if ($this->is_group) {
         $user_fields['IS_GROUP_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', $mod_strings['LBL_CHECKMARK']);
     } else {
         $user_fields['IS_GROUP_IMAGE'] = '';
     }
     if ($this->is_admin) {
         $user_fields['IS_ADMIN_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } elseif (!$this->is_admin) {
         $user_fields['IS_ADMIN'] = '';
     }
     if ($this->is_group) {
         $user_fields['IS_GROUP_IMAGE'] = SugarThemeRegistry::current()->getImage('check_inline', '', null, null, '.gif', translate('LBL_CHECKMARK', 'Users'));
     } else {
         $user_fields['NAME'] = empty($this->name) ? '' : $this->name;
     }
     $user_fields['REPORTS_TO_NAME'] = $this->reports_to_name;
     return $user_fields;
 }
开发者ID:omusico,项目名称:windcrm,代码行数:27,代码来源:User.php

示例3: array

 function get_list_view_data($filter_fields = array())
 {
     $temp_array = parent::get_list_view_data();
     if ($filter_fields && !empty($filter_fields['sync_contact'])) {
         $this->load_contacts_users_relationship();
         $temp_array['SYNC_CONTACT'] = !empty($this->contacts_users_id) ? 1 : 0;
     }
     $temp_array['EMAIL_AND_NAME1'] = "{$this->full_name} <" . $temp_array['EMAIL1'] . ">";
     //Ezt tudom hogy nem itt kellet volna, hanem a customban, de még szokni kell a rendszert
     if (!empty($temp_array['CONTACT_PHOTO_C'])) {
         $temp_array['CONTACT_PHOTO_C'] = "<img src='cache/images/thumb/" . $temp_array['ID'] . "_" . $temp_array['CONTACT_PHOTO_C'] . "' style='max-height: 150px; max-width:100%'>";
     }
     return $temp_array;
 }
开发者ID:Terraxx,项目名称:kepmezo,代码行数:14,代码来源:Contact.php

示例4:

 function get_list_view_data()
 {
     $user_fields = parent::get_list_view_data();
     // Copy over the reports_to_name
     if (isset($GLOBALS['app_list_strings']['messenger_type_dom'][$this->messenger_type])) {
         $user_fields['MESSENGER_TYPE'] = $GLOBALS['app_list_strings']['messenger_type_dom'][$this->messenger_type];
     }
     if (isset($GLOBALS['app_list_strings']['employee_status_dom'][$this->employee_status])) {
         $user_fields['EMPLOYEE_STATUS'] = $GLOBALS['app_list_strings']['employee_status_dom'][$this->employee_status];
     }
     $user_fields['REPORTS_TO_NAME'] = $this->reports_to_name;
     return $user_fields;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:13,代码来源:Employee.php

示例5: array

 function get_list_view_data($filter_fields = array())
 {
     $temp_array = parent::get_list_view_data();
     if ($filter_fields && !empty($filter_fields['sync_contact'])) {
         $this->load_contacts_users_relationship();
         $temp_array['SYNC_CONTACT'] = !empty($this->contacts_users_id) ? 1 : 0;
     }
     $temp_array['EMAIL_AND_NAME1'] = "{$this->full_name} &lt;" . $temp_array['EMAIL1'] . "&gt;";
     return $temp_array;
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:10,代码来源:Contact.php

示例6: empty

 function get_list_view_data()
 {
     $temp_array = parent::get_list_view_data();
     $temp_array['ACC_NAME_FROM_ACCOUNTS'] = empty($temp_array['ACC_NAME_FROM_ACCOUNTS']) ? $temp_array['ACCOUNT_NAME'] : $temp_array['ACC_NAME_FROM_ACCOUNTS'];
     return $temp_array;
 }
开发者ID:thsonvt,项目名称:sugarcrm_dev,代码行数:6,代码来源:Lead.php

示例7: empty

 function get_list_view_data()
 {
     /*global $app_list_strings;
     		global $current_user;
     
     		$temp_array = $this->get_list_view_array();
     		$temp_array['STATUS'] = (empty($temp_array['STATUS'])) ? '' : $temp_array['STATUS'];
     		$temp_array['ENCODED_NAME']=$this->name;
     		$temp_array['NAME']=$this->name;
     		$temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
     		$this->email1 = $temp_array['EMAIL1'];
     		$temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
         	$temp_array['ACC_NAME_FROM_ACCOUNTS'] = empty($temp_array['ACC_NAME_FROM_ACCOUNTS']) ? ($temp_array['ACCOUNT_NAME']) : ($temp_array['ACC_NAME_FROM_ACCOUNTS']);
     		return $temp_array;
     		*/
     $this->_create_proper_name_field();
     $temp_array = parent::get_list_view_data();
     $temp_array['ACC_NAME_FROM_ACCOUNTS'] = empty($temp_array['ACC_NAME_FROM_ACCOUNTS']) ? $temp_array['ACCOUNT_NAME'] : $temp_array['ACC_NAME_FROM_ACCOUNTS'];
     return $temp_array;
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:20,代码来源:Lead.php

示例8: elseif

 function get_list_view_data()
 {
     $temp_array = parent::get_list_view_data();
     if (!empty($temp_array['ACC_NAME_FROM_ACCOUNTS'])) {
         $temp_array['ACC_NAME_FROM_ACCOUNTS'] = $temp_array['ACC_NAME_FROM_ACCOUNTS'];
     } elseif (!empty($temp_array['ACCOUNT_NAME'])) {
         $temp_array['ACC_NAME_FROM_ACCOUNTS'] = $temp_array['ACCOUNT_NAME'];
     } else {
         $temp_array['ACC_NAME_FROM_ACCOUNTS'] = '';
     }
     return $temp_array;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:12,代码来源:Lead.php

示例9: array

 function get_list_view_data($filter_fields = array())
 {
     $temp_array = parent::get_list_view_data();
     if ($filter_fields && !empty($filter_fields['sync_contact'])) {
         $this->load_relationship('user_sync');
         $temp_array['SYNC_CONTACT'] = $this->user_sync->_relationship->relationship_exists($this, $GLOBALS['current_user']) ? 1 : 0;
     }
     $temp_array['EMAIL_AND_NAME1'] = "{$this->full_name} &lt;" . $temp_array['EMAIL1'] . "&gt;";
     return $temp_array;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:10,代码来源:Contact.php


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