當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Supplier::retrieve方法代碼示例

本文整理匯總了PHP中Supplier::retrieve方法的典型用法代碼示例。如果您正苦於以下問題:PHP Supplier::retrieve方法的具體用法?PHP Supplier::retrieve怎麽用?PHP Supplier::retrieve使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Supplier的用法示例。


在下文中一共展示了Supplier::retrieve方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: get_module_title

 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'XTemplate/xtpl.php';
require_once 'data/Tracker.php';
require_once 'modules/Suppliers/Supplier.php';
require_once 'modules/Suppliers/Forms.php';
global $app_strings;
global $app_list_strings;
global $mod_strings;
global $current_user;
global $sugar_version, $sugar_config;
$focus = new Supplier();
if (isset($_REQUEST['record'])) {
    $focus->retrieve($_REQUEST['record']);
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
    $focus->id = "";
}
$prefillArray = array('website' => 'website', 'name' => 'name', 'phone_office' => 'phone_office', 'email1' => 'email1');
foreach ($prefillArray as $requestKey => $focusVar) {
    if (isset($_REQUEST[$requestKey]) && is_null($focus->{$focusVar})) {
        $focus->{$focusVar} = urldecode($_REQUEST[$requestKey]);
    }
}
echo "\n<p>\n";
echo get_module_title($mod_strings['LBL_MODULE_NAME'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true);
echo "\n</p>\n";
global $theme;
$theme_path = "themes/" . $theme . "/";
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:31,代碼來源:EditView.php

示例2: Supply

 */
require_once 'modules/Supplies/Supply.php';
require_once 'modules/Suppliers/Supplier.php';
require_once 'modules/PurchaseOrders/PurchaseOrder.php';
require_once 'include/database/PearDatabase.php';
//require_once('include/Localization/Localization.php');
global $app_list_strings;
global $mod_strings;
$focus = new Supply();
$supply_id = $_REQUEST['record'];
$focus->retrieve($supply_id);
$supply_title = $focus->name;
$supply_num = $focus->supplynum;
$supplier_id = $focus->supplier_id;
$supplier = new Supplier();
$supplier->retrieve($supplier_id);
$supplier_name = $supplier->name;
$phone = $supplier->phone_office . " / " . $supplier->phone_fax;
$purchaseorder_id = $focus->purchaseorder_id;
$purchaseorder = new PurchaseOrder();
$purchaseorder_num = $purchaseorder->num;
// Supply Information
//Company Information - edit what you want here
$org_name = "Alphaprint";
$org_address = "Sofia";
$org_city = "Sofia";
$org_state = "Sofia";
$org_country = "Bulgaria";
$org_code = "+666";
$org_phone = "666-666-666";
$org_fax = "666-666-666";
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:31,代碼來源:pdf_data.php


注:本文中的Supplier::retrieve方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。