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