source: closed/dev/html/test/adachi/zen2cube.php @ 14592

Revision 14592, 788 bytes checked in by adati, 19 years ago (diff)
Line 
1<?php
2/**
3 *  zencart¤«¤éec-cube¤Ø¤Î¾¦Éʥǡ¼¥¿°Ü¹Ô¥¹¥¯¥ê¥×¥È(»ÃÄê)
4 */
5
6require_once("../../require.php");
7
8// zencart¤ÎDSN¤òÀßÄê
9$zen_db_dsn = 'mysql://root:password@localhost/zencart_db';
10
11lfConvertProducts();
12
13function lfGetObjQuery($dsn = ''){
14    global $zen_db_dsn;
15    if (strtolower($dsn) == 'zen') {
16        $dsn = $zen_db_dsn;
17    }
18    return new SC_Query($dsn, true, true);
19}
20
21function lfConvertProducts(){
22    $arrError = 0;
23   
24    $ZenQuery  = lfGetObjQuery('zen');
25    $CubeQuery = lfGetObjQuery();
26   
27    $z_tbl_products = 'products';
28    $z_tbl_customers_info = 'customers_info';
29    $z_tbl_customers_wishlist = 'customers_wishlist';
30   
31    $arrRet = $CubeQuery->select('*', 'vw_products_allclass_detail');
32    sfprintr($arrRet);
33}
Note: See TracBrowser for help on using the repository browser.