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


PHP UploadFile::get_upload_url方法代码示例

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


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

示例1: array

    if ($call->status != "Planned") {
        $history_list[] = array('name' => $call->name, 'id' => $call->id, 'type' => "Call", 'direction' => $call->direction, 'module' => "Calls", 'status' => $call->status, 'parent_id' => $call->parent_id, 'parent_type' => $call->parent_type, 'parent_name' => $call->parent_name, 'contact_id' => $call->contact_id, 'contact_name' => $call->contact_name, 'date_modified' => $call->date_modified);
    } else {
        $open_activity_list[] = array('name' => $call->name, 'id' => $call->id, 'direction' => $call->direction, 'type' => "Call", 'module' => "Calls", 'status' => $call->status, 'parent_id' => $call->parent_id, 'parent_type' => $call->parent_type, 'parent_name' => $call->parent_name, 'contact_id' => $call->contact_id, 'contact_name' => $call->contact_name, 'date_due' => $call->date_start);
    }
}
foreach ($focus_emails_list as $email) {
    $history_list[] = array('name' => $email->name, 'id' => $email->id, 'type' => "Email", 'direction' => '', 'module' => "Emails", 'status' => '', 'parent_id' => $email->parent_id, 'parent_type' => $email->parent_type, 'parent_name' => $email->parent_name, 'contact_id' => $email->contact_id, 'contact_name' => $email->contact_name, 'date_modified' => $email->date_start . " " . $email->time_start);
}
foreach ($focus_notes_list as $note) {
    $history_list[] = array('name' => $note->name, 'id' => $note->id, 'type' => "Note", 'direction' => '', 'module' => "Notes", 'status' => '', 'parent_id' => $note->parent_id, 'parent_type' => $note->parent_type, 'parent_name' => $note->parent_name, 'contact_id' => $note->contact_id, 'contact_name' => $note->contact_name, 'date_modified' => $note->date_modified);
    if (!empty($note->filename)) {
        $count = count($history_list);
        $count--;
        $history_list[$count]['filename'] = $note->filename;
        $history_list[$count]['fileurl'] = UploadFile::get_upload_url($note);
    }
}
if ($currentModule == 'Contacts') {
    $xtpl = new XTemplate('modules/Activities/SubPanelViewContacts.html');
    $xtpl->assign("CONTACT_ID", $focus->id);
} else {
    $xtpl = new XTemplate('modules/Activities/SubPanelView.html');
}
$xtpl->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_DELETE']));
$xtpl->assign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
$xtpl->assign("MOD", $current_module_strings);
$xtpl->assign("APP", $app_strings);
$button = "<form border='0' action='index.php' method='post' name='form' id='form'>\n";
$button .= "<input type='hidden' name='module'>\n";
$button .= "<input type='hidden' name='type'>\n";
开发者ID:netconstructor,项目名称:sugarcrm_dev,代码行数:31,代码来源:SubPanelView.php

示例2: get_list_view_data

 function get_list_view_data()
 {
     $note_fields = $this->get_list_view_array();
     global $app_list_strings, $focus, $action, $currentModule, $mod_strings, $sugar_config;
     if (isset($this->parent_type)) {
         $note_fields['PARENT_MODULE'] = $this->parent_type;
     }
     if (!empty($this->filename)) {
         if (file_exists("upload://{$this->id}")) {
             $note_fields['FILENAME'] = $this->filename;
             $note_fields['FILE_URL'] = UploadFile::get_upload_url($this);
         }
     }
     if (isset($this->contact_id) && $this->contact_id != '') {
         $contact = new Contact();
         $contact->retrieve($this->contact_id);
         if (isset($contact->id)) {
             $this->contact_name = $contact->full_name;
         }
     }
     if (isset($this->contact_name)) {
         $note_fields['CONTACT_NAME'] = $this->contact_name;
     }
     global $current_language;
     $mod_strings = return_module_language($current_language, 'Notes');
     $note_fields['STATUS'] = $mod_strings['LBL_NOTE_STATUS'];
     return $note_fields;
 }
开发者ID:omusico,项目名称:windcrm,代码行数:28,代码来源:Note.php

示例3: get_list_view_data

 function get_list_view_data()
 {
     $note_fields = $this->get_list_view_array();
     global $app_list_strings, $focus, $action, $currentModule, $mod_strings, $sugar_config;
     if (isset($this->parent_type)) {
         $note_fields['PARENT_MODULE'] = $this->parent_type;
     }
     if (!empty($this->filename)) {
         if (file_exists("upload://{$this->id}")) {
             $note_fields['FILENAME'] = $this->filename;
             $note_fields['FILE_URL'] = UploadFile::get_upload_url($this);
         } elseif (!empty($sugar_config['disc_client']) && $sugar_config['disc_client']) {
             $file_display = " (" . $mod_strings['LBL_OC_FILE_NOTICE'] . ")";
             $note_fields['FILENAME'] = $file_display;
         }
     }
     if (isset($this->contact_id) && $this->contact_id != '') {
         $contact = BeanFactory::getBean('Contacts', $this->contact_id);
         if (isset($contact->id)) {
             $this->contact_name = $contact->full_name;
         }
     }
     if (isset($this->contact_name)) {
         $note_fields['CONTACT_NAME'] = $this->contact_name;
     }
     global $current_language;
     $mod_strings = return_module_language($current_language, 'Notes');
     $note_fields['STATUS'] = $mod_strings['LBL_NOTE_STATUS'];
     return $note_fields;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:30,代码来源:Note.php


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