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