本文整理匯總了PHP中Price::import方法的典型用法代碼示例。如果您正苦於以下問題:PHP Price::import方法的具體用法?PHP Price::import怎麽用?PHP Price::import使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Price
的用法示例。
在下文中一共展示了Price::import方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Customer
<?php
include "DataBase/database.php";
include "DataBase/Customer.php";
include "DataBase/Priceset.php";
include "DataBase/Product.php";
include "DataBase/Price.php";
include "DataBase/Category.php";
$customer = new Customer();
$priceset = new Priceset();
$product = new Product();
$price = new Price();
$category = new Category();
$folder = "mysql_import/";
$customer->import($folder . "customer.csv");
echo "kunden import<br>";
$priceset->import($folder . "priceset.csv");
echo "priceset import<br>";
$product->import($folder . "product.csv");
echo "product import<br>";
$price->import($folder . "price.csv");
echo "price import done<br>";
$category->import($folder . "category.csv");
echo "category import done<br>";
?>
<br>
Synchronisation abgeschlossen
示例2: import
function import()
{
DB::escapePost();
Price::import();
$this->redirect('/price/');
}