本文整理汇总了PHP中Price::export方法的典型用法代码示例。如果您正苦于以下问题:PHP Price::export方法的具体用法?PHP Price::export怎么用?PHP Price::export使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Price
的用法示例。
在下文中一共展示了Price::export方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Priceset
// }
if ($action == "upload_0") {
require_once "DataBase/Priceset.php";
require_once "DataBase/Customer.php";
require_once "DataBase/Product.php";
require_once "DataBase/Price.php";
require_once "DataBase/Category.php";
$priceset = new Priceset();
$customer = new Customer();
$product = new Product();
$price = new Price();
$category = new Category();
$priceset->export("mysql_export/priceset.csv");
$customer->export("mysql_export/customer.csv");
$product->export("mysql_export/product.csv");
$price->export("mysql_export/price.csv");
$category->export("mysql_export/category.csv");
// upload all db-files "mysql_export"
$handle = popen("/var/www/ursprung/bin/upload.sh", "r");
pclose($handle);
$main_box->add(new NTKLabel("", "Schritt erfolgreich"), 200, -1, "color: #00ff00; background-color: #dfe7f3;");
$button_next = new NTKButton("button_next", "Weiter", "location.replace('websync.php?action=upload_1');");
$main_box->add($button_next, 500);
} elseif ($action == "upload_1") {
$iframe = new NTKIFrame("upload_frame", "http://www.natuerlich-grobi.de/db_import.php", "width: 300px; height: 200px; background-color: #dfe7f3;");
$main_box->add($spacer, True, True, "background-color: #dfe7f3;");
$main_box->add(new NTKLabel("", "Serverausgabe (dauert etwas):"), False, False, "font-style: bold; background-color: #dfe7f3;");
$main_box->add($iframe, False, False, "background-color: #dfe7f3;");
$main_box->add($spacer, True, True, "background-color: #dfe7f3;");
} elseif ($action == "download_0") {
$iframe = new NTKIFrame("download_frame", "http://www.natuerlich-grobi.de/db_export.php", "width: 300px; height: 200px; background-color: #dfe7f3;");