本文整理汇总了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/');
}