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


PHP Basic::fill_in_additional_detail_fields方法代码示例

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


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

示例1: fill_in_additional_detail_fields

 /**
  * @see SugarBean::fill_in_additional_detail_fields()
  */
 public function fill_in_additional_detail_fields()
 {
     global $app_list_strings;
     global $img_name;
     global $img_name_bare;
     $this->uploadfile = $this->filename;
     // Bug 41453 - Make sure we call the parent method as well
     parent::fill_in_additional_detail_fields();
     if (!$this->file_ext) {
         $img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext) . "_image_inline.gif");
         $img_name_bare = strtolower($this->file_ext) . "_image_inline";
     }
     //set default file name.
     if (!empty($img_name) && file_exists($img_name)) {
         $img_name = $img_name_bare;
     } else {
         $img_name = "def_image_inline";
         //todo change the default image.
     }
     $this->file_url_noimage = $this->id;
     // Handle getting the status if the source of the status id field has
     // changed
     if (!empty($this->status_id)) {
         // Default value for the DLL source for this field
         $ddl_source = 'document_status_dom';
         if (isset($this->field_defs['status_id']['options'])) {
             $ddl_source = $this->field_defs['status_id']['options'];
         }
         $this->status = $app_list_strings[$ddl_source][$this->status_id];
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:34,代码来源:File.php

示例2: fill_in_additional_detail_fields

 public function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     if (empty($this->amount_usdollar) && !empty($this->amount)) {
         $this->amount_usdollar = SugarCurrency::convertWithRate($this->amount, $this->base_rate);
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:7,代码来源:Sale.php

示例3:

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     //Ensure that the amount_usdollar field is not null.
     if (empty($this->amount_usdollar) && !empty($this->amount)) {
         $this->amount_usdollar = $this->amount;
     }
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:8,代码来源:Sale.php

示例4: fill_in_additional_detail_fields

 /**
  * @see SugarBean::fill_in_additional_detail_fields()
  */
 public function fill_in_additional_detail_fields()
 {
     global $app_list_strings;
     global $img_name;
     global $img_name_bare;
     $this->uploadfile = $this->filename;
     // Bug 41453 - Make sure we call the parent method as well
     parent::fill_in_additional_detail_fields();
     if (!$this->file_ext) {
         $img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext) . "_image_inline.gif");
         $img_name_bare = strtolower($this->file_ext) . "_image_inline";
     }
     //set default file name.
     if (!empty($img_name) && file_exists($img_name)) {
         $img_name = $img_name_bare;
     } else {
         $img_name = "def_image_inline";
         //todo change the default image.
     }
     $this->file_url_noimage = basename(UploadFile::get_url($this->filename, $this->id));
     if (!empty($this->status_id)) {
         $this->status = $app_list_strings['document_status_dom'][$this->status_id];
     }
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:27,代码来源:File.php

示例5:

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     // Fill in the assigned_user_name
     $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
     $this->created_by_name = get_assigned_user_name($this->created_by);
     $this->modified_by_name = get_assigned_user_name($this->modified_user_id);
     $account_info = $this->getAccount($this->id);
     $this->account_name = $account_info['account_name'];
     $this->account_id = $account_info['account_id'];
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:Case.php

示例6: fill_in_additional_detail_fields

 public function fill_in_additional_detail_fields()
 {
     $this->fillInName();
     parent::fill_in_additional_detail_fields();
 }
开发者ID:BMLP,项目名称:memoryhole-ansible,代码行数:5,代码来源:EAPM.php

示例7:

 function fill_in_additional_detail_fields()
 {
     if (!empty($_REQUEST['name'])) {
         $this->name = $_REQUEST['name'];
     }
     if (!empty($_REQUEST['oauth_token']) && !empty($_REQUEST['oauth_token_secret'])) {
         $this->oauth_token = $_REQUEST['oauth_token'];
         $this->oauth_token_secret = $_REQUEST['oauth_token_secret'];
         $this->api->setOAuthToken($_REQUEST['oauth_token'], $_REQUEST['oauth_token_secret']);
     }
     parent::fill_in_additional_detail_fields();
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:12,代码来源:xPhotobucketAccount.php

示例8:

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     if (!empty($this->id)) {
         $account_info = $this->getAccount($this->id);
         if (!empty($account_info)) {
             $this->account_name = $account_info['account_name'];
             $this->account_id = $account_info['account_id'];
         }
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:11,代码来源:Case.php

示例9:

 function fill_in_additional_detail_fields()
 {
     if (!empty($_REQUEST['name'])) {
         $this->name = $_REQUEST['name'];
     }
     if (!empty($_REQUEST['session_id'])) {
         $this->session_id = $_REQUEST['session_id'];
     }
     parent::fill_in_additional_detail_fields();
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:10,代码来源:xeBayAccount.php

示例10:

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     if (!empty($_REQUEST['xinventory_req'])) {
         if (!empty($_REQUEST['operation'])) {
             $this->operation = $_REQUEST['operation'];
         }
         if (!empty($_REQUEST['xinventory_id'])) {
             $this->xinventory_id = $_REQUEST['xinventory_id'];
             $bean = BeanFactory::getBean('xInventories');
             if ($bean->retrieve($this->xinventory_id)) {
                 $this->xinventory_name = $bean->name;
                 $this->name = $this->xinventory_name;
             }
         }
     }
 }
开发者ID:sunmo,项目名称:snowlotus,代码行数:17,代码来源:xInventoryRecord.php

示例11:

 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
 }
开发者ID:jeffcao,项目名称:fzglsys_v5,代码行数:4,代码来源:asol_Report.php

示例12: fill_in_additional_detail_fields

 public function fill_in_additional_detail_fields()
 {
     $this->config = htmlspecialchars(json_encode($this->replaceKeyValueWithLabel(htmlspecialchars_decode($this->config))));
     parent::fill_in_additional_detail_fields();
     // TODO: Change the autogenerated stub
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:6,代码来源:Spots.php


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