本文整理汇总了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];
}
}
示例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);
}
}
示例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;
}
}
示例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];
}
}
示例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'];
}
示例6: fill_in_additional_detail_fields
public function fill_in_additional_detail_fields()
{
$this->fillInName();
parent::fill_in_additional_detail_fields();
}
示例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();
}
示例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'];
}
}
}
示例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();
}
示例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;
}
}
}
}
示例11:
function fill_in_additional_detail_fields()
{
parent::fill_in_additional_detail_fields();
}
示例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
}