当前位置: 首页>>代码示例>>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;未经允许,请勿转载。